Skip to content

Camera Manager

Andrew Hernandez edited this page Jun 5, 2026 · 16 revisions

System Summary

The Camera System controls how the game camera behaves in both Editor Mode (EDIT) and Play Mode (PLAY) using a single Camera2D node.

It supports:

  • Free camera movement in editor mode (WASD + edge scrolling + panning)
  • Smooth player-follow camera in play mode
  • Zoom in/out using mouse wheel or + and - key
  • Level boundary clamping based on world size
  • State switching through a global game state system

This system replaces multiple camera controllers with a single unified state-based camera.

Connected Systems

Related Controls

Editor Mode

  • WASD or arrow keys → Move camera
  • Mouse at screen edges → Move camera
  • Mouse wheel or + and - keys → Zoom in/out
  • Middle mouse button and dragging moves

Play Mode

  • Camera follows player automatically
  • No manual input

Feature List

  • Edge scrolling camera movement
  • Zoom system with limits
  • tilemap boundary clamp
  • Automatic tilemap-centering on start

Future Work / Risks (Global)

Miscellaneous Notes

  • System is single-node for simplicity
  • State switching is handled externally by MasterManager
  • Camera assumes a rectangular tilemap level world
  • Code follows modular function separation for readability

Clone this wiki locally