O'Reilly logo

Sams Teach Yourself Windows® 8 Apps with JavaScript and HTML5 in 24 Hours by Chad Carter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required