March 15, 2009

Math Dodger: A Flash game

Posted in Misc, Software at 02:26 by graham

Los Angeles is under attack, by trigonometric functions! OMG! Trigo-what? If I wanted to do maths, I’d go to San Francisco!! You, like, totally gotta save L.A man. Enter your name, then move your tank.

Use the left and right arrow keys to rotate, the forward and back arrow keys to move.
The barrel of the tank is the little black line. That’s the front.

No, your tank can’t fire. Avoid the mathematical blobs. YEAH!
The longer you live, the more points you get. A score above 100 is, like, totally AWESOME! Good luck Bro.
Let me know in the comments how much you score.


This game is for Paul, who quit the comfortable life of a Brighton based software engineer, to go teach maths in Birmingham. Turns out there is a point to maths – it’s computer graphics.
The L.A. theme is just because I had that picture in my collection (which I took from the Griffith Observatory), and I’m a little nostalgic about it.

Download the source code. This code should be considered licensed under the GNU General Public Licence.

You’ll need the free Flex SDK to build it, and the standalone flashplayer (or know how to embed Flash in HTML) to run it.

Once you have those, unzip the source into a directory, and run:
mxmlc MathDodger.as ; flashplayer MathDodger.swf

If you are interested in ActionScript (not just for animators!), I suggest starting with the Senocular tutorial.

7 Comments »

  1. ted said,

    May 31, 2011 at 10:10

    I got 223 points.. ^^ I suck!

  2. Cool game math said,

    December 19, 2010 at 11:33

    […] Graham King » Math Dodger: A Flash game 15 Mar 2009. If I wanted to do maths, I'd go to San Francisco!. cool game, we can easily rebrand this. thanks! aion kinah said, Graham King » Math Dodger: A Flash game […]

  3. Millsberry said,

    September 15, 2009 at 16:46

    cool game, we can easily rebrand this. thanks!

  4. aion kinah said,

    September 12, 2009 at 06:17

    I thank the Lord for giving us the gift of brilliant preachers!

  5. Moonkey said,

    August 8, 2009 at 22:11

    I got 116 points (without camping in the right bottom corner) :R

    By the way, nice communist cencoring you got on this site, you go H4XX3R.

  6. Adam Hangman said,

    May 3, 2009 at 22:19

    Is it true?? Cant imagine….Thanx for sharing this ……

  7. Steve Knight said,

    March 17, 2009 at 12:18

    Dude those tangent functions kill me! 55 seconds. I suck.

Leave a Comment

Note: Your comment will only appear on the site once I approve it manually. This can take a day or two. Thanks for taking the time to comment.