HTML5 Games: Creating Fun with HTML5, CSS3, and WebGL

Front Cover
John Wiley & Sons, Nov 30, 2011 - Computers - 456 pages
Discover new opportunities for building 2D and 3D games with HTML5

The newest iteration of HTML, HTML5 can be used with JavaScript, CSS3, and WebGL to create beautiful, unique, engaging games that can be played on the web or mobile devices like the iPad or Android phones. Gone are the days where games were only possible with plugin technologies such as Flash and this cutting-edge book shows you how to utilize the latest open web technologies to create a game from scratch using Canvas, HTML5 Audio, WebGL, and WebSockets. You'll discover how to build a framework on which you will create your HTML5 game. Then each successive chapter covers a new aspect of the game, including user input, sound, multiplayer functionality, 2D and 3D graphics, and more.

  • Aims directly at a new way to develop games for the web through the use of HTML5
  • Demonstrates how to make iOS and Android web apps
  • Explains how to capture player input; create 3D graphics; and incorporate textures, lighting, and sound
  • Guides you through the process of creating a game from scratch using Canvas, HTML5 Audio, WebGL, and WebSockets

By the end of this invaluable book, you will have created a fully functional game that can be played in any compatible browser or on any mobile device that supports HTML5.

 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

Table of Contents
Creating Backward Compatibility
Identifying Game Stages
Creating theSplash Screen
Handling UserInput on Mobile Devices
Enabling the Safari debugger
Creating the BasicGame
Summary
Summary
Building the Input Module
Summary
Making the Game React
Adding Points andTime Creating theUIelements Creating thegametimer Awarding points
Summary
Working with Audio Data Using the MozillaAudioData API A few examples
Summary

Using Workers
Using Web WorkersinGames Creating theworker module
Drawingwith Canvas Drawingshapes and paths
Drawing theHTML5 logo
Creating theGame Display
Improving theBackground
Rendering 3D Objects
Using Textures and Lighting
Local Storage and MultiplayerGames
Exiting the game
Application Cache
Copyright

Other editions - View all

Common terms and phrases

About the author (2011)

JACOB SEIDELIN (COPENHAGEN) is a freelance web developer with 10 years of experience working withbackend programming, graphics design, and front-end technology. When not working with clients he enjoys JavaScript and HTML5, web game development, and generally pushing the limit of what is possible in the browser. The results of his adventures in web development can be witnessed at his website at http://www.nihilogic.dk/.

Bibliographic information