Advertisement
CivReborn

Flappy Bird 1

Oct 2nd, 2017
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SingleInstance,Force
  2. SetWorkingDir,%A_ScriptDir%\Game Maker Assets
  3. SetBatchLines,-1
  4. Bird_Grav:=   .17                  ;0.17
  5. Adjustable_Vol:=  -2.7                   ;-2.7
  6. Bird_X:=300
  7. Bird_Y:=250
  8. Y_Pos:=Bird_Y
  9. Bird_Vol:=0
  10. Gui,+AlwaysOnTop
  11. Gui,Add,Picture,x%Bird_X% y%Bird_Y% w50 h50 vBird ,Blue Bot.png
  12. Gui,Show,w1000 h600,Flappy Bird
  13. SetTimer,Watch_Bird,10
  14. return
  15. GuiClose:
  16.     ExitApp
  17. Watch_Bird:
  18.    if(Y_Pos<550)
  19.         {
  20.             Bird_Vol+=Bird_Grav
  21.             Y_Pos+=Bird_Vol
  22.             GuiControl,Move,Bird,y%Y_Pos%
  23.         }
  24.     else
  25.         {
  26.             Bird_Vol:=-1
  27.             Y_Pos+=Bird_Vol
  28.             GuiControl,Move,Bird,y%Y_Pos%
  29.         }
  30.     return
  31. w::
  32. Up::
  33.     Bird_Vol:=Adjustable_Vol
  34.     return
  35. *^ESC::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement