Advertisement
Oysi

Snake by Oysi [Game]

Jun 23rd, 2012
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.90 KB | None | 0 0
  1. @echo off
  2.  
  3. :: You need the other file to play the game
  4. :: http://pastebin.com/a62jHD6h
  5.  
  6. SetLocal EnableDelayedExpansion
  7. mode con cols=50 lines=20
  8.  
  9. title Snake Game by Oysi
  10. color 0a
  11.  
  12. :: File directory
  13. cd "%userprofile%"
  14. if not exist "iccs" md "iccs"
  15. cd "%userprofile%\iccs"
  16. if not exist "Snake" md "Snake"
  17. cd "%userprofile%\iccs\Snake"
  18.  
  19. :reset
  20.     :: Reset settings
  21.     > "move.bat" echo set move=
  22. goto menu
  23.  
  24. :menu
  25.     cls
  26.     echo.
  27.     echo  SNAIK
  28.     echo -------
  29.     echo.
  30.     set /p menu=Your move:
  31.     call "move.bat"
  32.     if /i "%menu:~0,1%"=="a" (if not "%move%"=="d" (> "move.bat" echo set move=a))
  33.     if /i "%menu:~0,1%"=="w" (if not "%move%"=="s" (> "move.bat" echo set move=w))
  34.     if /i "%menu:~0,1%"=="s" (if not "%move%"=="w" (> "move.bat" echo set move=s))
  35.     if /i "%menu:~0,1%"=="d" (if not "%move%"=="a" (> "move.bat" echo set move=d))
  36.     if /i "%menu:~0,5%"=="start" (> "move.bat" echo set move=start)
  37. goto menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement