Hour 21. Making the Simon Game

What You’ll Learn This Hour:

• Using game states

• Creating a game loop

• Creating a “follow the leader” game

• Playing sounds through JavaScript

• Saving high scores

• Displaying high scores to the player

Many of the apps in stores today are games. People love playing games. During this hour, we explore how to create a complete game from scratch. We discuss game specifics such as working with game states and using a game loop. We even walk through creating a small demo on the side to show how a game loop can work. Along the way, we style the game and each screen the game uses.

We spend time looking at the logic of the game and work through the flow of the code so that the game works as expected. We implement ...

Get Sams Teach Yourself Windows® 8 Apps with JavaScript and HTML5 in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.