Skip to content

Commit

Permalink
feat(story): move necklace from pond to room
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Sep 12, 2024
1 parent fbbd6a9 commit 1b13591
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion game/story/characters.rpy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
define ghost = Character("Ghost", color="#e6e6fa", image="ghost girl")
define lord = Character("Lord", color="#d27d2d", image="lord")
define miss = Character("Young Miss", color="#cbc3e3", image="miss")
define player = Character("[player_name]", color="#de3163")
define player = Character("[player_name]", color="#e34234")
define unknown = Character("???", color="#fff")
2 changes: 1 addition & 1 deletion game/story/inside/basement.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ label basement_door:
$ basement_locked = False
$ item.use("key")

play sound unlock
play sound unlocked

player "The door is unlocked."

Expand Down
18 changes: 18 additions & 0 deletions game/story/inside/room.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ screen safe():
idle "items/safe_open.png"
at scale(0.10)

if item.show("necklace"):
use necklace

label safe:
if renpy.input("Enter safe passcode:", length=4) == "1111":
$ safe_locked = False
Expand All @@ -46,3 +49,18 @@ label safe:
player "Incorrect passcode."

call screen explore_room

screen necklace():
imagebutton:
xpos 1227
ypos 541
idle "items/necklace.png"
action Jump("necklace_found")
at scale(0.08)

label necklace_found:
$ item.find("necklace")
hide screen necklace
player "What a dazzling necklace."
player "I wonder who it belongs to."
call screen explore_room
18 changes: 0 additions & 18 deletions game/story/outside/pond.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ label pond:
else:
scene bg pond day with dissolve

if item.show("necklace"):
show screen necklace

menu:
"What do you want to do?"

Expand Down Expand Up @@ -65,18 +62,3 @@ label pond_rock:
label pond_grass:
player "This grass definitely needs to be cut."
call screen explore_pond

screen necklace():
imagebutton:
xpos 1817
ypos 775
idle "items/necklace.png"
action Jump("necklace_found")
at scale(0.1)

label necklace_found:
$ item.find("necklace")
hide screen necklace
player "Wow, this is stunning necklace!"
player "I wonder if someone lost this."
call screen explore_pond

0 comments on commit 1b13591

Please sign in to comment.