We are going to submit our C++ project on a game, which resembles Classic VideoGame game "Battle Rush", by next week, but we don't know much more about how to make artificial intelligence of the enemy tanks. So do you have any idea that how to update and move those enemy tanks in our game......
deepugtm
-8
Junior Poster in Training
Recommended Answers
Jump to PostHow are the tanks represented? May I assume you have 2D grid of the Battle field with the tanks each having x and y coordinates, or something in that vein? (That's how I did it when I was learning c++. And I've never played battle rush). AI is a very …
Jump to PostOkay... let's look at the issues:
1) You say there are multiple enemy tanks to be controlled. Does this mean there is only one user, whom all the tanks attack? If so, the 'Tank target' in the code I gave you would simply be the user. If the tanks …
Jump to PostOkay, that helps a little. I assume the enemy tanks can attack either of the good tanks. Considering the tanks have x and y defined, target tracking should work pretty much exactly like the code I gave you. However - you must decide the goal of the tanks. I assumed …
All 9 Replies
swinefish
5
Junior Poster in Training
deepugtm
-8
Junior Poster in Training
swinefish
5
Junior Poster in Training
deepugtm
-8
Junior Poster in Training
swinefish
5
Junior Poster in Training
deepugtm
-8
Junior Poster in Training
deepugtm
-8
Junior Poster in Training
swinefish
5
Junior Poster in Training
deepugtm
-8
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.