Tank!

Here is a little something I whipped up for use in the testbed. It's a TANK! Yaaay! It drives, it shoots, it can even jump. Just drop Tank.h in the 'Testbed/Tests' source directory and add a couple of lines to TestEntries.cpp:

Code: Select all

#include "Tank.h"
in the includes section and

Code: Select all

{"Tank", Tank::Create},
in the g_testEntries[] section. Then just recompile the testbed and it should appear in the 'Tests' dropdown menu.
Be warned that this code probably needs much refactoring and optimization, but it works so far.
The keys are simple: 'a' goes left, 'd' goes right, 's' is for brakes, 'f' shoots, and 'w' jumps. Aim with the mouse pointer. That's it!
Have some fun with it and see what you can come up with to improve it.
So I figure people would like to know what the heck the tank looks like and such before they try random code from the Internet, so I made a short YouTube video demo of the tank in action...enjoy: https://youtu.be/-_LdcZKEZEw

I shoulda done this sooner, I know...
Can u say something about a https://mobilerecorder24.com mobile recorder on Android? How does it work with other applications?

Original thread: https://box2d.org/forum/viewtopic.php?t=10256