Skip to content

Commit

Permalink
feat: start animation and dialog time
Browse files Browse the repository at this point in the history
  • Loading branch information
BIYUEHU committed Sep 4, 2024
1 parent f28c2a7 commit 350902f
Show file tree
Hide file tree
Showing 191 changed files with 699 additions and 2,769 deletions.
11 changes: 11 additions & 0 deletions docs/build.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { cd, exec, mv } from 'shelljs'
import { resolve } from 'node:path'

const runningDir = process.cwd()

cd(resolve(runningDir, '../packages/demo'))
exec('npm run build')

cd('dist')
mv('index.html', 'demo.html')
mv('./*', resolve(runningDir, './.vitepress/dist/'))
7 changes: 5 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@
"license": "MIT",
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
"build": "npm run build:vp && npx tsx build.cts",
"build:vp": "vitepress build",
"preview": "vitepress preview"
},
"devDependencies": {
"@types/shelljs": "^0.8.15",
"shelljs": "^0.8.5",
"vitepress": "latest",
"vue": "^3.4.18"
}
}
}
1,249 changes: 0 additions & 1,249 deletions docs/src/public/assets/index-BMcJ6zOx.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/src/public/assets/index-dUDQZV40.css

This file was deleted.

34 changes: 0 additions & 34 deletions docs/src/public/demo.html

This file was deleted.

Binary file removed docs/src/public/gui/dialog/background.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/auto.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/autoHover.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/config.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/configHover.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/load.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/loadHover.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/log.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/logHover.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/quickLoad.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/quickLoadHover.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/quickSave.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/quickSaveHover.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/save.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/saveHover.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/skip.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/buttons/skipHover.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/dialog.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/dialog3.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/input.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/option.png
Binary file not shown.
Binary file removed docs/src/public/gui/dialog/optionHover.png
Binary file not shown.
Binary file removed docs/src/public/gui/home/background.png
Binary file not shown.
Binary file removed docs/src/public/gui/home/foreground.png
Binary file not shown.
Binary file removed docs/src/public/images/background/inside.png
Binary file not shown.
Binary file removed docs/src/public/images/background/outside.png
Diff not rendered.
Binary file removed docs/src/public/images/background/outside_2.png
Diff not rendered.
Binary file removed docs/src/public/images/background/seaside_beach.png
Diff not rendered.
Diff not rendered.
Binary file removed docs/src/public/images/background/sky_night.png
Diff not rendered.
Binary file removed docs/src/public/images/background/station.png
Diff not rendered.
Binary file removed docs/src/public/images/background/station_night.png
Diff not rendered.
Binary file removed docs/src/public/images/background/sunset.png
Diff not rendered.
Diff not rendered.
Binary file removed docs/src/public/images/figure/shiori.png
Diff not rendered.
Binary file removed docs/src/public/images/figure/shiori_close.png
Diff not rendered.
Binary file removed docs/src/public/images/figure/shiori_close_smile.png
Diff not rendered.
Binary file removed docs/src/public/images/figure/shiori_open.png
Diff not rendered.
Binary file removed docs/src/public/images/figure/shiori_open_low.png
Diff not rendered.
Binary file removed docs/src/public/images/figure/shiori_shy.png
Diff not rendered.
Binary file removed docs/src/public/images/figure/shiori_smile.png
Diff not rendered.
Binary file removed docs/src/public/images/figure/shiori_squint.png
Diff not rendered.
1,208 changes: 0 additions & 1,208 deletions docs/src/public/misakura.svg
Diff not rendered.
178 changes: 0 additions & 178 deletions docs/src/public/scripts/main.mrs

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@types/node": "^22.5.3",
"conventional-changelog-cli": "^5.0.0",
"nodemon": "^3.1.0",
"tsup": "^8.2.4"
}
}
}
Binary file added packages/demo/public/audio/music/1.mp3
Binary file not shown.
Binary file added packages/demo/public/audio/music/2.mp3
Binary file not shown.
Binary file added packages/demo/public/audio/voice/1.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/10.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/11.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/12.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/13.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/14.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/15.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/16.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/17.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/18.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/19.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/2.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/20.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/21.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/22.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/23.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/24.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/25.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/26.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/27.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/28.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/29.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/3.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/30.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/31.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/32.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/33.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/34.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/35.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/36.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/38.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/39.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/4.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/40.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/41.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/42.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/43.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/44.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/45.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/46.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/47.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/48.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/49.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/5.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/50.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/51.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/52.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/54.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/55.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/56.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/57.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/58.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/59.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/6.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/60.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/61.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/62.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/63.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/64.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/65.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/66.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/67.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/68.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/69.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/7.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/70.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/71.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/72.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/73.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/74.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/75.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/76.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/77.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/78.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/79.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/8.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/80.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/81.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/82.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/83.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/84.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/85.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/86.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/87.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/88.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/89.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/9.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/90.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/91.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/92.wav
Binary file not shown.
Binary file added packages/demo/public/audio/voice/bingo.wav
Binary file not shown.
Binary file added packages/demo/public/images/background/2.jpg
Binary file added packages/demo/public/images/background/2.png
Binary file added packages/demo/public/images/background/bg.png
Binary file added packages/demo/public/images/background/code.png
Binary file added packages/demo/public/images/background/code2.png
Binary file added packages/demo/public/images/background/demo1.png
Binary file added packages/demo/public/images/background/demo2.png
Binary file added packages/demo/public/images/background/demo3.png
Binary file added packages/demo/public/images/background/demo4.png
1 change: 1 addition & 0 deletions packages/demo/public/images/background/header_dark.svg
Binary file added packages/demo/public/images/background/images.jpg
Binary file removed packages/demo/public/images/background/inside.png
Diff not rendered.
Binary file removed packages/demo/public/images/background/outside.png
Diff not rendered.
Binary file removed packages/demo/public/images/background/outside_2.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed packages/demo/public/images/background/sky_night.png
Diff not rendered.
Binary file removed packages/demo/public/images/background/station.png
Diff not rendered.
Diff not rendered.
Binary file removed packages/demo/public/images/background/sunset.png
Diff not rendered.
Diff not rendered.
Binary file added packages/demo/public/images/figure/shiori_low.png
Binary file added packages/demo/public/images/figure/shiori_mid.png
25 changes: 25 additions & 0 deletions packages/demo/public/scripts/bad_end.mrs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
background bg_bad_end.png

show soi -F $soiSq

voice 80.wav
soi: 诶,怎么回事...?
# あれ、どうしたの...?
voice 81.wav
: 看样子你达成了一个坏结局哦——
# バッドエンドになってしまったようですね。
show soi -F $soi
voice 82.wav
: 我也不是很清楚...
# 私にもよくわかりません...
voice 83.wav
: 但大概率是前面答题有问题,还请再试一遍吧。
# おそらく前の質問で間違えたのでしょう。もう一度挑戦してみてください。
voice 84.wav
: 如果实在不行也可以看攻略哦。
# どうしてもダメなら、攻略ガイドを見るのもいいかもしれませんよ。
think: <font color="red">--BAD END--</font>

pause 1

apply info
51 changes: 51 additions & 0 deletions packages/demo/public/scripts/final.mrs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
music 2.mp3
background bg_true_end.png

const soi shiori.png
const soiL shiori_low.png
const soiM shiori_mid.png
const soiC shiori_close.png
const soiCS shiori_close_smile.png
const soiS shiori_smile.png
const soiO shiori_open.png
const soiOL shiori_open_low.png
const soiSh shiori_shy.png
const soiSq shiori_squint.png

character soi --name '诗织' --figure $soi

show soi -F $soi

voice 85.wav
soi: 你好,又见面了。
# こんにちは、また会えましたね。
voice 86.wav
: 这里是 Final Chapter,让我看看师傅在这设定的剧情内容——
# ここはファイナルチャプターです。師匠の設定したストーリーを見てみましょう。
show soi -F $soiS
voice 87.wav
: 首先,十分感谢你能游玩本 DEMO。
# まず、このデモをプレイしていただき、ありがとうございます。
voice 88.wav
: 其次...
# 次に...
show soi -F $soiM
voice 89.wav
: 这里的剧情内容还没有想好具体写啥——
# ここのストーリーはまだ具体的に決まっていないんです。
voice 90.wav
: 不过师傅说以后或许可以在这里放一点关于...诗织的...HCG?
# でも師匠が、将来ここに...私の...えっちなCGを入れるかもしれないって...
think: 嗯?
show soi -F $soiSh
voice 91.wav
soi: 这都是什么啊!
# これは一体何なんですか!
show soi -F $soiOL
voice 92.wav
: 那种事情,绝对...绝对不允许!
# そんなこと、絶対に...絶対に許しません!
think: ...
think: <font color="darkblue">--TRUE END--</font>

pause 1
Loading

0 comments on commit 350902f

Please sign in to comment.