Chapter 17. User Interface

Topics in This Chapter

17.1 Keep Score

17.2 Add a Lives Indicator

17.3 Display Credits

17.4 Tweet Player Scores

17.5 Warn Players When the Game Runs Slowly

17.6 Implement a Winning Animation

17.7 Conclusion

17.8 Exercises

Great games are not merely games, they are experiences. All aspects of a game, including sound, music, user interface, and gameplay, combine to create that experience, so it’s important to apply as much polish as you can to each aspect to create the best experience.

In this chapter we explore the implementation of Snail Bait’s user interface, starting with the simple task of tracking and displaying the game’s score and ending with something a little more complicated: displaying a winning ...

Get Core HTML5 2D Game Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.