Book description
Develop a 2D game engine that will give you the experience and core understanding of foundational concepts for building complex and fun 2D games that can be played across the Internet via popular web browsers. This book is organized so that the chapters follow logical steps of building a game engine and integrates concepts accordingly.
Build Your Own 2D Game Engine and Create Great Web Games isolates and presents relevant concepts from software engineering, computer graphics, mathematics, physics, game development and game design in the context of building a 2D game engine from scratch. In this edition, all the code is based on updated versions of JavaScript with HTML5 and WebGL2: you will analyze the source code needed to create a game engine that is suitable for implementing typical casual 2D videogames. You will also learn about physics and particle system. The discussion of physics component includes rotations and popular physical materials such as wood, mud, andice. The discussion of particle component has popular presets such as fire, smoke, and dust.
By the end of the book, you will understand the core concepts and implementation details of a typical 2D game engine, learn insights into how these concepts affect game design and game play, and have access to a versatile 2D game engine that they can expand upon or utilize to build their own 2D games from scratch with HTML5, JavaScript, and WebGL2.
What You Will Learn
- Understand essential concepts for building 2D games
- Grasp the basic architecture of 2D game engines
- Understand illumination models in 2D games
- Learn basic physics used in 2D games
- Find out how these core concepts affect game design and game play
- Learn to design and develop 2D interactive games
Who Is This Book For
Game enthusiasts, hobbyists, and anyone with little to no experience who are interested in building interactive games but are unsure of how to begin. This can also serve as a textbook for a junior- or senior-level "Introduction to Game Engine" course in a Computer Science department.
Table of contents
- Cover
- Front Matter
- 1. Introducing 2D Game Engine Development with JavaScript
- 2. Working with HTML5 and WebGL
- 3. Drawing Objects in the World
- 4. Implementing Common Components of Video Games
- 5. Working with Textures, Sprites, and Fonts
- 6. Defining Behaviors and Detecting Collisions
- 7. Manipulating the Camera
- 8. Implementing Illumination and Shadow
- 9. Simulating the World with RigidShapes
- 10. Creating Effects with Particle Systems
- 11. Supporting Camera Background
- 12. Building a Sample Game: From Design to Completion
- Back Matter
Product information
- Title: Build Your Own 2D Game Engine and Create Great Web Games: Using HTML5, JavaScript, and WebGL2
- Author(s):
- Release date: December 2021
- Publisher(s): Apress
- ISBN: 9781484273777
You might also like
video
HTML5 Canvas - Create 5 Games, 5 Projects, and Learn JavaScript
This course goes over the features of HTML5 in a way that will help you quickly …
book
Introducing JavaScript Game Development : Build a 2D Game from the Ground Up
Learn to build a fully-functional 2D game inspired by the 1979 Atari classic, Asteroids, using just …
book
Real-Time 3D Graphics with WebGL 2 - Second Edition
A comprehensive guide with 80+ examples on 3D programming in WebGL 2, covering computer graphics topics …
book
Introduction to Video Game Engine Development: Learn to Design, Implement, and Use a Cross-Platform 2D Game Engine
Start your video game development journey by learning how to build a 2D game engine from …