Guest User

Untitled

a guest
Mar 25th, 2014
170
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 1]
  3. #Text[Cyberspace]
  4. #Image[]
  5. #Background[]
  6. #BGM[]
  7. #Player[FREE]
  8. #ScriptVersion[2]
  9.  
  10. script_stage_main{
  11.  
  12. //-----stage functions---
  13. function wait(let frames){
  14. loop(frames){yield;}
  15. }
  16.  
  17. function WaitForZeroEnemy{
  18. while(GetEnemyNum != 0){yield;}
  19. }
  20. //------------variables---------------
  21. let CSD = GetCurrentScriptDirectory;
  22. let bg = CSD ~ "background.png";
  23. //-------BGM--------------------------------
  24. let beloved ="./Stage 1/Beloved Tomboyish Daughter.mp3";
  25.  
  26. @Initialize{
  27. LoadGraphic(bg);
  28. stage;
  29. }
  30. @MainLoop{
  31. yield;
  32. }
  33. @Background{
  34. SetTexture(bg);
  35. SetGraphicRect(0,0,600,375);
  36. SetAlpha(255);
  37. SetGraphicAngle(180,0,0);
  38. SetGraphicScale(1,1);
  39. DrawGraphic(GetCenterX,GetCenterY);
  40. }
  41. @Finalize{
  42.  
  43. }
  44. task stage{
  45. wait(120);
  46. CreateEnemyBossFromFile(CSD ~"Cirno Boss Fight.txt", 0, 0, 0, 0, 0);
  47. WaitForZeroEnemy;
  48. wait(120);
  49. Clear;
  50. }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment