How ttqwntian/dvnge works
Dvnge is a browser-based visual-novel engine. Players enter through the game page, which runs configured chapter content through the engine; the engine presents scenes and handles dialogue, choices, state, and media. Save management persists and restores play state, while a separate module imports and exports saved data. The engine excerpt is partial, so links between individual runtime features are shown only where documented or supported by the available code.
Main entry points: TTQ视觉小说引擎.js Visual novel engine · 导出入存档功能.js Save import/export · game.html Game page · 游戏配置.js Game configuration
Components 16
Story runtime
- Game page
src/game.html - Visual novel engine
src/js/TTQ视觉小说引擎.js - Dialogue and choices
src/js/TTQ视觉小说引擎.js - Scene presentation
src/js/TTQ视觉小说引擎.js - Variables and branching
src/js/TTQ视觉小说引擎.js
Game content
- Chapter scripts
src/chapter/序章.dvns - Translated chapters
src/chapter/tl - Game configuration
src/js/游戏配置.js
State and saves
- Save and load
src/js/TTQ视觉小说引擎.js - Browser storage
- Save import/export
src/js/导出入存档功能.js - CG collection
src/js/TTQ视觉小说引擎.js
Language and extensions
- Language settings
src/js/游戏配置.js - Custom functions
src/js/自定义功能.js
Other components
- Player
- Save file
Connections 18
- Player → Game page: opens
- Game page → Visual novel engine: starts
- Visual novel engine → Game configuration: waits for
- Visual novel engine → Chapter scripts: loads chapters
- Visual novel engine → Translated chapters: loads translations
- Visual novel engine → Dialogue and choices: renders dialogue
- Visual novel engine → Scene presentation: updates scenes
- Visual novel engine → Variables and branching: evaluates choices
- Visual novel engine → Save and load: manages saves
- Visual novel engine → Browser storage: reads and writes
- Save and load → Browser storage: saves and loads
- Save import/export → Browser storage: reads and writes
- Save file → Save import/export: imports from
- Save import/export → Save file: exports to
- Game configuration → Language settings: defines languages
- Visual novel engine → Custom functions: runs custom code
- Visual novel engine → CG collection: tracks unlocks
- CG collection → Browser storage: persists collection