November 26, 2002

Tanks 2

After making a turn based tank game that had fake physics, I decided to make a cooler version. My parents were taking me with them to Massachusetts for Thanksgiving, so I brought my math book and my laptop for the 5 hour car ride. I taught myself derivatives and developed a simulation of balls bouncing on graph of a randomly generated trig function. The balls bounced based on the slope of the terrain (hence the derivatives).

By the end of the weekend I had the whole game made. It was written in QBasic using drawing commands like CIRCLE, LINE, and PSET. Looking back at the confusing spaghetti code, I'm amazed it ever worked.