Advertisement
Guest User

Flappy Bird in Batch, Keyboard

a guest
Feb 19th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.33 KB | None | 0 0
  1. @echo off
  2. title Flappy Keyboard
  3. if %run% neq true exit
  4. mode con: cols=19 lines=6
  5.  
  6. :loop
  7. cls
  8. echo Type "W" to Jump!
  9. choice /n /c w
  10. if %errorlevel% equ 1 goto move
  11.  
  12. findstr /i "END" gamestate
  13. if %errorlevel% equ 0 exit
  14.  
  15. goto loop
  16.  
  17. :move
  18.  
  19. findstr /i "END" gamestate
  20. if %errorlevel% equ 0 exit
  21.  
  22. echo UP > movement
  23. goto loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement