@echo off color 0a set XPOS=10 set YPOS=10 goto GAME :GAME cls set OLDX=%XPOS set OLDY=%YPOS goto ingame :ingame if not %YPOS==0 goto udy if not %XPOS==0 goto udx if %XPOS==0 goto update if %YPOS==0 goto update echo O choice /c:wasd>nul if errorlevel 4 goto d if errorlevel 3 goto s if errorlevel 2 goto a if errorlevel 1 goto w goto ingame :d set XPOS=%XPOS+1 goto ingame :s set YPOS=%YPOS+1 goto ingame :a set XPOS=%XPOS-1 goto ingame :w set YPOS=%YPOS-1 goto ingame :update set XPOS=%OLDX set YPOS=%OLDY goto ingame :udx set XPOS=%XPOS-1 echo goto ingame :udy set YPOS=%YPOS-1 echo. goto ingame