Files
IWaniHugThatGator-Demo-Public/game/dev/test_definitions.rpy
2023-05-16 09:08:15 -05:00

140 lines
4.6 KiB
Plaintext

image orbiva lol = "dev/test png/_orbiva lol.png"
image orbiva_base = "dev/test png/orbiva_base.png"
image orbiva_head angry_eyes = "dev/test png/orbiva_head angry_eyes.png"
image orbiva_head frown = "dev/test png/orbiva_head frown.png"
image orbiva_head neutral_eyes = "dev/test png/orbiva_head neutral_eyes.png"
image orbiva_head smile = "dev/test png/orbiva_head smile.png"
# Add more dicts to cover other characters, or maybe includ more tags in the entry, idk python scares me.
# This doesn't work if this is defined elsewhere, which it is in character.rpy
define config.adjust_attributes = {
"orbiva" : orbiva_expressions
}
init -1 python:
def orbiva_expressions(attrs):
t_attr = list(attrs)
# This will enact the SG behavior of adding 'flip' to the end of something to flip it left, and not to keep it right
if 'flip' not in t_attr and 'unflip' not in t_attr and len(t_attr)==0:
t_attr.extend(['unflip'])
if 'neutral' in t_attr:
t_attr.remove('neutral')
t_attr.extend(['smile', 'e_neutral'])
if 'angry' in t_attr:
t_attr.remove('angry')
t_attr.extend(['frown', 'e_angry'])
return tuple(t_attr)
# test layered image
# This can be shortened with auto and filename doo-hickery
layeredimage orbiva:
yanchor 0.0
xanchor 0.5
always:
"orbiva_base"
group eyes:
attribute e_neutral:
"orbiva_head neutral_eyes"
attribute e_angry:
"orbiva_head angry_eyes"
group mouth:
attribute smile:
"orbiva_head smile"
attribute frown:
"orbiva_head frown"
# This is so we can flip the character at will like SG did before. Don't ask me how this proxy shit works, I just asked around.
image orbiva flip = LayeredImageProxy("orbiva", Transform(xzoom=-1.0))
image orbiva unflip = LayeredImageProxy("orbiva", Transform(xzoom=1.0))
image orbiva lol flip = Transform("orbiva lol", xzoom=-1.0)
image orbiva lol unflip = Transform("orbiva lol", xzoom=1.0)
image layeredimage_base1 = "dev/test layered image/layeredimage_base1.png"
image layeredimage_base2 = "dev/test layered image/layeredimage_base2.png"
image layeredimage_bluepart = "dev/test layered image/layeredimage_bluepart.png"
image layeredimage_cyanpart = "dev/test layered image/layeredimage_cyanpart.png"
image layeredimage_greenpart = "dev/test layered image/layeredimage_greenpart.png"
image layeredimage_magentapart = "dev/test layered image/layeredimage_magentapart.png"
layeredimage thisthing:
always:
"layeredimage_base1"
group expressions:
# Tier 1
attribute thinger1:
"layeredimage_bluepart"
attribute thinger2:
"layeredimage_greenpart"
layeredimage thisthing thing:
always:
"layeredimage_base2"
group expressions:
# Tier 1
attribute thinger1:
"layeredimage_cyanpart"
attribute thinger2:
"layeredimage_magentapart"
image thisthing thinger = "dev/test layered image/layeredimage_greenpart.png"
#
# Olivia loading icon
#
# Look at all this fucking shit to do a loading animation
image loading_olivia_white:
"olivia neutral"
matrixcolor ColorizeMatrix(black_color="#ffffff", white_color="#ffffff")
image loading_olivia_black:
"olivia neutral"
matrixcolor ColorizeMatrix(black_color="#000000", white_color="#000000")
image loading_olivia_whiteblur:
"loading_olivia_white"
blur 2.0
image loading_olivia_blackblur:
"loading_olivia_black"
blur 2.0
# Have to manually place the sprite depending on size in this thing because OF COURSE, RENPY CAN'T JUST SHARE BASIC PROPERTIES LIKE XALIGN BUT IT SURE CAN DO WITH MATRIXCOLOR
image loading_olivia_green_screen = Composite(
(1000, 1500),
(-1, -1), "loading_olivia_blackblur", # To get a bloom effect. -1 because I guess renpy has a bias towards blurring it downwards?
(1, -1), "loading_olivia_blackblur",
(0, 0), "loading_olivia_white")
image loading_olivia_black_screen = Composite(
(1000, 1500),
(0, -1), "loading_olivia_whiteblur",
(1, -1), "loading_olivia_whiteblur",
(0, 0), "loading_olivia_black"
)
image loading_wipe = Composite(
(1000, 1500),
(-487, 420), "transition_wipe"
)
define wipe_loading = ImageDissolve("trans_wipe", 1.0, ramplen=4)
image loading_anim:
xanchor 0.4602510 yanchor 0.54259 xpos 0.5 ypos 0.5 alpha 0 zoom 0.4 blur 0.3
"loading_olivia_black_screen"
parallel:
"loading_olivia_green_screen" with wipe_loading
pause 1
"loading_olivia_black_screen" with wipe_loading
pause 1
repeat
parallel:
linear 1 alpha 1