Tanks AI
Simple Tank AI
Tanks use a spherical dot-product to find enemies.
If they find one, they'll enter the chase state and go after the enemy until it dies.
When a tank is hit, it will change its target to the attacker.
Technically the tanks will enter wander again if the target gets out of range, but that will almost never happens because tanks don't flee. It wouldn't be... canon.
Sometimes the tanks get stuck shooting in the wrong direction. It has something to do with Target assignment but NBD for the test.
Development log
- Turret Rotation, Little Dudes and AestheticsAug 24, 2022
Comments
Log in with itch.io to leave a comment.
T3CH Games i like the simulator. Lots of fun for a few minutes. I don't know if sugestions are wanted. But i can not help myself. First the mouse button input is problematic in brower, maybe move it to the numbers (1 = red, 2 = blue and 3 = green). A small thing one of the towers is to far away from the center to clear it easily. Lastly the camera. It would be a lot more fun if you could move it or zoom in. For your first upload it realy good. :)
Thanks for trying it out!
This was originally just a little demo to show off some basic AI for another project, but I kinda liked how it turned out so much I'm gonna add some little bits to it over time.
Definately going to add some fly-cam controls so we can get a close look at the action. Thanks for the tip on the mouse input being an issue- I tried it out on another PC and found exactly what you mean. I'll patch in some cool stuff, hopefully soon.