How kaijuengine/kaiju works
Kaiju is a Go game engine with an in-engine editor. The main user workflow is to create or open a project, edit its content and scene, configure rendering, then run the game through the engine. The README documents the engine’s 2D/3D rendering, physics, audio, animation, UI, and platform support, as well as editor plugins and optional HTML/CSS UI markup. The tree and excerpts identify the major implementation areas; several connections between those areas are shown dashed because their runtime call sites were not sampled.
Main entry points: host.go Engine host · editor.go Editor core · editor_workspace Editor workspaces · shader_pipeline_vulkan.go Vulkan rendering
Components 19
Editor
- Editor app
src/main.ed.go - Editor core
src/editor/editor.go - Stage editing
src/editor/editor_stage_manager/editor_stage_manager.go - Editor workspaces
src/editor/editor_workspace - Plugin manager
src/editor/editor_plugin/editor_plugin_manager.go
Project authoring
- Project management
src/editor/project/project.go - Content database
src/editor/project/project_database/content_database/content_database.go - Project filesystem
src/editor/project/project_file_system/project_file_system.go - Shader pipeline data
src/rendering/shader_pipeline.go
Engine runtime
- Engine host
src/engine/host.go - Vulkan rendering
src/rendering/shader_pipeline_vulkan.go - Physics
src/engine/physics_system.go - UI system
src/engine/ui/ui_manager.go - Terrain
src/engine/terrain/terrain.go - Audio
src/engine - Animation
src/engine_entity_data/engine_entity_data_skin_animation/skin_animation_entity_data.go
Scripting and platform
- Lua integration
src/plugins/lua - Platform input
src/platform/hid/controller.go
Other components
- Game developer
Connections 21
- Game developer → Editor app: opens editor
- Editor app → Editor core: launches
- Editor core → Project management: edits project
- Editor core → Stage editing: provides editing
- Editor core → Editor workspaces: hosts workspaces
- Editor core → Plugin manager: supports plugins
- Editor workspaces → Content database: browses content
- Project management → Project filesystem: uses filesystem
- Content database → Project filesystem: imports content
- Editor workspaces → Shader pipeline data: edits pipeline
- Game developer → Engine host: runs game
- Engine host → Vulkan rendering: renders with Vulkan
- Engine host → Physics: simulates physics
- Engine host → UI system: updates UI
- Engine host → Terrain: supports terrain
- Engine host → Audio: plays audio
- Engine host → Animation: supports animation
- Engine host → Lua integration: supports modding
- Engine host → Platform input: reads input
- Shader pipeline data → Vulkan rendering: configures pipeline
- UI system → Vulkan rendering: optional HTML/CSS