O'Reilly logo

Build Your Own 2D Game Engine and Create Great Web Games: Using HTML5, JavaScript, and WebGL by Jason Pace, Fernando Arnez, Jebediah Pavleas, Kelvin Sung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 10

image

Supporting Camera Background

After completing this chapter, you will be able to:

  • Implement background tiling with any image in any given camera WC bounds
  • Understand parallax and simulate motion parallax with parallax scrolling
  • Appreciate the need for layering objects in 2D games and support layered drawing

Introduction

By this point your game engine is capable of illuminating 2D images to generate highlights and shadows and of simulating basic physical behaviors. To complete the engine development, this chapter focuses on the general support for creating the game world environment with background tiling and parallax and relieving ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required