Skip to content

Commit

Permalink
feat(story): allow player to sleep after whisper
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Sep 11, 2024
1 parent 894f538 commit 185028f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions game/story/inside/bedroom.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ label bedroom:
menu:
"What do you want to do?"

"Sleep":
$ day += 1
$ night = False
$ sleep = False

player "It’s been a long day."

jump bedroom

"Explore the bedroom":
player "The bed looks pretty comfy."

Expand Down
4 changes: 4 additions & 0 deletions game/story/inside/kitchen.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ label kitchen_dialogue:
unknown "{sc}Find...{w=0.3} Treasure...{w=0.3} Basement..."

player "What...{w=0.2} in the world was that?"
player "I might be hearing things."
player "I don’t feel hungry anymore.{w=0.3} I should just get a good night’s rest."

$ sleep = True

return

Expand Down
1 change: 1 addition & 0 deletions game/story/variables.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ default surname = "Kasper"
# time
default day = 1
default night = False
default sleep = False

# rooms
default basement_locked = True
Expand Down

0 comments on commit 185028f

Please sign in to comment.