Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
HTML5 Game Development by Example(Second Edition)

You're reading from   HTML5 Game Development by Example(Second Edition) Make the most of HTML5 techniques to create exciting games from scratch

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781785287770
Length 354 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (13) Chapters Close

Preface 1. Introducing HTML5 Games FREE CHAPTER 2. Getting Started with DOM-based Game Development 3. Building a Card-matching Game in CSS3 4. Building the Untangle Game with Canvas and the Drawing API 5. Building a Canvas Game's Masterclass 6. Adding Sound Effects to Your Games 7. Saving the Game's Progress 8. Building a Multiplayer Draw-and-Guess Game with WebSockets 9. Building a Physics Car Game with Box2D and Canvas 10. Deploying HTML5 Games A. Pop Quiz Answers Index

What this book covers

Chapter 1, Introducing HTML5 Games, introduces the new features of HTML5, CSS3, and the related JavaScript API. It demonstrates what games we can make with these features and their benefits.

Chapter 2, Getting Started with DOM-based Game Development, kickstarts the game development journey by creating a traditional Ping Pong game in DOM and jQuery.

Chapter 3, Building a Card-matching Game in CSS3, walks you through the new features of CSS3 and discusses how we can create a memory card-matching game in DOM and CSS3.

Chapter 4, Building the Untangle Game with Canvas and the Drawing API, introduces a new way to draw things and interact with them in a web page with the new canvas element. This also demonstrates how to handle dragging on touch devices.

Chapter 5, Building a Canvas Game's Masterclass, extends the Untangle game to show how we can draw gradients and images in the Canvas. It also discusses sprite sheet animations and multilayer management.

Chapter 6, Adding Sound Effects to Your Games, adds sound effects and background music to the game by using the Audio element. It discusses the audio format capability among web browsers and creates a keyboard-driven music game by the end of the chapter.

Chapter 7, Saving the Game's Progress, extends the CSS3 memory-matching game to demonstrate how we can use the Local Storage API to store and resume game progress and records the best scores.

Chapter 8, Building a Multiplayer Draw-and-Guess Game with WebSockets, discusses the WebSockets API that allows browsers to establish persistent connection with the socket server. This allows multiple players to play the game together in real time. A draw-and-guess game is created at the end of the chapter.

Chapter 9, Building a Physics Car Game with Box2D and Canvas, teaches you how to integrate a famous physics engine, Box2D, into our canvas games. It discusses how to create physics bodies, apply force, connect them together, associate graphics with the physics, and finally create a platform car game.

Chapter 10, Deploying HTML5 Games, shares the different ways in which we can publish our games. It discusses wrapping the web into a native app for Apple's App Store.

Appendix, Pop Quiz Answers, gives the answers to the pop quiz questions in each of the chapters.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image