Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance,Force
- SetWorkingDir,%A_ScriptDir%\Game Maker Assets
- SetBatchLines,-1
- Bird_Grav:= .17 ;0.17
- Adjustable_Vol:= -2.7 ;-2.7
- Bird_X:=300
- Bird_Y:=250
- Y_Pos:=Bird_Y
- Bird_Vol:=0
- Gui,+AlwaysOnTop
- Gui,Add,Picture,x%Bird_X% y%Bird_Y% w50 h50 vBird ,Blue Bot.png
- Gui,Show,w1000 h600,Flappy Bird
- SetTimer,Watch_Bird,10
- return
- GuiClose:
- ExitApp
- Watch_Bird:
- if(Y_Pos<550)
- {
- Bird_Vol+=Bird_Grav
- Y_Pos+=Bird_Vol
- GuiControl,Move,Bird,y%Y_Pos%
- }
- else
- {
- Bird_Vol:=-1
- Y_Pos+=Bird_Vol
- GuiControl,Move,Bird,y%Y_Pos%
- }
- return
- w::
- Up::
- Bird_Vol:=Adjustable_Vol
- return
- *^ESC::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement