How to make a text based game in batch file

broken image

It has nothing to do with the game, but the video needed a sound track. The music is me on flute with my buddy Dan on kick drum turned on its side and played with a mallet. The clear screen caused lots of flicker, accentuated by the video capture process that manages to catch frames when the screen is black. Instead I was clearing the screen and then redrawing each frame in its entirety. Here is a video capture from an early version of the game prior to figuring out how to erase and write to individual character positions. And of course it would die if it ran into itself or a wall. The snake was very nearly as you describe, except the game snake would grow by one segment each time it ate some food. Your description of the graphing mechanism reminds me of another life when I implemented the Snake video game using nothing but Windows batch programming (commonly but mistakenly referred to as DOS). So hopefully it looks fairly smooth at whatever your video frame rate is, while also allowing the snake to grow nice and twisty. At the same time, I fade a segment out from the back of the snake. The rule is that I keep updating the current point, but once it is more than 0.1 volts away from the previous point, I put a new segment on the front of the “snake”. What is a text-based game you ask Its a game (a very simple one) in which the user interacts through the use of text and choice-making. Announcing: Sapphire Frolic, Tricorder, Tin

broken image