How namgyaaal/avoxelgame works
A Voxel Game is an experimental APL voxel game with a small C/SDL extension. Its documented user flow is launching the APL entry point, starting the game, then moving and interacting in a voxel world. The tree indicates distinct player, world, menu, UI, text, and shader responsibilities; their internal call relationships cannot be verified from the supplied excerpts. README documents shader sources and bundled platform variants. The C extension excerpts show SDL event and GPU helpers; other APL and C implementation details were not sampled.
Main entry points: main.apls APL Entry · Run.aplf Game Runner · player.apln Player Logic · Create_shaders.aplf Shader Setup
Components 19
Application
- APL Entry
main.apls - Game Runner
avg/Run.aplf
Game State
- Game State
avg/state.apln - Player Logic
avg/player.apln - Voxel World
avg/world.apln - Block Data
avg/block_data.apln - World State
avg/world_state.apln - Menu State
avg/menu_state.apln - World UI
avg/world_ui.apln - Text
avg/text.apln
Rendering
- Shader Setup
avg/Create_shaders.aplf - Shader Assets
shaders/glsl
SDL Extension
- SDL Bindings
avg/sdl3.apln - Event Helpers
lse/src/events.c - GPU Helpers
lse/src/gpu.c - Pipeline Helpers
lse/src/pipeline.c - Render Utilities
lse/src/utils.c
Other components
- Player
- SDL3
Connections 10
- Player → APL Entry: launches
README.md - APL Entry → Game Runner: starts
README.md - Game Runner → Game State: starts play
README.md - Player → Player Logic: controls
- Player Logic → Voxel World: interacts
- Shader Setup → Shader Assets: loads
- Event Helpers → SDL3: polls events
lse/src/events.c - GPU Helpers → SDL3: creates GPU objects
lse/src/gpu.c - Pipeline Helpers → SDL3: creates pipeline
lse/src/pipeline.c - Render Utilities → SDL3: draws GPU primitives
lse/src/utils.c