Code: Select all
@echo off
mode con cols=56 lines=18
color f0
::
set u1=Û
set u2=Û
set u3=Û
set u4=Û
set u5=Û
set u6=Û
set u7=Û
set u8=Û
set u9=Û
set u10=Û
set u11=Û
set u12=Û
set u13=Û
set u14=Û
set u15=Û
set u16=Û
set u17=Û
set u18=Û
set u19=Û
set u20=±
set u21=±
set u22=±
set u23=±
set u24=±
set u25=±
set u26=±
set u27=±
set u28=±
set u29=±
set u30=±
set u31=±
set u32=±
set u33=±
set u34=±
set u35=±
set u36=Û
set u37=Û
set u38=±
set u39=±
set u40=±
set u41=±
set u42=±
set u43=±
set u44=±
set u45=±
set u46=±
set u47=±
set u48=±
set u49=±
set u50=±
set u51=±
set u52=±
set u53=±
set u54=Û
set u55=Û
set u56=±
set u57=±
set u58=±
set u59=±
set u60=±
set u61=±
set u62=±
set u63=±
set u64=±
set u65=±
set u66=±
set u67=±
set u68=±
set u69=±
set u70=±
set u71=±
set u72=Û
set u73=Û
set u74=Û
set u75=Û
set u76=Û
set u77=Û
set u78=Û
set u79=Û
set u80=Û
set u81=Û
set u82=Û
set u83=Û
set u84=Û
set u85=Û
set u86=Û
set u87=Û
set u88=Û
set u89=Û
set u90=Û
set u20=#
set position=20
set position-full=u20
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:screen
cls
echo %u1%%u2%%u3%%u4%%u5%%u6%%u7%%u8%%u9%%u10%%u11%%u12%%u13%%u14%%u15%%u16%%u17%%u18%
echo.%u19%%u20%%u21%%u22%%u23%%u24%%u25%%u26%%u27%%u28%%u29%%u30%%u31%%u32%%u33%%u34%%u35%%u36%
echo.%u37%%u38%%u39%%u40%%u41%%u42%%u43%%u44%%u45%%u46%%u47%%u48%%u49%%u50%%u51%%u52%%u53%%u54%
echo.%u55%%u56%%u57%%u58%%u59%%u60%%u61%%u62%%u63%%u64%%u65%%u66%%u67%%u68%%u69%%u70%%u71%%u72%
echo %u73%%u74%%u75%%u76%%u77%%u78%%u79%%u80%%u81%%u82%%u83%%u84%%u85%%u86%%u87%%u88%%u89%%u90%
echo.
echo WASD
echo.
echo position:
echo %position%
choice /C WASD /N
if errorlevel 4 (
set /a position=%position%+1
if "u%position%"=="Û" (
set /a position=%position%-1
goto screen
)
set u%position%=±
goto refresh
)
if errorlevel 3 (
set /a position=%position%+18
if "u%position%"=="Û" (
set /a position=%position%-18
goto screen
)
set u%position%=±
goto refresh
)
if errorlevel 2 (
set /a position=%position%-1
if "u%position%"=="Û" (
set /a position=%position%+1
goto screen
)
set u%position%=±
goto refresh
)
if errorlevel 1 (
set /a position=%position%-18
if "u%position%"=="Û" (
set /a position=%position%+18
goto screen
)
set u%position%=±
goto refresh
)
:refresh
set u%position%=#
goto screen
Somehow, the walls don't work. Can anyone help me?
The walls are detected by
Code: Select all
set /a position=%position%-18
if "u%position%"=="Û" (
set /a position=%position%+18
goto screen