Skip to content

Commit

Permalink
perf(images): convert items from png to webp
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Sep 19, 2024
1 parent 3c9e150 commit 933822e
Show file tree
Hide file tree
Showing 26 changed files with 24 additions and 37 deletions.
Binary file removed game/images/items/bewarescroll.png
Binary file not shown.
Binary file added game/images/items/bewarescroll.webp
Binary file not shown.
Binary file removed game/images/items/book.png
Binary file not shown.
Binary file added game/images/items/book.webp
Binary file not shown.
Binary file removed game/images/items/key.png
Binary file not shown.
Binary file added game/images/items/key.webp
Binary file not shown.
Binary file removed game/images/items/necklace.png
Binary file not shown.
Binary file added game/images/items/necklace.webp
Binary file not shown.
Binary file removed game/images/items/ring.png
Binary file not shown.
Binary file added game/images/items/ring.webp
Binary file not shown.
Binary file removed game/images/items/rolledscroll.png
Binary file not shown.
Binary file added game/images/items/rolledscroll.webp
Binary file not shown.
Binary file removed game/images/items/safe_closed.png
Binary file not shown.
Binary file added game/images/items/safe_closed.webp
Binary file not shown.
Binary file removed game/images/items/safe_open.png
Binary file not shown.
Binary file added game/images/items/safe_open.webp
Binary file not shown.
Binary file removed game/images/items/scroll.png
Binary file not shown.
Binary file added game/images/items/scroll.webp
Binary file not shown.
Binary file removed game/images/items/skull.png
Binary file not shown.
Binary file added game/images/items/skull.webp
Binary file not shown.
23 changes: 8 additions & 15 deletions game/story/day1/day1_meet_lord.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,14 @@ label day1_meet_lord:
call screen lord_book(blink=True)

screen lord_book(blink=False):
if blink:
imagebutton:
xpos 100
ypos 515
idle "items/book.png"
action Jump("lord_book_found")
at scale(0.17), delayed_blink(0, 1)

else:
imagebutton:
xpos 100
ypos 515
idle "items/book.png"
action Jump("lord_book_found")
at scale(0.17)
imagebutton:
xpos 100
ypos 515
idle "items/book.webp"
action Jump("lord_book_found")
at scale(0.17)
if blink:
at delayed_blink(0, 1)

label lord_book_found:

Expand Down
4 changes: 2 additions & 2 deletions game/story/inside/basement_door.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ screen scroll_closed():
imagebutton:
xpos 1300
ypos 800
idle "items/rolledscroll.png"
idle "items/rolledscroll.webp"
action Jump("scroll_found")
at rotate(90), scale(0.11)

screen scroll_opened():
imagebutton:
xpos 600
ypos 100
idle "items/bewarescroll.png"
idle "items/bewarescroll.webp"
action Hide("scroll_opened")
at scale(0.8)

Expand Down
2 changes: 1 addition & 1 deletion game/story/inside/basement_room.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ screen basement_book():
imagebutton:
xpos 980
ypos 387
idle "items/book.png"
idle "items/book.webp"
action Jump("basement_book")
at scale(0.13), tint("#666")

Expand Down
2 changes: 1 addition & 1 deletion game/story/inside/kitchen.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ screen basement_key():
imagebutton:
xpos 1400
ypos 440
idle "items/key.png"
idle "items/key.webp"
action Jump("basement_key_found")
at scale(0.2)

Expand Down
27 changes: 11 additions & 16 deletions game/story/inside/room.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,18 @@ screen explore_room():
use back("room")

screen safe():
if safe_locked:
imagebutton:
xpos 1170
ypos 520
idle "items/safe_closed.png"
imagebutton:
xpos 1170
ypos 520
at scale(0.1)
if safe_locked:
idle "items/safe_closed.webp"
action Jump("safe")
at scale(0.1)

else:
imagebutton:
xpos 1170
ypos 520
idle "items/safe_open.png"
at scale(0.1)
else:
idle "items/safe_open.webp"

if item.show("necklace"):
use necklace
if not safe_locked and item.show("necklace"):
use necklace

label safe:
if renpy.input("Enter safe passcode:", length=4) == "1111":
Expand All @@ -54,7 +49,7 @@ screen necklace():
imagebutton:
xpos 1227
ypos 541
idle "items/necklace.png"
idle "items/necklace.webp"
action Jump("necklace_found")
at scale(0.08)

Expand Down
3 changes: 1 addition & 2 deletions game/story/screens/inventory.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ screen inventory():
if len(item.inventory):
frame:
xalign 1.0

hbox:
for i in item.inventory:
image "items/[i].png" at resize(75, 75)
image "items/[i].webp" at resize(75, 75)

0 comments on commit 933822e

Please sign in to comment.