Saturday, September 20, 2008

Week 10 - Making the waves

This week I made some functions that control the enemy, once the game is started by the user clicking the start button. The enemies are sent in waves every 30 seconds. The waves are stored in an array, each 30 seconds the next wave gets added to the array and the units get created.

I also did some more optimising of the code, as well as made some graphical changes that are closer to that of the final design. There were some other minor but necessary functions added to the game this week.
Work done, week 10 13-19 Sep;

game - Made some graphical changes to the game, the hub is now at the bottom of the screen. Enemies come in waves every 30 seconds. Helicopters now go to the brewery and steal the beer. Brewery can be damaged. When enemies are killed score increases. Units now cost money, will not allow user to create more if not enough money.

function.as - Fixed show stats functions so that stats are displayed when a unit is clicked or the build unit buttons are highlighted. Function to upgrade units was added although at the moment does not require cost.

waves1.as - Contains the 25 waves of units in arrays.





Will

Saturday, September 13, 2008

Week 9 - More coding of the units

This week was spent finished the coding the creation the of the units and towers. As well as the towers and units appropriately moving and attacking. This code was mostly the same as the code used for the previous weeks work, except for minor changes here and there for each unit. At this stage all units are randomly placed at creation.

I made a bit of code that displays the stats of units when highlighting over the respective creation buttons. Unfortunately at the stage it means that the clicking units will not show their stats.

I also put in a bit of work to optimise the code. This included creating a separate action script file that contains most of the external functions that are called at various times.

Work done, week 9 6-12 Sep;


game - Produced code that builds Anti-Air Towers, Fireballs and Helicopters. As well as scripts that control these units movement and attack. Optimised scripts. Changed the buttons in the game and made build/upgrade units tabs.

functions.as - Made an external file that contains functions, some of these are used to optimise the code. Scripted a function that shows the stats of units, when highlighting over the respecting build buttons.

The big red balls are the Fireballs, the hexagons are the Helicopters and the yellow and black things are the Anti-Air Towers. The Helicopters cannot attack, but instead go for the brewery and try to take the beer. The Fireballs attack the towers or the brewery if there is no towers. The Anti-Air Towers can only attack the Helicopters.


Will

Saturday, September 6, 2008

Week 8 - Coding the units

This week was spent doing coding that created and controlled most of the units. Two of the three towers as well as the robot, and one of the enemies units were done. I decided that I will not have the squish robots, as a do not like the idea, I may replace it with another unit, or just remove it altogether.

I also needed to change the stats for the units, as the range was way too short.

Some of the code that was done, was found on the net by doing google searches, from previous projects and samples, or from the MPP forum.
Work done, week 8 30 Aug - 5 Sep;

game - Produced scripts that make as well as control their movement and attack for the Laser Robots, Laser Towers, Missile Towers and Firemen. Made a script that shows the stats of a currently selected unit.

units.xls - Changed the range for each unit.

units.as - Updated from changes made to the excel file.


The black ones are Laser Robots, green Laser Towers, white Missile Towers, red Firemen.




Will