Introduction

Place all your objects in a world which is rendered based on 2d camera transformation. So you can zoom & translate your world with any size (think of platformer, tilemap).

This world is a simple container so you can maintain other layers to render a HUD or menu on top of of your camera renderer world.

Camera use cases

  • Zoom to a target
  • Zoom to fit a view area
  • Follow Target
  • Constrained View
  • Change Zoom Pivot

Running example

  • Use the minimap to pan the scene
  • Use your mousewheel to zoom.
  • I don’t think this is usable on a mobile or tablet at the moment.
  • Ah and don’t forget to expand the controls in the upper right corner.