Left Tank: Left hand for moving tank: w=in, s=out, a=left, d=right Right hand : y=gun up, g=gun down, j,k,l fires 1 shell each Right Tank: Left hand for moving tank with 4 arrow keys Right hand: 8=gun up, 4=gun down, 9,6,3 fires 1 shell each
The code uses a bit of geometry to calculate the 3D position of the tanks and walls. You can change the force of gravity for some variety. Have fun and try to avoid blowing yourself up!