HTML5 in Action by Rob Crowther Joe Lennon Ash Blue Greg Wanish

HTML5 in Action by Rob Crowther Joe Lennon Ash Blue Greg Wanish

Author:Rob Crowther, Joe Lennon, Ash Blue Greg Wanish [Unknown]
Language: eng
Format: epub, pdf
Publisher: Manning Publications


Step 6: Create the Game Over screen

Ideal Game Over screens entertain and encourage players to try again. Using the same tools from the Welcome screen, you can quickly assemble what you need to create the Game Over screen shown in figure 7.6.

Figure 7.6. Nothing makes people rage quite like getting powned by an SVG alien. Game Over screens are a great way to encourage players to develop addictive behaviors (such as playing repeatedly).

Use the following listing to replace <g id="screenGameover"></g> right after <g id="screenWelcome"></g>. It uses all the same tags and attributes used to create your Welcome screen. Therefore, its code content should be straightforward.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.