Skip to content

Commit

Permalink
feat(examples): add map
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Aug 27, 2024
1 parent 93556c7 commit e742aa1
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
25 changes: 25 additions & 0 deletions game/examples/map.rpy
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# https://zeillearnings.itch.io/map-navigation
label map:

call screen map

pause

# https://www.renpy.org/doc/html/screens.html
screen map:
add "map/bg map.jpg"

# https://www.renpy.org/doc/html/screens.html#imagebutton
imagebutton:
xpos 618
ypos 570
idle "map/house1_idle.png"
hover "map/house1_hover.png"
# https://www.renpy.org/doc/html/screen_actions.html
action Jump("start")

imagebutton:
xpos 596
ypos 165
auto "map/house2_%s.png"
action Jump("start")
3 changes: 3 additions & 0 deletions game/examples/start.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ label start:
"Drag and Drop":
jump drag_and_drop

"Map":
jump map

"RPG Stats":
jump rpg_stats

Expand Down
Binary file added game/images/map/bg map.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/map/house1_hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/map/house1_idle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/map/house2_hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/map/house2_idle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e742aa1

Please sign in to comment.