How oosayeroo/modit works
Modit is a code-first LuaJIT 2D/3D game engine, launched as a Lua script and providing rendering, physics, modding, networking, audio, and input capabilities. The README documents the product boundaries and technology choices, but no source excerpts were provided; therefore, internal call ownership and most runtime connections cannot be verified. Dashed, uncited edges indicate plausible runtime relationships, not inspected call paths.
Main entry points: main.lua Engine launch · runner.lua Engine runner · render 2D/3D rendering · camera Camera systems
Components 15
Runtime Core
- Engine launch
src/main.lua - Engine runner
src/engine/runner.lua
Graphics and Input
- 2D/3D rendering
src/engine/modules/render - Camera systems
src/engine/modules/camera - Input mapping
src/engine/modules/input - Audio
src/engine/modules/audio
World Systems
- Physics and queries
src/engine/modules/physics - Voxel terrain
src/engine/modules/render/vox.lua
Mods and Networking
- Sandboxed mods
src/engine/core/security/mod_sandbox.lua - Mod loading
src/engine/modules/modding/manager.lua - Client/server
src/engine/modules/server - Network transport
src/engine/core/net/server_host.lua
Other components
- Game creator
- LuaJIT
- Raylib
Connections 10
- Game creator → Engine launch: launches
README.md - Engine launch → Engine runner: starts
- Engine runner → LuaJIT: executes on
- 2D/3D rendering → Raylib: renders with
README.md - Camera systems → 2D/3D rendering: supports
- Input mapping → Raylib: maps input
- Audio → Raylib: uses
- Physics and queries → Voxel terrain: supports
- Mod loading → Sandboxed mods: loads in
- Client/server → Network transport: uses