How arakuma-studio/jasperengine works
JasperEngine is a native 2D/3D game engine with a Unity-style visual editor, Lua scripting, and desktop/web export. The main workflow is: an editor user creates and edits a project and scene, previews it in the editor, then cooks and exports a playable build. Distinct branches cover asset authoring, animation, audio, and imported web UI content; CLI and MCP tools provide alternate entry points for selected tasks. The graph combines README-documented capabilities with sampled source references; many feature-specific implementation links were not sampled, so those relationships are omitted.
Main entry points: App.cpp Editor application · Engine.cpp Engine core · SceneViewController.cpp Scene and Game views · Scene.h Scene and ECS
Components 20
Editor workflow
- Editor application
editor/App.cpp - Scene and Game views
editor/sceneview/SceneViewController.cpp - Project model
editor/Project.h - Editor search
editor/search/SearchEngine.cpp
Content authoring
- Asset management
editor/asset - Animation authoring
editor/animation/AnimationClipController.cpp - Audio authoring
editor/audio - HTML UI import
editor/htmlui - Texture synthesis
editor/noise/NoisePreviewService.cpp
Engine runtime
- Engine core
engine/core/Engine.cpp - Scene and ECS
engine/core/Scene.h - Rendering system
engine/core/subsystem/RenderSystem.h - GPU pipeline cache
engine/renders/sokol/SokolPipelineCache.cpp - HTML UI fonts
engine/core/htmlui/RmlFontEngine.cpp
Build and tools
- Scene cooking
editor/cook/SceneCooker.cpp - Game export
editor/Exporter.cpp - Command-line tools
editor/cli/CommandLine.cpp - MCP tools
editor/mcp/EngineApiContext.cpp - Web platform
engine/platform/emscripten/JasperEngineWeb.cpp
Other components
- Editor user
Connections 21
- Editor user → Editor application: authors in
- Editor application → Project model: manages
editor/App.cpp - Editor application → Scene and Game views: opens views
editor/App.cpp - Scene and Game views → Scene and ECS: edits and previews
- Editor application → Editor search: offers search
- Editor application → Asset management: manages assets
- Editor application → Animation authoring: edits animation
- Editor application → Audio authoring: edits audio
- Editor application → HTML UI import: imports UI content
- Editor application → Texture synthesis: synthesizes textures
- Scene and Game views → Engine core: runs preview
- Engine core → Scene and ECS: updates scenes
engine/core/Engine.cpp - Scene and ECS → Rendering system: schedules systems
engine/core/Scene.h - Rendering system → GPU pipeline cache: uses pipelines
- Engine core → HTML UI fonts: supports HTML UI
- Editor user → Command-line tools: runs commands
- Editor user → MCP tools: uses agent tools
- Editor application → Scene cooking: cooks project
- Scene cooking → Game export: prepares build
- Game export → Web platform: targets web
- Web platform → Engine core: hosts runtime
engine/platform/emscripten/JasperEngineWeb.cpp