How mhgolkar/arrow works
Arrow is a visual game-narrative design editor whose projects define interconnected scenes, macros, characters, variables, and built-in logic nodes. The principal workflow is authoring a project in the editor, then playing it through the HTML-JS runtime or exporting a playable HTML build; the README also documents CSV localization export and VCS-friendly files. The tree and excerpts establish the editor/runtime areas and several runtime behaviors, but do not show most editor wiring or runtime registration, so those links are left unverified.
Main entry points: arrow.js Runtime interpreter · editor.gd Editor interface · project_management.gd Project management · condition.js Conditions
Components 21
Visual editor
- Editor interface
scripts/editor/editor.gd - Graph canvas
scripts/editor/grid_graph_edit.gd - Project inspector
scripts/editor/panels/inspector.gd - Project management
scripts/core/project_management.gd - Node type registry
scripts/core/node_types_handler.gd
Narrative nodes
- Flow and dialogue
nodes/dialog/node.gd - Conditions
runtimes/html-js/modules/condition.js - Variable updates
runtimes/html-js/modules/variable_update.js - Player input
runtimes/html-js/modules/user_input.js - Random generation
runtimes/html-js/modules/generator.js - Character tags
runtimes/html-js/modules/tag_edit.js - Tag branching
runtimes/html-js/modules/tag_match.js - Tag checks
runtimes/html-js/modules/tag_pass.js - Macro calls
runtimes/html-js/modules/macro_use.js
Playable runtime
- Runtime interpreter
runtimes/html-js/arrow.js - Content rendering
runtimes/html-js/modules/content.js - BBCode rendering
runtimes/html-js/modules/shared-bbcode-parser.js
Project capabilities
- Project data
runtimes/html-js/project.js - Playable HTML runtime
runtimes/html-js/index.html - Localization resources
assets/translations/en.po
Other components
- Narrative designer
Connections 21
- Narrative designer → Editor interface: authors in
readme.md - Editor interface → Graph canvas: edits graph
- Editor interface → Project inspector: configures
- Editor interface → Project management: manages projects
- Editor interface → Node type registry: offers node types
- Runtime interpreter → Conditions: evaluates
- Runtime interpreter → Variable updates: updates state
- Runtime interpreter → Player input: collects input
- Runtime interpreter → Random generation: generates values
- Runtime interpreter → Character tags: edits tags
- Runtime interpreter → Tag branching: branches on tags
- Runtime interpreter → Tag checks: checks tags
- Runtime interpreter → Macro calls: plays macros
- Runtime interpreter → Flow and dialogue: plays dialogue
- Conditions → Runtime interpreter: routes playback
runtimes/html-js/modules/condition.js - Player input → Runtime interpreter: continues playback
runtimes/html-js/modules/user_input.js - Runtime interpreter → Project data: reads project
- Runtime interpreter → Content rendering: renders content
- Content rendering → BBCode rendering: parses BBCode
- Project management → Playable HTML runtime: exports playable
readme.md - Editor interface → Localization resources: exports CSV
readme.md