Thank you for visiting Blazing Games

Creating a Flag (9:30-10:30)

My estimate was spot on for this section as it only took a little over 45 minutes to write the code. As always, the rest of the time block is being used to write this. I am starting with all the classes from the last game (General) as my starting point.

The flag was very simple to code as all it consists of is a rectangle and a triangle. The rectangle color will be the player's background color (as defined in the already existing PlayerSetup class). The triangle will be the player's foreground color.

Once the flag class was created, the real challenge became how do I go about testing this class. I decided that I could just use the flag in the background of the title screen which would add some nice cosmetics to the title. The traditional way of doing something like this would be to override the title class and have it add the flag to the background. However, the title screen is transparent already so I decided not to bother writing a separate class to do this. Instead, I am drawing it in the background of the canvas and then drawing the title screen over-top of it. Flash display lists are wonderful for doing this type of things.


Previous page
Making Everest Page 3

About - Privacy Policy - Contact - Links - FAQ
Copyright © 2008 Blazing Games Inc. All Rights Reserved