tron-room-demo: static camera positions

This commit is contained in:
Dejvino
2026-11-17 08:17:19 +01:00
parent 2169f3a8ab
commit 28fe597cd7
4 changed files with 200 additions and 6 deletions
+21
View File
@@ -0,0 +1,21 @@
# STATUS: Camera positioning by number keys
## Changes made to RoomViewCore.h
1. Added `M_PI` constant definition for portability (line 32-33)
2. Added number key (0-9) handling in `rvInput()` function (lines 444-472):
- **0**: Reset camera to default position (south of map)
- **1-4**: Move camera to four quadrants at ~25 units distance
- **5-9**: Adjust camera distance 15→42 units with varying angles
- All number keys set `manualCamera = true` to disable automatic orbital drift
## Controls
- Number keys 0-9: Camera positioning presets
- WASD: Move camera (existing)
- Q/E: Orbit around lookAt (existing)
- R/F: Adjust altitude (existing)
- A/D (while orbiting): Change orbit speed (existing)
- SPACE: Pause/ unpause (existing)
## Build
`make netdeck` — builds both targets (ESP32-S3 firmware + SDL2 emulator). Both must stay green.