Skip to main content
  • Book
  • © 2015

Build your own 2D Game Engine and Create Great Web Games

Using HTML5, JavaScript, and WebGL

Apress

Authors:

  • Game Design Elements and Development Process: learn the elements and vocabulary of game design and understand the process of designing a game from scratch.

  • Game Development Tool (HTML5, Javascript, and WebGL): work with the HTML5, Javascript, and WebGL to experience building 2D interactive videogames.

  • Logic and Behavior: learn and implement simple in-game pseudo autonomous behaviors.

  • Math and Physics Foundation: learn, review, and implement the foundational mathematics and physics required by most games.

  • Graphics and Effects: learn and implement graphics effects; and audio and special effects.

  • Effective Game Design: integrate game experience design concepts smartly with technical design concepts to ensure the technical and experience design are working in harmony enhance player experience

Buy it now

Buying options

eBook USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (11 chapters)

  1. Front Matter

    Pages i-xxiii
  2. Introducing 2D Game Engine Development with JavaScript

    • Kelvin Sung, Jebediah Pavleas, Fernando Arnez, Jason Pace
    Pages 1-13
  3. Working with HTML5 and WebGL

    • Kelvin Sung, Jebediah Pavleas, Fernando Arnez, Jason Pace
    Pages 15-45
  4. Drawing Objects in the World

    • Kelvin Sung, Jebediah Pavleas, Fernando Arnez, Jason Pace
    Pages 47-76
  5. Implementing Common Components of Video Games

    • Kelvin Sung, Jebediah Pavleas, Fernando Arnez, Jason Pace
    Pages 77-126
  6. Working with Textures, Sprites, and Fonts

    • Kelvin Sung, Jebediah Pavleas, Fernando Arnez, Jason Pace
    Pages 127-185
  7. Defining Behaviors and Detecting Collisions

    • Kelvin Sung, Jebediah Pavleas, Fernando Arnez, Jason Pace
    Pages 187-232
  8. Manipulating the Camera

    • Kelvin Sung, Jebediah Pavleas, Fernando Arnez, Jason Pace
    Pages 233-272
  9. Implementing Illumination and Shadow

    • Kelvin Sung, Jebediah Pavleas, Fernando Arnez, Jason Pace
    Pages 273-363
  10. Integrating Physics and Particles

    • Kelvin Sung, Jebediah Pavleas, Fernando Arnez, Jason Pace
    Pages 365-418
  11. Supporting Camera Background

    • Kelvin Sung, Jebediah Pavleas, Fernando Arnez, Jason Pace
    Pages 419-440
  12. Building a Sample Game: From Design to Completion

    • Kelvin Sung, Jebediah Pavleas, Fernando Arnez, Jason Pace
    Pages 441-455
  13. Back Matter

    Pages 457-468

About this book

Build Your Own 2D Game Engine and Create Great Web Games teaches you how to develop your own web-based game engine step-by-step, allowing you to create a wide variety of online videogames that can be played in common web browsers. Chapters include examples and projects that gradually increase in complexity while introducing a ground-up design framework, providing you with the foundational concepts needed to build fun and engaging 2D games. By the end of this book you will have created a complete prototype level for a side scrolling action platform game and will be prepared to begin designing additional levels and games of your own.

This book isolates and presents relevant knowledge from software engineering, computer graphics, mathematics, physics, game development, game mechanics, and level design in the context of building a 2D game engine from scratch. The book then derives and analyzes the source code needed to implement thes

e concepts based on HTML5, JavaScript, and WebGL.

After completing the projects you will understand the core-concepts and implementation details of a typical 2D game engine and you will be familiar with a design and prototyping methodology you can use to create game levels and mechanics that are fun and engaging for players. You will gain insights into the many ways software design and creative design must work together to deliver the best game experiences, and you will have access to a versatile 2D game engine that you can expand upon or utilize directly to build your own 2D games that can be played online from anywhere.

• Assists the reader in understanding the core-concepts behind a 2D game engine

• Guides the reader in building a functional game engine based on these concepts

• Lead

s the reader in exploring the interplay between technical design and game experience design

• Teaches the reader how to build their own 2D games that can be played across internet via popular browsers

About the authors

Jebediah Pavleas is a graduate student in the Computer Science and Software Engineering program at the University of Washington Bothell (UWB). He received a Bachelor of Science in 2012 and was the recipient of the Chancellor’s Medal for his class. During his time as an undergraduate he took a great interest in both computer graphics and games. His projects included an interactive math application that utilizes Microsoft’s Kinect sensor to teach algebra, a 2D role-playing game designed to teach students introductory programming concepts, and a website where students can compete in various mini-games to control checkpoints around campus. Relating to these projects, he coauthored publications in IEEE Computers and The Journal of Computing Sciences in Colleges (CCSC). When not working towards his graduate degree, he enjoys designing, building, and playing games of all kinds as well as adapting technology for improved accessibility. A university student in computer science, he is interested in working as a game programmer, focusing on accessibility.

Bibliographic Information

Buy it now

Buying options

eBook USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access