Tank!

Post your tutorials and samples here.
CrowbarBarian
Posts: 7
Joined: Sun Jun 25, 2017 9:05 pm

Tank!

Postby CrowbarBarian » Thu Jul 06, 2017 6:27 pm

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.
Attachments
Tank.h
A tank!
(36.75 KiB) Downloaded 18 times

Return to “Tutorials and Samples”



Who is online

Users browsing this forum: No registered users and 1 guest