Robot tanks trying to kill each other.  Well, at least that's what I'm aspiring toward :)

git clone git://github.com/kindohm/kindohm-artillery.git

http://github.com/kindohm/kindohm-artillery/tree/master

Right now it's super stripped down and simple.  No real UI or interactivity yet.  Just some stationary guns that don't move and some output messages to the console.  The guns fire projectiles at each other in a parabolic arc.  Since the projectile path and firing solution are both predictable, I introduced some randomness so that the first gun to shoot doesn't automatically "win".  Basically my work so far was just to get the trajectories down.  This article was most helpful: http://en.wikipedia.org/wiki/Trajectory.

Next on tap is to allow guns to adjust the angle they shoot at.  Right now they fire 45 degrees from the horizontal at all times.  In an open line of fire, I'd like the guns to be able to dial in a high-speed, low shot.  If there are obstacles in the way, they could dial in a slow, high-arc shot. 

Then there's uneven terrain, obstacles, and tank movement.  I can at least dream...

Technorati Tags: