Advertisement
Guest User

h

a guest
Jul 16th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.68 KB | None | 0 0
  1. #TouhouDanmakufu
  2. #Title[Keanu...]
  3. #Text[neospell]
  4. #Player[REIMU, MARISA]
  5. #ScriptVersion[2]
  6.  
  7. script_enemy_main {
  8.  
  9.     let CSD = GetCurrentScriptDirectory;
  10.     let imgBoss = CSD ~ "IMG\Keanu.png";
  11.  
  12.     let frame=0;
  13.     let frame2=0;
  14.     let frame3=0;
  15.     let GATP=NULL;
  16.     let angle=0;
  17.     let angle2=0;
  18.     let N=1;
  19.  
  20.     @Initialize {
  21.         LoadUserShotData("script\Yamamotos\SYSTEM\supershot.txt");
  22.         CreateEventFromScript("test");
  23.         LoadGraphic(imgBoss);
  24.         SetLife(3000);
  25.         SetTimer(80);
  26.         SetInvincibility(30);
  27.     SetMovePosition01(GetCenterX, GetCenterY, 90);
  28.     }
  29.  
  30.  
  31.     @MainLoop {
  32.  
  33.         SetCollisionA(GetX, GetY, 32);
  34.         SetCollisionB(GetX, GetY, 16);
  35. yield;
  36.  
  37. }
  38.     @DrawLoop {
  39.    
  40.        
  41.     }
  42.  
  43.     @Finalize {
  44.  
  45.     }
  46. }
  47.  
  48. script_event test {
  49.  
  50.     let CSD = GetCurrentScriptDirectory;
  51.     let imgKeanu = CSD ~ "IMG\keanucutin.png";
  52.     let imgReimu = CSD ~ "IMG\reimu.png";
  53.  
  54. @Initialize {
  55.         LoadGraphic(imgKeanu);
  56.         LoadGraphic(imgReimu);
  57.  
  58.  }
  59.  
  60. @MainLoop{
  61.  SetChar(LEFT, imgReimu);                 //Set the player's character on the left side, with the graphic you've told it to display.
  62.  SetGraphicRect(LEFT, 0, 0, 452, 240);           //The region you're displaying of the graphic for the player character, just like SetGraphicRect.
  63.  MoveChar(LEFT, BACK);                             //Move the player's character into the background, to show she is not speaking.
  64.  SetChar(RIGHT, imgKeanu);                //Set the boss' picture on the right side of the screen.
  65.  SetGraphicRect(RIGHT, 0, 0, 357, 599);           //Set the boundry of the picture you want displayed.
  66.  MoveChar(RIGHT, FRONT);                          //Move the boss' image to the front to show that she is speaking.
  67.  TextOutA("Guess who I am?");           //Self explanatory. Danmakufu will not pass this function until a certain amount of time has passed, or the player clicks the shot button.
  68.  MoveChar(RIGHT, BACK);                           //Move the boss to the background, then...
  69.  MoveChar(LEFT, FRONT);                           //Move the player forward, to show that she will now speak.
  70.  TextOutA("Nope, who are you? You look like one of that guys from the TV.");                     //What the player will be speaking.
  71.  MoveChar(LEFT, BACK);  
  72.  MoveChar(RIGHT, FRONT);                          //Move the boss' image to the front to show that she is speaking.
  73.  TextOutA("Eye'm Keanu. ...Yes, the one from Matrix. Neo from Matrix. Do yo know Matrix?");           //Self explanatory. Danmakufu will not pass this function until a certain amount of time has passed, or the player clicks the shot button.
  74.  MoveChar(RIGHT, BACK);                           //Move the boss to the background, then...
  75.  MoveChar(LEFT, FRONT);                           //Move the player forward, to show that she will now speak.
  76.  TextOutA("Whoa!");                     //What the player will be speaking.
  77.  MoveChar(LEFT, BACK);  
  78.  MoveChar(RIGHT, FRONT);                          //Move the boss' image to the front to show that she is speaking.
  79.  TextOutA("And I'm immortal. And strong. Would you fight meh?");           //Self explanatory. Danmakufu will not pass this function until a certain amount of time has passed, or the player clicks the shot button.
  80.  MoveChar(RIGHT, BACK);                          //Move the boss to the background, then...
  81.  MoveChar(LEFT, FRONT);                           //Move the player forward, to show that she will now speak.
  82.  TextOutA("Kay. If I win, tell me if you're truly immmortal.");                     //What the player will be speaking.
  83.  End;           //This ends the event.
  84.  }
  85.  
  86. @Finalize{
  87.   DeleteGraphic(imgKeanu);
  88.   DeleteGraphic(imgReimu);
  89.  }
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement