Chapter 1. Quiz

This type of game has simple rules. There is a right answer. You either know or you guess. From trivia nights at restaurants to the SAT, it would be an understatement to call this genre of game “pervasive” in today’s world. TV game shows often find their way into an interactive format. Even when there are more elements to a game than simple questions and answers, every piece of software operates on some kind of underlying logic. When the king asks if you want to fight the dragon, and you have to say “yes,” that’s a fairly small, easy quiz. It would be a stretch to say that falling in a hole in a platformer, or losing all of your hit points in an RPG, is the same experience as missing a question on a quiz, but programming the rules ...

Get The Web Game Developer’s Cookbook: Using JavaScript and HTML5 to Develop Games now with O’Reilly online learning.

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