Page 1 of 1


Posted: Thu Jul 06, 2017 6:27 pm
by CrowbarBarian
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.

Re: Tank!

Posted: Fri Dec 01, 2017 9:20 pm
by CrowbarBarian
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:

I shoulda done this sooner, I know...