How wesweslington/ftw_linterminal works
FTW_LinTerminal is a Raspberry Pi/Linux terminal game. Its principal workflow starts the game loop, creates the player and first level, then repeatedly updates, checks input, and—at a fixed interval—runs physics and renders entities. The implementation is a single C++ file; the graph separates its visible runtime responsibilities. The excerpts establish the loop and some entity behavior, but omit key method bodies, so uncertain input-to-player and rendering-to-device links are not asserted.
Main entry points: main.cpp Game loop
Components 15
Gameplay
- Player
main.cpp - Level spawning
main.cpp - Entity system
main.cpp - Enemies
main.cpp - Weapons
main.cpp - Projectiles
main.cpp - Token
main.cpp
Linux devices
- Keyboard input
main.cpp - Framebuffer setup
main.cpp
Other components
- Linux input device
- Linux framebuffer
- Player
Connections 11
- Player → Keyboard input: provides input
- Keyboard input → Linux input device: opens device
main.cpp - Game loop → Framebuffer setup: initializes
main.cpp - Framebuffer setup → Linux framebuffer: grabs device
main.cpp - Game loop → Player: spawns
main.cpp - Game loop → Level spawning: spawns level
main.cpp - Game loop → Physics: runs physics
main.cpp - Game loop → Renderer: renders
main.cpp - Renderer → Entity system: renders entities
main.cpp - Physics → Entity system: starts physics
main.cpp - Weapons → Projectiles: attacks with
main.cpp