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:
in the includes section and 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.
Code: Select all
#include "Tank.h"Code: Select all
{"Tank", Tank::Create},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.