Advertisement
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 CSD = GetCurrentScriptDirectory;
- let Boss=CSD ~ "zeke1.png";
- let cut = CSD ~ "zeke1.png";
- let bg = CSD ~ "GETDUNKED.png";
- @Initialize{
- SetLife(1000);
- SetTimer(60);
- SetScore(100000);
- SetMovePosition01(GetCenterX,GetCenterY,5);
- LoadGraphic(Boss);
- LoadGraphic(cut);
- LoadGraphic(bg);
- CutIn(YOUMU, "asdfspell",cut,0,0,65,65);
- mainTask;
- }
- @MainLoop{
- SetCollisionA(GetX,GetY,32);
- SetCollisionB(GetX,GetY,16);
- yield;
- }
- @DrawLoop{
- SetTexture(Boss);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetGraphicRect(0,0,65,65);
- SetGraphicScale(1,1);
- SetGraphicAngle(0,0,0);
- DrawGraphic(GetX,GetY);
- }
- @BackGround{
- SetTexture(bg);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetGraphicRect(0,0,500,260);
- SetGraphicScale(2,2);
- SetGraphicAngle(0,0,0);
- DrawGraphic(GetCenterX,GetCenterY);
- }
- @Finalize{
- //delete the img from memory
- DeleteGraphic(Boss);
- DeleteGraphic(cut);
- DeleteGraphic(bg);
- }
- //main task, activates stuff
- task mainTask{
- yield;
- fire;
- movement;
- }
- task movement{
- loop{
- SetMovePosition01(GetCenterX -100,120,5);
- wait(120);
- SetMovePosition01(GetCenterX +100,120,5);
- wait(120);
- yield;
- }
- task fire{
- loop{
- //regular createshot (x, y, speed, dir, graphic, delay)
- CreateShot01(GetEnemyX,GetEnemyY,3,90,RED01,10);
- wait(30);
- yield;
- }
- }
- //wait function
- function wait(w){
- loop(w){yield;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement