Game Development Reference
In-Depth Information
The button is updated to reflect the new quantity, and so is the property in the PlayerData object. Next, the
totalCoins value is updated along with the coins value in PlayerData . The messaging in the store is then updated by
calling updatePurse , which will redraw the number of player coins. Finally, the evaluatePurse method is run, which
determines what buttons should be deactivated based on the new number of coins the player has to spend.
The Continue button will take the user back to the level select screen where they can advance to the next level or
replay previous battles to gain higher stats and coins.
Summary
In this final game project, you combined all of the CreateJS skills that you learned in this topic. Graphics were created
using bitmap objects, sprite sheets, and the drawing API. Animations were created by utilizing both sprite sheet
animation objects and TweenJS. You gained more control over the appearance of your messaging by using bitmap
fonts, and other techniques such as cloning and caching were used to help build more efficient code.
Code organization was achieved by creating custom classes that extend sprites, containers, and even events.
The asset and state management techniques learned in this topic helped mold the game into a readable and reusable
structure, and saving game data and state was achieved by using HTML5 local storage.
These techniques, along with the scaling code for various screen sizes, puts this complete game in a position to
package for publishing on the Web or even in mobile app stores.
 
Search WWH ::




Custom Search