
How to Move in Batch
Moderator: DosItHelp
-
- Posts: 2
- Joined: 17 Mar 2014 16:45
How to Move in Batch
Hi I am trying to make a game in batch but I have one problem I don't know how to make everything run smoothly while you are moving. I haven't started it yet but you move using w a s d to a target and shoot with the space bar. Anything pretty much will help, I know a little bit about batch and I have made a some programs but I am only 12 so don't confuse me.
Thanks!!!!!

Re: How to Move in Batch
There are many examples of batch games where keys are used to move, and it would be useful to examine them and change the routines to suit
how you want the code to work. Reading and modifying working code, and debugging your typos etc, is a good way to get hands on experience.
Please avoid typing everything in bold font - that's most often used to draw attention to a word or phrase.
Dave Benham has written a snake game here, and it's fun to play. You can see what is possible, even if the code is too complex to understand quickly.
SNAKE.BAT - An arcade style game using pure batch www.dostips.com/forum/viewtopic.php?f=3&t=4741
and here's another that Dave coded:
Colossal Cave Adventure in batch viewtopic.php?f=3&t=4876
how you want the code to work. Reading and modifying working code, and debugging your typos etc, is a good way to get hands on experience.
Please avoid typing everything in bold font - that's most often used to draw attention to a word or phrase.

Dave Benham has written a snake game here, and it's fun to play. You can see what is possible, even if the code is too complex to understand quickly.
SNAKE.BAT - An arcade style game using pure batch www.dostips.com/forum/viewtopic.php?f=3&t=4741
and here's another that Dave coded:
Colossal Cave Adventure in batch viewtopic.php?f=3&t=4876
-
- Posts: 2
- Joined: 17 Mar 2014 16:45
Re: How to Move in Batch
Thank You! I have already looked at the snake game and I couldn't understand it, but I will try the other one.
And I didn't mean to type in bold it just did that for me. 

