Camera Operation - UQdeco2800/2022-studio-1 GitHub Wiki

Camera Operation Overview

The camera currently acts as a tool for debugging, allowing the player to pan the camera (up, down, and across the map) and zoom in and out of the map. In future versions of the game, the camera will be attached to the player such that it follows the player, keeping them in the centre of the screen. In addition to this, the player will also be able to detach the camera from the player, allowing them to view the map around them, without being able to interact with it. The camera will be re-attached to the player upon the player moving.

Keyboard Controls

Moving the camera with WASD will reposition the camera to centre on the player.

Panning the Camera

  • Pan the Camera Up
  • Pan the Camera Down
  • Pan the Camera Right
  • Pan the Camera Left

Zooming the Camera

  • z Zoom the Camera In
  • x Zoom the Camera Out
⚠️ **GitHub.com Fallback** ⚠️