Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #TouhouDanmakufu
- #Title[Frostbite"Glass Reflection"]
- #Text[Cirno's Spell Card]
- #BGM[script\cirno\Beloved Tomboyish Daughter.mp3]
- #PlayLevel[Lunatic]
- #Player[FREE]
- #ScriptVersion[2]
- script_enemy_main {
- let CSD = GetCurrentScriptDirectory;
- let boss = CSD ~ "sprite.png";
- let cut = CSD ~ "cirnocutin.png";
- let bg = CSD ~ "ice.png";
- @Initialize {
- SetLife(2000);
- SetTimer(60);
- SetScore(48000000);
- SetMovePosition01(GetCenterX, GetClipMinY + 120, 5);
- LoadGraphic(boss);
- LoadGraphic(cut);
- LoadGraphic(bg);
- CutIn(YOUMU, "Frostbite"\""Glass Reflection"\",cut,0,0,566,775);
- mainTask;
- }
- @MainLoop {
- SetCollisionA(GetX,GetY,24);
- SetCollisionB(GetX,GetY,16);
- yield;
- }
- @DrawLoop {
- SetTexture(boss);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetGraphicRect(0,0,81,92);
- SetGraphicScale(1,1);
- SetGraphicAngle(0,0,0);
- DrawGraphic(GetX,GetY);
- }
- @BackGround {
- SetTexture(bg);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetGraphicRect(0,0,1600,1118);
- SetGraphicScale(1,1);
- SetGraphicAngle(0,0,0);
- DrawGraphic(GetCenterX,GetCenterY);
- }
- @Finalize {
- DeleteGraphic(boss);
- DeleteGraphic(bg);
- DeleteGraphic(cut);
- }
- task mainTask{
- yield;
- fire;
- }
- task fire{
- let x = 0;
- let dir = 0;
- wait(30);
- loop{
- while(x<36){
- CreateShotA(1,GetEnemyX,GetEnemyY,1);
- SetShotDataA(1,0,1,dir,0,0.5,3,AQUA02);
- SetShotDataA(1,0,0,dir,0,0.5,-3,BLUE03);
- FireShot(1);
- dir+=360/36;
- x++;
- }
- x = 0;
- dir = 0;
- wait(30);
- yield;
- }
- }
- //Wait Function
- function wait(w){
- loop(w) {yield;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment