I remembered that YaBasic was console-based, and had a "print" command that could print console-space pixels on the prompt of any color and at any location. So I duplicated this command with some coding.
This code:
Code: Select all
@echo off
printcolor 8 2 0
printcolor 8 2 1
printcolor 8 2 2
printcolor 8 2 3
printcolor c 1 4
printcolor c 2 4
printcolor c 3 4
printcolor 5 2 5
echo.
pause
Will give you this:
If you do not already get how it works, type "printcolor /?" for help. It uses the same color hex as the COLOR command.
Download
Please comment on it and make suggestions! I'm good with C# so I may be able to fulfill many requests.
Here is an example of using it for a game or something:
Code: Select all
@echo off
set x=0
set y=0
:start
printcolor f %x% %y%
choice /c wads > nul
if %errorlevel%==1 (
set /a y=%y%-1 )
if %errorlevel%==2 (
set /a x=%x%-1 )
if %errorlevel%==3 (
set /a x=%x%+1 )
if %errorlevel%==4 (
set /a y=%y%+1 )
cls rem delete this line to make your character leave a trail
goto start
Control the white box with the WASD keys.