Skip to content

Commit

Permalink
add raven image and sacrifice sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
willemolding committed Oct 26, 2023
1 parent a4767af commit ecf8cc1
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 2 deletions.
Binary file added renjs-client/public/assets/audio/cat.mp3
Binary file not shown.
Binary file added renjs-client/public/assets/audio/raven.mp3
Binary file not shown.
Binary file added renjs-client/public/assets/audio/sacrifice.mp3
Binary file not shown.
Binary file added renjs-client/public/assets/characters/raven.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion renjs-client/public/story/Config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ positions:
y: 1920
CENTER:
x: 540
y: 1920
y: 1600
RIGHT:
x: 450
y: 1920
Expand Down
8 changes: 7 additions & 1 deletion renjs-client/public/story/Setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ characters:
displayName: Raven
speechColour: "#ca90cf"
looks:
normal: assets/characters/Char3NormalSchool.png
normal: assets/characters/raven.png
scared: assets/characters/ravenScared.png

cat:
displayName: Cat
Expand All @@ -47,3 +48,8 @@ cgs:

music:
mysterious: assets/audio/mysterious.mp3

sfx:
raven: assets/audio/raven.mp3
cat: assets/audio/cat.mp3
sacrifice: assets/audio/sacrifice.mp3
43 changes: 43 additions & 0 deletions renjs-client/public/story/Story.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,19 @@ manageActions:
- if ({familiarName} == "Raven"):
- show raven: WITH CUT AT OUTLEFT
- show raven: WITH MOVE AT LEFT
- play raven:
- if ({familiarName} == "Cat"):
- show cat: WITH CUT AT OUTLEFT
- show cat: WITH MOVE AT LEFT
- play cat:
- if ({familiarName} == "Salamander"):
- show salamander: WITH CUT AT OUTLEFT
- show salamander: WITH MOVE AT LEFT
- play salamander:
- if ({familiarName} == "Wolf Spider"):
- show spider: WITH CUT AT OUTLEFT
- show spider: WITH MOVE AT LEFT
- play spider:

- show cardback: WITH FADE AT 350,300

Expand Down Expand Up @@ -101,15 +105,19 @@ manageActions:
- if ({familiarName} == "Raven"):
- show raven: WITH CUT AT OUTLEFT
- show raven: WITH MOVE AT LEFT
- play raven:
- if ({familiarName} == "Cat"):
- show cat: WITH CUT AT OUTLEFT
- show cat: WITH MOVE AT LEFT
- play cat:
- if ({familiarName} == "Salamander"):
- show salamander: WITH CUT AT OUTLEFT
- show salamander: WITH MOVE AT LEFT
- play salamander:
- if ({familiarName} == "Wolf Spider"):
- show spider: WITH CUT AT OUTLEFT
- show spider: WITH MOVE AT LEFT
- play spider:

- text: You send your {familiarName} out to forage. Check back later to see what they bring back.

Expand Down Expand Up @@ -138,15 +146,19 @@ manageActions:
- "Raven":
- call SpellCrafter: summonFamiliar forest
- show raven: WITH FADE AT CENTER
- play raven:
- "Cat":
- call SpellCrafter: summonFamiliar meadow
- show cat: WITH FADE AT CENTER
- play cat:
- "Salamander":
- call SpellCrafter: summonFamiliar volcano
- show salamander: WITH FADE AT CENTER
- play salamander:
- "Wolf Spider":
- call SpellCrafter: summonFamiliar cave
- show spider: WITH FADE AT CENTER
- play spider:
- text: You summon a (bold){familiarName}(end) into existence. It is a dark and mysterious creature that can forage in the Forest.
- scene: approaching

Expand Down Expand Up @@ -213,11 +225,42 @@ addComponents:
sacrifice:
- if ({familiar} && {familiarIdle}):
- text: You begin the sacrifice ritual

- if ({familiarName} == "Raven"):
- show raven: WITH FADE AT CENTER
- if ({familiarName} == "Cat"):
- show cat: WITH FADE AT CENTER
- if ({familiarName} == "Salamander"):
- show salamander: WITH FADE AT CENTER
- if ({familiarName} == "Wolf Spider"):
- show spider: WITH FADE AT CENTER

- text: I'm sorry {familiarName}, but I really need your help.
- show altar: WITH FADE

- if ({familiarName} == "Raven"):
- show raven: scared WITH CUT AT CENTER
- if ({familiarName} == "Cat"):
- show cat: scared WITH CUT AT CENTER
- if ({familiarName} == "Salamander"):
- show salamander: scared WITH CUT AT CENTER
- if ({familiarName} == "Wolf Spider"):
- show spider: scared WITH CUT AT CENTER

- text: You place your {familiarName} on the altar.
- call SpellCrafter: sacrificeFamiliar
- effect SHAKE:
- play sacrifice:

- if ({familiarName} == "Raven"):
- hide raven:
- if ({familiarName} == "Cat"):
- hide cat:
- if ({familiarName} == "Salamander"):
- hide salamander:
- if ({familiarName} == "Wolf Spider"):
- hide spider:

- text: You sacrifice your {familiarName} to the spell.
- else:
- deuzi says angry: You don't have a familiar to sacrifice!!
Expand Down

0 comments on commit ecf8cc1

Please sign in to comment.