Skip to content

Commit

Permalink
feat(story): show book in basement
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Sep 13, 2024
1 parent 78a127b commit 4aecce6
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
38 changes: 34 additions & 4 deletions game/story/inside/basement.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ label basement:
$ basement_locked = False
$ item.use("key")
player "The door is unlocked."
jump basement_door
jump basement

"Go upstairs":
jump explore_inside_day
Expand All @@ -27,25 +27,55 @@ label basement:
"What do you want to do?"

"Go downstairs":
$ basement_visit += 1
jump basement_room

"Go upstairs":
jump explore_inside_day

label basement_room:

$ basement_visit += 1

if basement_visit == 1:
jump basement_room_first_visit

scene bg basement light with dissolve

if basement_visit > 2:
show screen basement_book

menu:
"What do you want to do?"

"Look around":
player "The air feels chilly here..."
call screen explore_basement

"Go upstairs":
jump explore_inside_day

screen explore_basement():
use back("basement_room")

screen basement_book():
imagebutton:
xpos 980
ypos 387
idle "items/book.png"
action Jump("basement_book")
at scale(0.13), tint("#666")

label basement_book:

player "It’s the lord’s book."

menu:
"Should I take a peek?"

"Yes":
player "The last entry is dated November 11th."

"“I can’t wait to surprise my beloved on her birthday today.{w}\nI’ll treasure this day forever.”"

"No":
player "I shouldn’t snoop around other people’s stuff."

call screen explore_basement
3 changes: 3 additions & 0 deletions game/utils/transforms.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ transform resize(x, y):
transform scale(ratio):
zoom ratio

transform tint(color):
matrixcolor TintMatrix(color)

transform ypos(position):
ypos position

0 comments on commit 4aecce6

Please sign in to comment.