Skip to content

Commit

Permalink
feat(examples): add transform
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Sep 14, 2024
1 parent d048ce8 commit 93bad40
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions game/examples/start.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ label start:
"Tooltip":
jump tooltip

"Transform":
jump transform_example

"Voice":
jump voice

Expand Down
33 changes: 33 additions & 0 deletions game/examples/transform.rpy
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
transform fadein:
alpha 0.0
easein 1.0 alpha 1.0

transform flip:
xzoom -1.0

transform unflip:
xzoom 1.0

transform resize(x, y):
size (x, y)

transform scale(ratio):
zoom ratio

transform tint(color):
matrixcolor TintMatrix(color)

transform ypos(position):
ypos position

label transform_example:

show eileen happy at left, flip, fadein

e "I'm on the left."

show eileen vhappy at right, unflip, scale(1.5) with ease

e "I'm on the right."

jump start

0 comments on commit 93bad40

Please sign in to comment.