Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #TouhouDanmakufu
- #Title[Cirno - Circ]
- #Text[Baka!]
- #BGM[Theme]
- #Player[FREE]
- #ScriptVersion[2]
- script_enemy_main{
- let CSD = GetCurrentScriptDirectory;
- let imgBoss = CSD ~ "system\enmyboss.png";
- let cut = CSD ~ "system\cirnocut.png";
- let bg = CSD ~ "system\lake.png";
- @Initialize{
- SetLife(6000);
- SetTimer(99);
- SetScore(100000);
- SetMovePosition01(GetCenterX,GetCenterY,5);
- LoadGraphic(imgBoss);
- LoadGraphic(cut);
- LoadGraphic(bg);
- CutIn(YOUMU,"Circle Spawn - 'Just a Circle'",cut,0,0,300,384);
- mainTask; }
- @MainLoop{
- SetCollisionA(GetX,GetY,32);
- SetCollisionB(GetX,GetY,17);
- yield;
- }
- @DrawLoop{
- SetTexture(imgBoss);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetGraphicRect(91,39,63,85);
- SetGraphicScale(1,1);
- SetGraphicAngle(0,0,0);
- DrawGraphic(GetX,GetY);
- }
- @BackGround{
- SetTexture(bg);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetGraphicRect(0,0,512,512);
- SetGraphicScale(1,1);
- SetGraphicAngle(0,0,0);
- DrawGraphic(GetCenterX,GetCenterY);
- }
- @Finalize{
- // delete the image from memory
- DeleteGraphic(imgBoss);
- DeleteGraphic(cut);
- DeleteGraphic(bg);
- }
- //main task, activates stuff.
- task mainTask{
- yield;
- fire;
- movement;
- }
- task movement{
- loop{
- SetMovePosition01(GetPlayerX, GetPlayerY, 15);
- wait(90);
- yield;}
- }
- task fire{
- let x = 0;
- let dir = 0;
- loop{
- while(x<36){
- CreateShotA(1,GetEnemyX,GetEnemyY,30);
- SetShotDataA(1,0,0,dir, 0, 0, 0, AQUA01);
- SetShotDataA(1,60,2,dir, 0.2, 0, 2, AQUA01);
- FireShot(1);
- dir+=360/36
- x++;
- }
- x=0;
- dir=0;
- wait(60);
- yield;}
- }
- // wait function
- function wait(w){
- loop(w){yield;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement