HTML5 Games: Creating Fun with HTML5, CSS3 and WebGL Author: Jacob Seidelin | Language: English | ISBN:
1118855388 | Format: EPUB
HTML5 Games: Creating Fun with HTML5, CSS3 and WebGL Description
HTML5 Gamesshows you how to combine HTML5, CSS3 and JavaScript to make games for the web and mobiles - games that were previously only possible with plugin technologies like Flash. Using the latest open web technologies, you are guided through the process of creating a game from scratch using Canvas, HTML5 Audio, WebGL and WebSockets.
Inside, Jacob Seidelin shows you how features available in HTML5 can be used to create games. First, you will build a framework on which you will create your HTML5 game. Then each chapter covers a new aspect of the game including user input, sound, multiplayer functionality, 2D and 3D graphics and more. By the end of the 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.
Topics include:
- Dealing with backwards compatibility
- Generating level data
- Making iOS and Android web apps
- Taking your game offline
- Using Web Workers
- Persistent Game Data
- Drawing with Canvas
- Capturing player input
- Creating 3D graphics with WebGL
- Textures and lighting
- Sound with HTML5 Audio
And more…
- Paperback: 456 pages
- Publisher: Wiley; 2 edition (March 17, 2014)
- Language: English
- ISBN-10: 1118855388
- ISBN-13: 978-1118855386
- Product Dimensions: 9.2 x 7.4 x 1.4 inches
- Shipping Weight: 2 pounds (View shipping rates and policies)
Introduction 1Who this book is for 2
What this book is about 2
Part I Getting Started with HTML5 Games 5
CHAPTER 1 Gaming on the Web 7
Tracing the History of HTML5 8
Using HTML5 for Games 8
Canvas 9
Audio 11
WebSockets 12
Web Storage 13
WebGL 14
HTML5 and Flash 14
Creating Backward Compatibility 15
Using feature detection 15
Filling the gaps with polyfills 16
Building a Game 16
Summary 17
CHAPTER 2 Taking the First Steps 19
Understanding the Game 20
Swapping jewels 20
Matching three 20
Level progression 20
Identifying Game Stages 21
Splash screen 21
Main menu 22
Playing the game 22
High score 23
Creating the Application Skeleton 24
Setting up the HTML 25
Adding a bit of style 26
Loading the scripts 27
Creating a DOM helper module 31
Creating the Splash Screen 35
Working with web fonts 36
Styling the splash screen 3
HTML5 Games: Creating Fun with HTML5, CSS3 and WebGL Preview
Link
Please Wait...