Guest User

asdf

a guest
Jan 2nd, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. #TouhouDanmakufu
  2. #Title[pizza rolls]
  3. #Text[ODINS PIZZA PLACE]
  4. #Player[FREE]
  5. #ScriptVersion[2]
  6.  
  7. script_enemy_main{
  8. let Boss=GetCurrentScriptDirectory ~ ("\script\tutorial\zeke1.png");
  9. @Initialize{
  10. SetLife(1000);
  11. SetMovePosition01(GetCenterX,GetCenterY,5);
  12. LoadGraphic(Boss);
  13. mainTask;
  14. }
  15.  
  16. @MainLoop{
  17. yield;
  18. }
  19.  
  20. @DrawLoop{
  21. SetTexture(Boss);
  22. SetRenderState(ALPHA);
  23. SetAlpha(255);
  24. SetGraphicRect(0,0,65,65);
  25. SetGraphicScale(1,1);
  26. SetGraphicAngle(0,0,0);
  27. DrawGraphic(GetX,GetY);
  28.  
  29. }
  30.  
  31. @BackGround{
  32.  
  33. }
  34.  
  35. @Finalize{
  36. //delete the img from memory
  37. DeleteGraphic(Boss)
  38.  
  39. }
  40.  
  41. //main task, activates stuff
  42. task mainTask{
  43. yield;
  44. fire;
  45. }
  46.  
  47. task fire{
  48. loop{
  49. //regular createshot (x, y, speed, dir, graphic, delay)
  50. CreateShot01(GetEnemyX,GetEnemyY,3,90,RED01,10);
  51.  
  52. //wait 60 frames (1 second)
  53. wait(60);
  54. yield;
  55. }
  56. }
  57.  
  58. //wait function
  59. function wait(w){
  60. loop(w){yield;}
  61. }
  62.  
  63.  
  64. }
Advertisement
Add Comment
Please, Sign In to add comment