Skip to content

Commit

Permalink
Ren'Py Layered Image Masks
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackRam-oss committed Oct 10, 2023
1 parent eb39753 commit fd645e9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions game/images.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ image icon gym = "location/gym-icon.webp"
image icon map home = "/nqtr_interface/map-home.webp"
image icon map gym = "/nqtr_interface/map-gym.webp"

image icon alice = "Alice/icon.webp"
image icon ann = "Ann/icon.webp"
image pre icon alice = Transform("icon/Alice.webp", xysize=(700, 700))
image icon alice = LayeredImageMask("pre icon alice",
Transform(crop=(0, 0, 700, 700)),
mask="sprite mask elaborate",
foreground="sprite foreground elaborate",
background="sprite background elaborate"
)
image icon ann = "icon/Ann.webp"

image bg map = "location/map-[tm.timeslot_number].webp"
image bg nightcity = "location/nightcity.webp"
Expand Down
Binary file modified game/images/icon/Alice.webp
Binary file not shown.
4 changes: 2 additions & 2 deletions game/script.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

init -1:
define mc = Character("Player")
define a = Character("Alice", icon = "icon/Alice.webp")
define an = Character("Ann", icon = "icon/Ann.webp")
define a = Character("Alice", icon = "icon alice")
define an = Character("Ann", icon = "icon ann")


# The game starts here.
Expand Down

0 comments on commit fd645e9

Please sign in to comment.