How To Make a Snake Game With NotePad
Notepad එකෙන් Snake game එකක් හදමු පහත තියෙන code එක copy කරලා notepad එකේ paste කරන්න.ඊටපස්සේ .bat file එකක් විදිහට save කරන්න.ඊටපස්සේ bat file එක open කරලා game එක play කරන්න. @echo off color 0e if "%~1" == "startGame" goto :game if "%~1" == "startController" goto :controller ::------------------------------------------------------------ :: verify existence of CHOICE command :: set up a macro appropriately depending on available version set "choice=" 2>nul >nul choice /c:yn /t 0 /d y if errorlevel 1 if not errorlevel 2 set "choice=choice /cs" if not defined choice ( 2>nul >nul choice /c:yn /t:y,1 if errorlevel 1 if not errorlevel 2 set "choice=choice /s" ) if not defined choice ( echo ERROR: This game requires the CHOICE command, but it is missing. echo Game aborted. :( echo( echo A 16 bit port of CHOICE.EXE from FREEDOS is available at echo http:...
Comments
Post a Comment