How modit-engine/modit works
Modit is a code-first LuaJIT 2D/3D game engine. The documented workflow is a developer launching Lua game code through the engine runtime, which provides rendering, physics, audio/input, and optional modding and client/server capabilities. The tree also shows a substantial editor. No source excerpts were provided, so implementation-level calls and subsystem wiring cannot be verified; dashed edges indicate relationships that are plausible from the documented product workflow but not established by the available evidence.
Main entry points: init.lua Engine core · main.lua Engine launch · runner.lua Lua runner · render Rendering API
Components 17
Engine Runtime
- Engine launch
src/main.lua - Lua runner
src/engine/runner.lua - Engine core
src/engine/init.lua - Runtime services
src/engine/modules/runtime - Windows platform
src/engine/backend/platform/windows
Graphics and Interaction
- Rendering API
src/engine/modules/render - Raylib backend
src/engine/backend/raylib - Input and audio
src/engine/modules/input
Physics and Extensions
- Physics API
src/engine/modules/physics - Box3D backend
src/engine/backend/box3d - Sandboxed modding
src/engine/core/security/mod_sandbox.lua - Mod manager
src/engine/modules/modding/manager.lua - Client/server
src/engine/modules/server - Networking core
src/engine/core/net
Authoring
- Visual editor
src/editor - Editor interface
src/editor/ui
Other components
- Game developer
Connections 16
- Game developer → Engine launch: launches
README.md - Engine launch → Lua runner: starts
- Lua runner → Engine core: runs
- Engine core → Runtime services: provides
- Engine core → Rendering API: provides
README.md - Rendering API → Raylib backend: uses
README.md - Engine core → Input and audio: provides
README.md - Engine core → Physics API: provides
README.md - Physics API → Box3D backend: uses
README.md - Engine core → Sandboxed modding: supports
README.md - Engine core → Mod manager: supports
README.md - Engine core → Client/server: supports
README.md - Client/server → Networking core: uses
- Engine core → Windows platform: targets
README.md - Game developer → Visual editor: authors with
- Visual editor → Editor interface: presents