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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.