DF/Tutorial/4

From Jonathan Gardner's Tech Wiki
Jump to: navigation, search

4. Moving the Camera

GOAL

Allow the user to move the camera to view different things.

Introduction

Integrating the camera into the system is a very, very important task. The user is going to spend the majority of their time looking around, and so these controls are most important.

The basic motions are:

  • panning left, right, up and down.
  • zooming in and out.
  • Moving between map levels. (We can't do this yet since we don't have a map and don't have layers.)

Normally, we'd add rotations and such to the possible camera motions, but we're not building that sort of game.

Next: 5. Drawing A Map