How motzky/ugame works
µgame is a C++ game application with a Lua-driven level system, real-time input, rendering, and physics. Its user-facing flow begins by launching the game, then proceeds through game state and routines toward level interaction and rendered output. The tree also shows resource loading, scripting, messaging, and platform-specific windowing. The README documents supplying a resource pack; sampled-source evidence is limited, so uncertain routine orchestration is shown as unverified rather than asserted.
Main entry points: entity.cpp Entities · routines Game Routines · lua_level.cpp Lua Level · renderer.cpp Renderer
Components 19
Game Runtime
- Player
include/game/player.h - Game
src/game/game.cpp - Game Routines
src/game/routines - Lua Level
src/game/levels/lua_level.cpp
Input and Graphics
- Platform Window
src/glfw/window.cpp - Input Events
include/events - Renderer
src/graphics/renderer.cpp - Graphics Assets
include/graphics
World and Physics
- Entities
src/primitives/entity.cpp - Physics System
src/physics/physics_system.cpp - Collision Shapes
include/physics/shape.h
Runtime Services
- Resource Loading
src/resources/resource_loader.cpp - Resource Format
src/tlv/tlv_reader.cpp - Lua Scripting
src/scripting/lua_script.cpp - Message Bus
src/messaging/message_bus.cpp - Scheduler
src/scheduler/scheduler.cpp - Math Types
include/math/vector3.h
Other components
- Game Entry
src/main.cpp - Player
Connections 19
- Player → Game Entry: launches
- Game Entry → Game: starts
src/main.cpp - Platform Window → Input Events: emits events
src/glfw/window.cpp - Renderer → Entities: renders
src/graphics/renderer.cpp - Entities → Physics System: uses physics
- Physics System → Collision Shapes: uses shapes
- Lua Level → Lua Scripting: uses scripts
src/game/levels/lua_level.cpp - Lua Level → Resource Loading: loads resources
src/game/levels/lua_level.cpp - Renderer → Resource Format: reads data
src/graphics/renderer.cpp - Scheduler → Message Bus: uses bus
src/scheduler/scheduler.cpp - Message Bus → Input Events: dispatches events
src/messaging/message_bus.cpp - Entities → Graphics Assets: references assets
src/primitives/entity.cpp - Game Routines → Input Events: handles input
- Game Routines → Physics System: updates physics
- Game Routines → Renderer: draws frames
- Game → Game Routines: runs routines
- Lua Level → Entities: builds world
- Player → Entities: controls
- Entities → Math Types: uses vectors
src/primitives/entity.cpp