Solved How to make object move? (batch)

April 16, 2016 at 08:25:27
Specs: Windows 7, i3-2120 3.30 GHz / 4 GB
I want to make a simple game, run or kill.
players - you, zombies.
you will be spawned in the middle (30,18)
and zombies will spawned in the sides.
level=1 - 20
W=move up
S=move down
A=move Left
D=move Right
Q=switch weapon
weapon=gun / sword

the gun will shoot to long range in the direction you watching.
and the sword will attack closest zombies.

every level the speed that the zombies will be increased in 0.15 and their health will be increased in 2.
every 5 levels you get bounce 20 health (max 100), and you power increases in 5 damage.
every level will be drop of ammo.

The zombies will try go close to you and attack, and your mission in kill them.
For each kill you will get some exp and coins.

I need help: make the map, player && zombies move, zombies && weapons attack, health, speed, drops.
I just need some one explain me which commands do it and better how this commands works.
For example: I understand what "set /a" or "set /p" does, but when I looked at "snake game" code I don't understand how he did it.

See More: How to make object move? (batch)

Report •

April 16, 2016 at 12:32:04
I haven't programmed in years, and never got very deep into it
when I did, so I'm not the person to answer the questions you are
asking, but maybe I can help you ask the right questions.

It looks like you may have never done any programming before.
Is that right? If so, you need to start at the beginning, but you can
do that by way of making a game. Having a specific application
as your goal is a legitimate way to begin learning to program.

You can use just about any programming language for just about
any program, but different languages have different advantages
and disadvantages for different purposes. You will want to be
sure that the language you choose to use is appropriate for your
abilities as well as for the program you want to write.

There are several levels to programming. The bottom level is
the actual code, individual instructions and the mechanics of
how values are stored, operated on, and moved around. The
top level is an overall description of what you are trying to do,
which can be completely independant of the programming
language and the hardware it runs on. In between are things
like subroutines, arrays, variables, and strings. You start with
the top level description of what you want to end up with, and
determine what subroutines, arrays, variables, strings, and so
on that you'll need to build it. Then you can begin coding.

-- Jeff, in Minneapolis

Report •

April 16, 2016 at 12:36:59
✔ Best Answer
There's a lot of math involved in making something like this (which I'm not to good with), like calculating where to draw the player, where to draw zombies, zombie AI, xp and level system, combat system, weapon stats, etc.

The ammo, health, xp and stuff can most likely be done using simple math /set /a ) (I'd recommend using larger values instead of smaller ones with decimals, as batch doesn't like those)

For making movement, check out this thread

If I were you, I'd sit down with a different language more suited to this kind of thing.

If you do want to stick with batch on this, I'd suggest you build up some proper knowledge about how commands and the command processor work, here are some excellent links:

Don't worry if plan A fails, there are 25 more letters in the alphabet ;)

Report •

April 16, 2016 at 23:10:40
Actually I have made a lot of thing in batch and I'm not new in this. But, making a game with player that move and kill is my first time. and thanks :)

Report •

Related Solutions

April 16, 2016 at 23:12:02
Thanks, I will look at this.
And I'm done some stuff like exp and so..

Report •

Ask Question