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

No comments: