feat: i18n system, lang switch component, english subtitles, UI improvements, roadmap update
This commit is contained in:
@@ -33,6 +33,10 @@
|
||||
"id": "intro",
|
||||
"videoUrl": "/videos/intro.mp4",
|
||||
"subtitleUrl": "/subtitles/intro.vtt",
|
||||
"subtitles": {
|
||||
"zh": "/subtitles/intro.vtt",
|
||||
"en": "/subtitles/intro_en.vtt"
|
||||
},
|
||||
"bgmUrl": "/audio/calm_bgm.mp3",
|
||||
"bgmVolume": 0.6,
|
||||
"bgmCrossFade": 1.5,
|
||||
@@ -40,6 +44,7 @@
|
||||
"choices": [
|
||||
{
|
||||
"text": "走向左边那扇发光的门",
|
||||
"textKey": "scene.intro.choice.left_door",
|
||||
"targetScene": "left_door",
|
||||
"effects": [
|
||||
{ "type": "add", "target": "courage", "value": 10 }
|
||||
@@ -47,6 +52,7 @@
|
||||
},
|
||||
{
|
||||
"text": "走向右边那扇普通的门",
|
||||
"textKey": "scene.intro.choice.right_door",
|
||||
"targetScene": "right_door",
|
||||
"effects": [
|
||||
{ "type": "add", "target": "courage", "value": -5 }
|
||||
@@ -54,10 +60,12 @@
|
||||
},
|
||||
{
|
||||
"text": "仔细搜索房间",
|
||||
"textKey": "scene.intro.choice.search",
|
||||
"targetScene": "investigation_site"
|
||||
},
|
||||
{
|
||||
"text": "留在原地,什么也不做",
|
||||
"textKey": "scene.intro.choice.stay",
|
||||
"targetScene": "stay"
|
||||
}
|
||||
]
|
||||
|
||||
7
public/subtitles/intro_en.vtt
Normal file
7
public/subtitles/intro_en.vtt
Normal file
@@ -0,0 +1,7 @@
|
||||
WEBVTT
|
||||
|
||||
00:00.000 --> 00:02.000
|
||||
You wake up in a strange room
|
||||
|
||||
00:02.500 --> 00:03.000
|
||||
Two doors stand before you. You must choose.
|
||||
7
public/subtitles/left_door_en.vtt
Normal file
7
public/subtitles/left_door_en.vtt
Normal file
@@ -0,0 +1,7 @@
|
||||
WEBVTT
|
||||
|
||||
00:00.000 --> 00:02.500
|
||||
You walk through the glowing door into a bright hall
|
||||
|
||||
00:02.500 --> 00:03.000
|
||||
A stranger extends their hand toward you
|
||||
4
public/subtitles/stay_en.vtt
Normal file
4
public/subtitles/stay_en.vtt
Normal file
@@ -0,0 +1,4 @@
|
||||
WEBVTT
|
||||
|
||||
00:00.000 --> 00:03.000
|
||||
You choose to stay where you are. Time passes slowly...
|
||||
Reference in New Issue
Block a user