Skip to content

Commit

Permalink
refactor(story): allow player to rest at anytime
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Sep 14, 2024
1 parent 2918a4e commit fb1817e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
1 change: 0 additions & 1 deletion game/story/day1/day1_whisper.rpy
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
label day1_whisper:

$ day1_whisper = True
$ sleep = True

player "Let’s see...{w=0.3} What’s in the fridge?"

Expand Down
16 changes: 11 additions & 5 deletions game/story/inside/bedroom.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ label bedroom:
menu:
"What do you want to do?"

"Sleep" if sleep:
$ day += 1
$ night = False
$ sleep = False
player "It’s been a long day."
"Rest":
player "Time to get some rest."

scene black with fade
pause 1

if night:
$ day += 1
$ night = False
else:
$ night = True

jump bedroom

"Look around":
Expand Down
1 change: 0 additions & 1 deletion game/story/variables.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ default item = Item()
# time
default day = 1
default night = False
default sleep = False

# rooms
default basement_locked = True
Expand Down

0 comments on commit fb1817e

Please sign in to comment.