-
Notifications
You must be signed in to change notification settings - Fork 0
Camera Manager
Jack X. edited this page May 26, 2026
·
16 revisions
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)
- Smooth player-follow camera in play mode
- Zoom in/out using mouse wheel
- Grid boundary clamping to prevent losing the level view
- State switching through a global game state system
This system replaces multiple camera controllers with a single unified state-based camera.
-
MasterManager(state switching signals) -
PlayerCharacterBody2D -
TileMap/ Grid System
-
WASD→ Move camera (optional currently disabled in code) - Mouse at screen edges → Move camera
- Mouse wheel → Zoom in/out
- Camera follows player automatically
- No manual input
- Edge scrolling camera movement
- Zoom system with limits
- Grid boundary clamp
- Smooth camera interpolation (
lerp) - Automatic grid-centering on start
-
EDIT/PLAYstate switching - WASD camera movement
- Player-follow camera mode
- System is single-node for simplicity
- State switching is handled externally by
MasterManager - Camera assumes a rectangular grid world
- Code follows modular function separation for readability
Resources
Known Issues
Future Work
Globals
Managers
- Main Menu Manager
- Master Manager
- Camera Manager
- Hotkey Manager
- Import Export Manager
- Audio Manager
- Animation Manager
- PopUp Manager
UI
Managers
- Editor Manager
- Tile Manager
- Entity Manager
- Icon Manager
- Preview Manager
- Tool Manager
- Asset Manager
- Custom Cursor Manager
Tiles & Entities
- Grid Lines
- Preview Line
- Tiles & Entities
- Enemies
- Patrolling Enemy
- Flying Enemy
- Shooting Enemy
- Stationary Enemy
- Moving Platform
- Property Editing
Asset Swapping
UI
Managers
Player