This is my custom batch (command prompt) script for the original, retro Snake game.
Well, one day, I didn't have anything to do and was pretty much bored. And because I had nothing to do, I considered making a game with a bit of a challenge. So I started modifying my SelectionMenu script, which is used for the main menu. After having the main menu done, I decided to work on some sort of custom language selection system. For that I basically read out every file in the assets\lang
folder and save the languages to variables. With this method I just had to prompt the user for their language and then I could just check, if the language was in the list of languages. I had 3 sub-projects for the current Snake project: Snake Alpha, which basically was the first version ever, which was made by me. Snake Beta, which was the last testing version, using the same, but better optimized code, with less code, but faster code. Snake, the current version, which is the most performant version so far, using the same code again, but even more optimized. I started working on the newest version on the 11th April 2022, in the evening.
- Used for the menus like main menu and stuff like that
- Used for waiting for a certain amount of time. Used to wait in milliseconds, because you can't wait in milliseconds in vanilla Batch.
- Used for getting controls within the snake game itself (Snake controlling)
- Original sources as
.zip
atassets\original_sources\GetInput.zip