Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #TouhouDanmakufu
- #Title[Mid-Boss Non-Spell 1]
- #Text[An attempt at making a non-spell]
- #Player[REIMU]
- #ScriptVersion[2]
- #PlayLevel[Normal]
- script_enemy_main{
- let CSD = GetCurrentScriptDirectory;
- let imgBoss = CSD ~ "system\touhoucharacter1.png";
- @Initialize{
- SetLife(1500);
- SetTimer(30);
- SetEnemyMarker(true);
- SetMovePosition01(GetCenterX,GetCenterY,5);
- LoadGraphic(imgBoss);
- SetInvincibility(120);
- SetDamageRate(100,18);
- fire;
- }
- @MainLoop{
- SetCollisionA(GetX,GetY,32);
- SetCollisionB(GetX,GetY,16);
- yield;
- }
- @DrawLoop{
- SetTexture(imgBoss);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetGraphicRect(0,0,110,110);
- SetGraphicScale(0.7,0.7);
- SetGraphicAngle(0,0,0);
- DrawGraphic(GetX,GetY);
- }
- @BackGround{}
- @Finalize{DeleteGraphic(imgBoss);}
- task fire{}
- function wait(w){loop(w){yield;}}
- }
Advertisement
Add Comment
Please, Sign In to add comment