Tower saving
The tower saving mechanic is a key feature in the development of the game. what will give the game the most replayability players and will allow players to hit higher and higher waves the more they collect towers and store them within the system.
the way the system works is once a tower is selected and it has to be a master templates tower. When is selected and the player clicks on the Tower library and clicks and empty button it then proceeds to save the tower to a day of slots which can then be recalled whenever the game restarts.
when the tower is clicked if first checks to see if the data file does exist if true it downloads this day file and gets the relative information so that that's the tower can then be spawned on the map similar to any other tower being spawned.
If the data file doesn't exist it then takes all the relative information from the current selected tower then creates a save and says all the properties of that tower so that it can saved and spawned.
if the player wants to get rid of any of the towers within this library they can simply delete by clicking a button in the full Tower description called remove Tower from live in this simply.
No comments:
Post a Comment