Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 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.  
  9. let CSD = GetCurrentScriptDirectory;
  10. let Boss=CSD ~ "zeke1.png";
  11. let cut = CSD ~ "zeke1.png";
  12. let bg = CSD ~ "GETDUNKED.png";
  13.  
  14. @Initialize{
  15. SetLife(1000);
  16. SetTimer(60);
  17. SetScore(100000);
  18. SetMovePosition01(GetCenterX,GetCenterY,5);
  19. LoadGraphic(Boss);
  20. LoadGraphic(cut);
  21. LoadGraphic(bg);
  22.  
  23. CutIn(YOUMU, "asdfspell",cut,0,0,65,65);
  24.  
  25. mainTask;
  26. }
  27.  
  28. @MainLoop{
  29. SetCollisionA(GetX,GetY,32);
  30. SetCollisionB(GetX,GetY,16);
  31. yield;
  32. }
  33.  
  34. @DrawLoop{
  35. SetTexture(Boss);
  36. SetRenderState(ALPHA);
  37. SetAlpha(255);
  38. SetGraphicRect(0,0,65,65);
  39. SetGraphicScale(1,1);
  40. SetGraphicAngle(0,0,0);
  41. DrawGraphic(GetX,GetY);
  42.  
  43. }
  44.  
  45. @BackGround{
  46. SetTexture(bg);
  47. SetRenderState(ALPHA);
  48. SetAlpha(255);
  49. SetGraphicRect(0,0,500,260);
  50. SetGraphicScale(2,2);
  51. SetGraphicAngle(0,0,0);
  52. DrawGraphic(GetCenterX,GetCenterY);
  53.  
  54. }
  55.  
  56. @Finalize{
  57. //delete the img from memory
  58. DeleteGraphic(Boss);
  59. DeleteGraphic(cut);
  60. DeleteGraphic(bg);
  61.  
  62. }
  63.  
  64. //main task, activates stuff
  65. task mainTask{
  66. yield;
  67. fire;
  68. movement;
  69. }
  70.  
  71. task movement{
  72. loop{
  73. SetMovePosition01(GetCenterX -100,120,5);
  74. wait(120);
  75. SetMovePosition01(GetCenterX +100,120,5);
  76. wait(120);
  77. yield;
  78. }
  79.  
  80. task fire{
  81. loop{
  82. //regular createshot (x, y, speed, dir, graphic, delay)
  83. CreateShot01(GetEnemyX,GetEnemyY,3,90,RED01,10);
  84. wait(30);
  85. yield;
  86. }
  87. }
  88.  
  89. //wait function
  90. function wait(w){
  91. loop(w){yield;}
  92. }
  93.  
  94.  
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement