This is definitely one of those 'eye catching' notifications in my feed. Especially with a batch file in the description. Havent seen it yet, but I still have no idea why 'batch' exists and I thought we were talking about bash (which I do use lol). I will check this out!
I made a text based mini game with batch files for the DosBox emulator with some tiny monochrome pictures made with online paint on a touch screen, the choice command, the debug command and SBplay.exe (download/unzip in the mounted folder of DosBox). With SBplay we can play wav sound files and with debug we can create new executable for DOS/DosBox. I made a video to show how it works and to share the batch files. Have fun.😊
I like to use these pipe operators: > >> < to redirect the output of echo commands into a new text file, to add new lines to this file and to start debug with this file to create&run a new executable file of mashine code from the output. The output contains internal debug commands and x86 assembler mnemonics. So i use batch files as an open source container for a routine made with a programming language to create new executable files from the routine inside the batch file. This can be done with a debugger using assembly, or an assembler and a linker, or a compiler and a linker for other languages like C or Python for example. Most of my batch files have to start with one or more parameter attached and the parameter are used to build a routine. Example: CENTER.BAT 8 1b "Hello World center align." echo first instruction>test.txt echo second instruction>>test.txt echo third instruction>>test.txt .... debug
DOS batch files can be used for text screen to output text and for graphic screen to draw colored pixel, lines, circles, ellipses, if we use special DOS commands that can draw on the graphic screen. Using DOS on a PC with a modern graphic card (Radeon 9750 PCIe) we can find VBE mode numbers for a wide screen resolution like 1920x1080x32 or 1920x1200x32 with 16:9 or 16: 10 aspect ratio. But batch files are slow like a BASIC interpreter.
it runs on windows 10 (search for cmd)(runs in powershell too, but it's blue by default), and there's a windows 95 theme for Godot... 🤔 doing it in XP makes for a more interesting video though
Make a game, but it will be in DOSBOX. DOS .BAT files are more harder than a Windows .BAT file. Here's a DOS .BAT game i made: @echo off CLS ECHO =================================== ECHO CAT ECHO =================================== ECHO. ECHO Choices: ECHO To start the game, enter 1. ECHO To exit, enter 2. ECHO. CHOICE /C:12 What's your choice? IF ERRORLEVEL 2 GOTO END IF ERRORLEVEL 1 GOTO START :START :LIVINGROOM CLS ECHO You are a cat living in a house, and your owners leave! ECHO To win, you need to: ECHO Eat food ECHO. GOTO LIVING :LIVING ECHO You are in the living room. ECHO Where should you go? ECHO To enter the kitchen, enter 1. ECHO To enter the bathroom, enter 2. ECHO. CHOICE /C:12 What's your picked room to enter? IF ERRORLEVEL 2 GOTO BATH IF ERRORLEVEL 1 GOTO KITCHEN :BATH ECHO You enter the bathroom. ECHO You find nothing. ECHO To enter the kitchen, enter 1. ECHO To enter the living room, enter 2. CHOICE /C:12 What's your picked room to enter? IF ERRORLEVEL 2 GOTO LIVING IF ERRORLEVEL 1 GOTO KITCHEN :KITCHEN ECHO You enter the kitchen. ECHO You find a cat bowl of food and cat bowl of water. ECHO To drink the water and eat the food, enter 1. ECHO To not drink the water and eat the food, enter 2. CHOICE /C:12 What's your picked choice? IF ERRORLEVEL 2 GOTO HUNGRY IF ERRORLEVEL 1 GOTO EAT :HUNGRY ECHO You need to eat and drink! GOTO KITCHEN :EAT ECHO You drank the water and ate the food. ECHO Your owners came home! ECHO You Win! ECHO To start again, press 1. ECHO To exit the game, press 2. CHOICE /C:12 Do you want to start again or exit? IF ERRORLEVEL 2 GOTO END IF ERRORLEVEL 1 GOTO LIVING :END CLS ECHO Bye! PAUSE
I used to make games in Batch files back in middle school! Incredible to see that you have your old projects saved, I wish I had mine.
This is definitely one of those 'eye catching' notifications in my feed. Especially with a batch file in the description. Havent seen it yet, but I still have no idea why 'batch' exists and I thought we were talking about bash (which I do use lol).
I will check this out!
Super underrated video dude! This was so enjoyable and interesting to watch so I can't wait for more of your content! Keep up the great work :D
This was a pretty nice chieldhood!
I remember making games in Batch back in the day, great memories
interesting little game i tried it and i like it, only thing is i wished to change letters to dark blue instead of default white
I made a text based mini game with batch files for the DosBox emulator with some tiny monochrome pictures made with online paint on a touch screen, the choice command, the debug command and SBplay.exe (download/unzip in the mounted folder of DosBox). With SBplay we can play wav sound files and with debug we can create new executable for DOS/DosBox. I made a video to show how it works and to share the batch files. Have fun.😊
Commenting for the algorithm!
I like to use these pipe operators: > >> < to redirect the output of echo commands into a new text file, to add new lines to this file and to start debug with this file to create&run a new executable file of mashine code from the output.
The output contains internal debug commands and x86 assembler mnemonics. So i use batch files as an open source container for a routine made with a programming language to create new executable files from the routine inside the batch file.
This can be done with a debugger using assembly, or an assembler and a linker, or a compiler and a linker for other languages like C or Python for example.
Most of my batch files have to start with one or more parameter attached and the parameter are used to build a routine. Example: CENTER.BAT 8 1b "Hello World center align."
echo first instruction>test.txt
echo second instruction>>test.txt
echo third instruction>>test.txt
....
debug
DOS batch files can be used for text screen to output text and for graphic screen to draw colored pixel, lines, circles, ellipses, if we use special DOS commands that can draw on the graphic screen. Using DOS on a PC with a modern graphic card (Radeon 9750 PCIe) we can find VBE mode numbers for a wide screen resolution like 1920x1080x32 or 1920x1200x32 with 16:9 or 16: 10 aspect ratio. But batch files are slow like a BASIC interpreter.
"modern"
Good work.
Very interesting thank you for your work
Wow you have 99.9k subs
it runs on windows 10 (search for cmd)(runs in powershell too, but it's blue by default), and there's a windows 95 theme for Godot... 🤔
doing it in XP makes for a more interesting video though
0:08 In 2009 I was 8, is that close enough?
Hey my man! Just wondering wich program do you use to make your sprites?
Ctrl-C for cheats.
Make a game, but it will be in DOSBOX.
DOS .BAT files are more harder than a Windows .BAT file.
Here's a DOS .BAT game i made:
@echo off
CLS
ECHO ===================================
ECHO CAT
ECHO ===================================
ECHO.
ECHO Choices:
ECHO To start the game, enter 1.
ECHO To exit, enter 2.
ECHO.
CHOICE /C:12 What's your choice?
IF ERRORLEVEL 2 GOTO END
IF ERRORLEVEL 1 GOTO START
:START
:LIVINGROOM
CLS
ECHO You are a cat living in a house, and your owners leave!
ECHO To win, you need to:
ECHO Eat food
ECHO.
GOTO LIVING
:LIVING
ECHO You are in the living room.
ECHO Where should you go?
ECHO To enter the kitchen, enter 1.
ECHO To enter the bathroom, enter 2.
ECHO.
CHOICE /C:12 What's your picked room to enter?
IF ERRORLEVEL 2 GOTO BATH
IF ERRORLEVEL 1 GOTO KITCHEN
:BATH
ECHO You enter the bathroom.
ECHO You find nothing.
ECHO To enter the kitchen, enter 1.
ECHO To enter the living room, enter 2.
CHOICE /C:12 What's your picked room to enter?
IF ERRORLEVEL 2 GOTO LIVING
IF ERRORLEVEL 1 GOTO KITCHEN
:KITCHEN
ECHO You enter the kitchen.
ECHO You find a cat bowl of food and cat bowl of water.
ECHO To drink the water and eat the food, enter 1.
ECHO To not drink the water and eat the food, enter 2.
CHOICE /C:12 What's your picked choice?
IF ERRORLEVEL 2 GOTO HUNGRY
IF ERRORLEVEL 1 GOTO EAT
:HUNGRY
ECHO You need to eat and drink!
GOTO KITCHEN
:EAT
ECHO You drank the water and ate the food.
ECHO Your owners came home!
ECHO You Win!
ECHO To start again, press 1.
ECHO To exit the game, press 2.
CHOICE /C:12 Do you want to start again or exit?
IF ERRORLEVEL 2 GOTO END
IF ERRORLEVEL 1 GOTO LIVING
:END
CLS
ECHO Bye!
PAUSE