Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #TouhouDanmakufu
- #Title[pizza rolls]
- #Text[ODINS PIZZA PLACE]
- #Player[FREE]
- #ScriptVersion[2]
- script_enemy_main{
- let Boss=GetCurrentScriptDirectory ~ ("\script\tutorial\zeke1.png");
- @Initialize{
- SetLife(1000);
- SetMovePosition01(GetCenterX,GetCenterY,5);
- LoadGraphic(Boss);
- mainTask;
- }
- @MainLoop{
- yield;
- }
- @DrawLoop{
- SetTexture(Boss);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetGraphicRect(0,0,65,65);
- SetGraphicScale(1,1);
- SetGraphicAngle(0,0,0);
- DrawGraphic(GetX,GetY);
- }
- @BackGround{
- }
- @Finalize{
- //delete the img from memory
- DeleteGraphic(Boss)
- }
- //main task, activates stuff
- task mainTask{
- yield;
- fire;
- }
- task fire{
- loop{
- //regular createshot (x, y, speed, dir, graphic, delay)
- CreateShot01(GetEnemyX,GetEnemyY,3,90,RED01,10);
- //wait 60 frames (1 second)
- wait(60);
- yield;
- }
- }
- //wait function
- function wait(w){
- loop(w){yield;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment