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 7

image

Manipulating the Camera

After completing this chapter, you will be able to:

  • Implement operations that are commonly employed by manipulating a camera
  • Interpolate values between old and new to create a smooth transition
  • Understand how some motions or behaviors can be described by simple mathematic formulations
  • Build games with multiple camera views
  • Transform positions from the Canvas Coordinate space to the World Coordinate (WC) space
  • Program with mouse input in a game environment with multiple cameras

Introduction

Your game engine is now capable of representing and drawing objects. With the basic abstraction mechanism introduced in ...

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