Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 8th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #TouhouDanmakufu[Stage]
  2. #ScriptVersion[3]
  3. #Title["Stg_2"]
  4. #Text["Stage 2"]
  5.  
  6. #include "./stg_2b.dnh"
  7. #include "./../enemyLib.dnh"
  8.  
  9. @Initialize {
  10.     renderStage();
  11.     scrollStage();
  12.     followPlayerCamera();
  13.     phase1();
  14.     endStage();
  15. }
  16.  
  17. @Event {
  18.    
  19. }
  20.  
  21. @MainLoop {
  22.     yield;
  23. }
  24.  
  25. @Finalize {
  26.    
  27. }
  28.  
  29. task followPlayerCamera(){
  30.    
  31.     loop(1024 + 8){yield;}
  32.     let GetCameraDisplacementX = GetCameraFocusX - GetPlayerX;
  33.     loop{
  34.         SetCameraFocusX(GetCameraDisplacementX + GetPlayerX);
  35.         //GetCameraDisplacementX = GetCameraFocusX - GetPlayerX;
  36.         yield;         
  37.     }
  38. }
  39.  
  40. task endStage(){
  41.     loop(1024 + 360){yield;}
  42.     SetCommonData("PlayerX", GetPlayerX);
  43.     SetCommonData("PlayerY", GetPlayerY);
  44.     CloseStgScene();
  45. }
  46.  
  47. task phase1(){
  48.     SetForbidPlayerShot(true);
  49.     SetForbidPlayerSpell(true);
  50.     loop(60){yield;}
  51.     SetForbidPlayerShot(false);
  52.     SetForbidPlayerSpell(false);
  53.     loop(60){yield;}
  54.     //x, y, life, speed, angle, startVelocty, velocity, endVelocity, shotType, deleteTime
  55.     loop(10){ //for testing purposes
  56.         CreateStageEnemyA1(rand(50, GetStgFrameWidth-50), -31, 10, 1.5, 90, 60, 0, 120, "2", 480);
  57.         loop(15){yield;}
  58.     }
  59.     loop(180){yield;}
  60.     loop(10){ //for testing purposes
  61.         CreateStageEnemyA1(rand(25, GetStgFrameWidth/2), -31, 15, 2, 90, 60, -1, 120, "2", 720);
  62.         loop(15){yield;}
  63.     }
  64. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top