The official starter framework for Moyu Engine. This repository already includes a title screen, stage UI, save/load screens, settings, a sample scenario, and sample assets. Follow this README once, get the sample running, then move to the docs site for the rest.
中文 · Quick start · Documentation · Screenshots and preview
- A visual novel project you can run right away
- Built with React + TypeScript, and runs on Moyu Engine
- Sample script files, default UI, and built-in command implementations you can reuse or replace
If you already cloned this repository, skip to the next step.
# Git LFS support is required
git clone https://github.com/DeepSpaceMill/framework.git my-vn-project
cd my-vn-projectYou can also download the repository as a ZIP file if you do not want to use Git.
- Node.js
22.20or newer is required, you can download it from the Node.js website and install it. - This project uses Yarn 4. On a fresh machine, enable Corepack first:
corepack enable
yarnyarn engine:updateThis downloads the engine files into the project. The first run needs an internet connection and may take a bit longer.
Open one terminal and run:
yarn devOpen a second terminal. You can preview with the native runtime or in the browser.
Native preview:
yarn engine:nativeBrowser preview:
yarn engine:webBoth modes support hot reload. After you change code or script files, the preview refreshes without restarting the app.
Open src/pages/title.tsx, change 'Start Game' to 'Start Adventure', save the file, and look back at the preview. The button text on the title screen should change right away.
If you only want to confirm the workflow, this is the quickest check. Once the button text changes, the dev environment is working.
| File | What it is for |
|---|---|
assets/scenario/start.sixu |
Scenario entry |
src/pages/title.tsx |
Title screen and main menu |
src/pages/stage.tsx |
Stage composition |
src/commands/commands.ts |
Built-in command schema |
| Command | Description |
|---|---|
yarn dev |
Start the Rspack dev server |
yarn engine:native |
Preview with the native engine |
yarn engine:web |
Preview in a browser |
yarn build |
Build the project |
yarn typecheck |
Run TypeScript type checking |
yarn generate:schema |
Regenerate commands.schema.json |
yarn engine:pack |
Package the project |
This README is meant to get you to a running project fast. After that, the docs site is the better place to keep going:
MIT. See LICENSE for details.
- Source Han Sans fonts under
assets/fonts/follow the SIL Open Font License - Assets under
assets/non-free/are for demonstration only. Replace them with assets you are allowed to ship before publishing your own project