HOUR 22:Creating a JavaScript Game

What You’ll Learn in This Hour:

• How to design a JavaScript Game

• Creating game graphics

• Laying out the game board in HTML

• Using CSS to style the board

• Creating gameplay scripts

• Finalizing and testing the game

In this hour, you’ll look at another complex application of JavaScript: a Poker Solitaire game that uses the W3C DOM, graphics, and some JavaScript logic to interact with the user quickly and responsively.

About the Game

Although it’s possible to create just about any game with JavaScript, a card game is a simple choice because the graphics are easy to create and the gameplay is relatively simple. In this hour, you’ll create a Poker Solitaire game using HTML, ...

Get Sams Teach Yourself JavaScript in 24 Hours now with O’Reilly online learning.

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