Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "route-engine-js",
"version": "1.0.2",
"version": "1.0.3",
"description": "A lightweight Visual Novel engine built in JavaScript for creating interactive narrative games with branching storylines",
"repository": {
"type": "git",
Expand Down Expand Up @@ -58,7 +58,7 @@
"ajv": "^8.18.0",
"husky": "^9.1.7",
"prettier": "^3.7.4",
"route-graphics": "1.7.0",
"route-graphics": "1.7.5",
"vitest": "^4.0.16"
}
}
4 changes: 2 additions & 2 deletions spec/RouteEngine.runtime.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ describe("RouteEngine runtime", () => {
autoForwardDelay: 1000,
skipUnseenText: false,
skipTransitionsAndAnimations: false,
soundVolume: 500,
musicVolume: 500,
soundVolume: 50,
musicVolume: 50,
muteAll: false,
},
},
Expand Down
20 changes: 10 additions & 10 deletions spec/system/createInitialState.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ out:
autoForwardDelay: 1000
skipUnseenText: false
skipTransitionsAndAnimations: false
soundVolume: 500
musicVolume: 500
soundVolume: 50
musicVolume: 50
muteAll: false
confirmDialog: null
viewedRegistry:
Expand Down Expand Up @@ -123,8 +123,8 @@ out:
autoForwardDelay: 1000
skipUnseenText: false
skipTransitionsAndAnimations: false
soundVolume: 500
musicVolume: 500
soundVolume: 50
musicVolume: 50
muteAll: false
confirmDialog: null
viewedRegistry:
Expand Down Expand Up @@ -229,8 +229,8 @@ out:
autoForwardDelay: 1000
skipUnseenText: false
skipTransitionsAndAnimations: false
soundVolume: 500
musicVolume: 500
soundVolume: 50
musicVolume: 50
muteAll: false
confirmDialog: null
viewedRegistry:
Expand Down Expand Up @@ -329,8 +329,8 @@ out:
autoForwardDelay: 1000
skipUnseenText: false
skipTransitionsAndAnimations: false
soundVolume: 500
musicVolume: 500
soundVolume: 50
musicVolume: 50
muteAll: false
confirmDialog: null
viewedRegistry:
Expand Down Expand Up @@ -426,8 +426,8 @@ out:
autoForwardDelay: 1000
skipUnseenText: false
skipTransitionsAndAnimations: false
soundVolume: 500
musicVolume: 500
soundVolume: 50
musicVolume: 50
muteAll: false
confirmDialog: null
viewedRegistry:
Expand Down
16 changes: 8 additions & 8 deletions spec/system/renderState/addBgm.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ in:
backgroundMusic:
fileId: "bgm.mp3"
runtime:
musicVolume: 700
musicVolume: 70
out:
elements:
- id: "story"
Expand All @@ -39,7 +39,7 @@ out:
type: "sound"
src: "bgm.mp3"
loop: true
volume: 700
volume: 70
delay: 0
---
case: add bgm with default values
Expand Down Expand Up @@ -72,7 +72,7 @@ out:
type: "sound"
src: "simple.mp3"
loop: true
volume: 500
volume: 50
delay: null
---
case: add bgm with custom settings
Expand All @@ -95,7 +95,7 @@ in:
customMusic:
fileId: "custom.mp3"
runtime:
musicVolume: 300
musicVolume: 30
out:
elements:
- id: "story"
Expand All @@ -109,7 +109,7 @@ out:
type: "sound"
src: "custom.mp3"
loop: false
volume: 300
volume: 30
delay: 1000
---
case: no presentationState.bgm - return unchanged state
Expand All @@ -128,7 +128,7 @@ in:
backgroundMusic:
fileId: "bgm.mp3"
loop: true
volume: 700
volume: 70
out:
elements:
- id: "story"
Expand All @@ -155,7 +155,7 @@ in:
backgroundMusic:
fileId: "bgm.mp3"
loop: true
volume: 700
volume: 70
out:
elements:
- id: "notStory"
Expand All @@ -182,7 +182,7 @@ in:
existing:
fileId: "existing.mp3"
loop: true
volume: 700
volume: 70
out:
elements:
- id: "story"
Expand Down
26 changes: 13 additions & 13 deletions spec/system/renderState/addSfx.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ in:
soundEffect:
fileId: "effect.mp3"
loop: false
volume: 700
volume: 70
delay: 0
out:
elements:
Expand All @@ -40,7 +40,7 @@ out:
type: "sound"
src: "effect.mp3"
loop: false
volume: 700
volume: 70
delay: 0
---
case: add sfx with default values
Expand Down Expand Up @@ -75,7 +75,7 @@ out:
type: "sound"
src: "simple.mp3"
loop: false
volume: 500
volume: 50
delay: null
---
case: add sfx with custom settings
Expand All @@ -94,7 +94,7 @@ in:
- id: "sfx1"
resourceId: "customSound"
loop: true
volume: 300
volume: 30
delay: 500
resources:
sounds:
Expand All @@ -113,7 +113,7 @@ out:
type: "sound"
src: "custom.mp3"
loop: true
volume: 300
volume: 30
delay: 500
---
case: multiple sfx items
Expand All @@ -137,7 +137,7 @@ in:
sounds:
firstSound:
fileId: "first.mp3"
volume: 600
volume: 60
secondSound:
fileId: "second.mp3"
out:
Expand All @@ -153,13 +153,13 @@ out:
type: "sound"
src: "first.mp3"
loop: false
volume: 600
volume: 60
delay: null
- id: "sfx2"
type: "sound"
src: "second.mp3"
loop: false
volume: 500
volume: 50
delay: null
---
case: no presentationState.sfx - return unchanged state
Expand All @@ -178,7 +178,7 @@ in:
soundEffect:
fileId: "effect.mp3"
loop: true
volume: 700
volume: 70
out:
elements:
- id: "story"
Expand Down Expand Up @@ -207,7 +207,7 @@ in:
soundEffect:
fileId: "effect.mp3"
loop: true
volume: 700
volume: 70
out:
elements:
- id: "notStory"
Expand All @@ -219,7 +219,7 @@ out:
type: "sound"
src: "effect.mp3"
loop: true
volume: 700
volume: 70
delay: null
---
case: audio not found - skip item
Expand All @@ -242,7 +242,7 @@ in:
existing:
fileId: "existing.mp3"
loop: true
volume: 700
volume: 70
out:
elements:
- id: "story"
Expand Down Expand Up @@ -271,7 +271,7 @@ in:
soundEffect:
fileId: "effect.mp3"
loop: true
volume: 700
volume: 70
out:
elements:
- id: "story"
Expand Down
24 changes: 12 additions & 12 deletions spec/system/renderState/addVoice.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ in:
- presentationState:
voice:
fileId: "voice.mp3"
volume: 800
volume: 80
loop: false
resources: {}
out:
Expand All @@ -33,7 +33,7 @@ out:
- id: "voice-voice.mp3"
type: "sound"
src: "voice.mp3"
volume: 800
volume: 80
loop: false
---
case: add voice with default values
Expand Down Expand Up @@ -62,7 +62,7 @@ out:
- id: "voice-simpleVoice.mp3"
type: "sound"
src: "simpleVoice.mp3"
volume: 500
volume: 50
loop: false
---
case: add voice with loop enabled
Expand All @@ -78,7 +78,7 @@ in:
- presentationState:
voice:
fileId: "loopingVoice.mp3"
volume: 600
volume: 60
loop: true
resources: {}
out:
Expand All @@ -93,7 +93,7 @@ out:
- id: "voice-loopingVoice.mp3"
type: "sound"
src: "loopingVoice.mp3"
volume: 600
volume: 60
loop: true
---
case: no presentationState.voice - return unchanged state
Expand Down Expand Up @@ -129,7 +129,7 @@ in:
- presentationState:
voice:
fileId: "voice.mp3"
volume: 700
volume: 70
loop: false
resources: {}
out:
Expand All @@ -142,7 +142,7 @@ out:
- id: "voice-voice.mp3"
type: "sound"
src: "voice.mp3"
volume: 700
volume: 70
loop: false
---
case: null presentationState - return unchanged state
Expand Down Expand Up @@ -180,7 +180,7 @@ in:
- presentationState:
voice:
fileId: "customVoice.mp3"
volume: 300
volume: 30
loop: true
resources: {}
out:
Expand All @@ -195,7 +195,7 @@ out:
- id: "voice-customVoice.mp3"
type: "sound"
src: "customVoice.mp3"
volume: 300
volume: 30
loop: true
---
case: null resources - still works (voice doesn't use resources)
Expand All @@ -211,7 +211,7 @@ in:
- presentationState:
voice:
fileId: "voice.mp3"
volume: 700
volume: 70
loop: false
resources: null
out:
Expand All @@ -226,5 +226,5 @@ out:
- id: "voice-voice.mp3"
type: "sound"
src: "voice.mp3"
volume: 700
loop: false
volume: 70
loop: false
Loading
Loading