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
No comments:
Post a Comment