Guest User

test stage script

a guest
Nov 17th, 2011
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #TouhouDanmakufu[Stage]
  2. #Title[Stage for testing stuff]
  3. #Text[]
  4. #Image[]
  5. #Background[]
  6. #BGM[]
  7. #Player[FREE]
  8. #ScriptVersion[2]
  9.  
  10. script_stage_main{
  11. let CSD = GetCurrentScriptDirectory;
  12. function wait(let frames){
  13. loop(frames){yield;}
  14. }
  15.  
  16. //Wait For Zero Enemy
  17. function WFZE{
  18. while(GetEnemyNum != 0){yield;}
  19. }
  20.  
  21. //====================================================HERE=THE=STAGE=SCENARIO=GOES========================================================
  22.  
  23. task stage{
  24. wait(120);
  25. loop(10){
  26. CreateEnemyFromFile(CSD ~ "NMEs\orb.txt",0,92,1,0,rand_int(1,2)); // 1 stands for green orb, 2 for red
  27. wait(40);
  28. yield;
  29. }
  30. WFZE;
  31. wait(60);
  32. Clear;
  33. }
  34.  
  35. //========================================================================================================================================
  36.  
  37. @Initialize{
  38. stage;
  39. }
  40.  
  41. @MainLoop{
  42. yield;
  43. }
  44.  
  45. @Background{
  46. }
  47.  
  48. @Finalize{
  49. }
  50. }
  51.  
Advertisement
Add Comment
Please, Sign In to add comment