HTML5 Game Development Advanced Guide introduces the general process and techniques of HTML5 game development. The book is divided into 12 chapters. Chapter 1 introduces many new features of HTML5 related to this book, including drawing on canvas, playing sound, etc., and also introduces the concept of sprite pages; Chapters 2 to 4 use the Box2D physics engine Developed a game very similar to Angry Birds, fully introduced the concept of physics engine and how to use physics engine in the game, this part also introduced parallax scrolling trick to achieve some kind of pseudo 3D effect ;Chapters 5 to 10 develop a simplified version of the "Red Alert" game, this part involves a lot of content, including the production of maps, the setting and drawing of buildings and units, the interaction between players and units, triggers With the writing of the plot, the path planning algorithm, etc.; Chapters 11 and 12 use Node.js and WebSocket to develop the multiplayer mode of the Red Alert game. The main problem of this part is to keep the game in the browsers of multiple players. status is the same.
HTML5 Game Development Advanced Guide Table of Contents
Chapter 1 Overview of HTML5 and JavaScript
Chapter 2 Creating a Basic Game World
Chapter 3 Physics Engine Basics
Chapter 4 Physics Engine Integration
Chapter 5 Creating an RTS Game World
Chapter 6 Joining a Unit
Chapter 7 Intelligent Movement of Units
Chapter 8 Adding More Game Elements
Chapter 9 Adding Weapons and Combat
Chapter 10 Complete the single-player campaign
Chapter 11 WebSockets and Multiplayer Mode
Chapter 12 Multiplayer Battle Game Operation
Tutorial address: HTML5 game development advanced guide Chinese pdf scan version