How to Move in Batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
BatchingBadger
Posts: 2
Joined: 17 Mar 2014 16:45

How to Move in Batch

#1 Post by BatchingBadger » 18 Mar 2014 05:46

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. :D Thanks!!!!!

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: How to Move in Batch

#2 Post by foxidrive » 18 Mar 2014 06:23

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

BatchingBadger
Posts: 2
Joined: 17 Mar 2014 16:45

Re: How to Move in Batch

#3 Post by BatchingBadger » 18 Mar 2014 14:14

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. :?

Post Reply