Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #TouhouDanmakufu{Single}
- #Title[Non-Spell 3]
- #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(2000);
- SetTimer(30);
- SetEnemyMarker(true);
- LoadGraphic(imgBoss);
- SetMovePosition02(GetCenterX, GetCenterY-92, 0);
- SetInvincibility(120);
- SetDamageRate(100,18);
- fire;
- fireb;
- firec;
- }
- @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{
- wait(60);
- let ang = 0;
- let dir = 0;
- let x = 0;
- loop{
- while(x<36){
- CreateShot01(GetX, GetY, 3, ang, BLUE02,0);
- CreateShot01(GetX, GetY, 3, dir, BLUE02,0);
- ang+=5000/5;
- dir+=5000/5;
- x++;
- }
- x = 0;
- ang+=5;
- dir-=5;
- wait(10);
- yield;
- }}
- task fireb{
- wait(60);
- let ang = 0;
- let dir = 0;
- let x = 0;
- loop{
- while(x<36){
- CreateShot01(GetX, GetY, 3, ang, BLUE02,0);
- CreateShot01(GetX, GetY, 3, dir, BLUE02,0);
- ang+=5000/5;
- dir+=5000/5;
- x++;
- }
- x = 0;
- ang+=20;
- dir-=20;
- wait(6);
- yield;
- }}
- task firec{
- wait(60);
- let dir = GetAngleToPlayer;
- let x = 0;
- loop{
- while(x<36){
- CreateShot01(GetX, GetY, 4, dir, AQUA04,0);
- CreateShot01(GetX, GetY, 4, dir-1.5, AQUA04,0);
- CreateShot01(GetX, GetY, 4, dir+1.5, AQUA04,0);
- CreateShot01(GetX, GetY, 4, dir-3, AQUA04,0);
- CreateShot01(GetX, GetY, 4, dir+3, AQUA04,0);
- CreateShot01(GetX, GetY, 4, dir, AQUA04,3);
- CreateShot01(GetX, GetY, 4, dir-1.5, AQUA04,3);
- CreateShot01(GetX, GetY, 4, dir+1.5, AQUA04,3);
- CreateShot01(GetX, GetY, 4, dir-3, AQUA04,3);
- CreateShot01(GetX, GetY, 4, dir+3, AQUA04,3);
- CreateShot01(GetX, GetY, 4, dir, AQUA04,6);
- CreateShot01(GetX, GetY, 4, dir-1.5, AQUA04,6);
- CreateShot01(GetX, GetY, 4, dir+1.5, AQUA04,6);
- CreateShot01(GetX, GetY, 4, dir-3, AQUA04,6);
- CreateShot01(GetX, GetY, 4, dir+3, AQUA04,6);
- CreateShot01(GetX, GetY, 4, dir, AQUA04,0);
- CreateShot01(GetX, GetY, 4, dir-1.5, AQUA04,9);
- CreateShot01(GetX, GetY, 4, dir+1.5, AQUA04,9);
- CreateShot01(GetX, GetY, 4, dir-3, AQUA04,9);
- CreateShot01(GetX, GetY, 4, dir+3, AQUA04,9);
- dir+=5000/5;
- x++;
- }
- x = 0;
- dir = GetAngleToPlayer;
- wait(60);
- yield;
- }}
- function wait(w){
- loop(w){yield;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement