Clarify and simplify weather

remove two blank images (useless and slower than Null())
clarify in weather.rpy which are images directly shown on the screen and not just ingredients for the others
simplify the screen code
This commit is contained in:
Asriel Senna 2023-11-18 15:23:15 +01:00
parent d7a5aa8d66
commit da6b7d11ae
5 changed files with 13 additions and 20 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1301,7 +1301,7 @@ label gryffindor_match:
# Cuts to Cho who has taken off Gloves, goggles and leggings. Still wearing top, skirt, bra
# Cho takes her top off
# Transition to Cho on her broom
# Transition to Cho on her broom
$ cho.equip(cho_outfit_quidditch_gryffindor)
$ cho.set_pose("broom")
$ cho.animation = sprite_fly_idle

View File

@ -25,13 +25,12 @@ screen main_room():
sensitive room_menu_active
default objects = sorted(main_room.objects, key=lambda x: x.zorder)
default weather = "weather_[game.weather]"
# Hotkeys
if room_menu_active and game.day > 1 and not renpy.android:
use hotkeys_main
add weather pos (430, 218) anchor (0.5, 0.5)
add "weather_[game.weather]" xycenter (430, 218)
# Walls
if game.daytime:

View File

@ -26,13 +26,13 @@ transform cloud_move:
pause 7
repeat
image weather_clear = ConditionSwitch(
image weather_clear = ConditionSwitch( # final
"game.daytime", "images/rooms/main_room/weather/sky.webp",
"game.moon", "images/rooms/main_room/weather/night_sky_moon.webp",
"True", "images/rooms/main_room/weather/night_sky.webp",
)
image weather_overcast = ConditionSwitch(
image weather_overcast = ConditionSwitch( # final
"game.daytime", "images/rooms/main_room/weather/sky_overcast.webp",
"game.moon", "images/rooms/main_room/weather/night_sky_moon_overcast.webp",
"True", "images/rooms/main_room/weather/night_sky_overcast.webp",
@ -71,7 +71,7 @@ image weather_cloudy_fx:
pause 2
repeat
image weather_cloudy = Fixed("weather_clear", "weather_cloudy_fx", fit_first=True)
image weather_cloudy = Fixed("weather_clear", "weather_cloudy_fx", fit_first=True) # final
image weather_rain_fx:
animation
@ -83,7 +83,7 @@ image weather_rain_fx:
pause.1
repeat
image weather_rain = Fixed("weather_overcast", "weather_rain_fx", fit_first=True)
image weather_rain = Fixed("weather_overcast", "weather_rain_fx", fit_first=True) # final
image weather_snow_fx:
animation
@ -109,7 +109,7 @@ image weather_snow_fx:
pause.07
repeat
image weather_snow = Fixed("weather_overcast", "weather_snow_fx", fit_first=True)
image weather_snow = Fixed("weather_overcast", "weather_snow_fx", fit_first=True) # final
image weather_blizzard_fx:
animation
@ -135,7 +135,7 @@ image weather_blizzard_fx:
pause.05
repeat
image weather_blizzard= Fixed("weather_overcast", "weather_blizzard_fx", fit_first=True)
image weather_blizzard = Fixed("weather_overcast", "weather_blizzard_fx", fit_first=True) # final
image weather_storm_fx:
animation
@ -143,7 +143,7 @@ image weather_storm_fx:
parallel:
animation
pause 20
"images/rooms/main_room/weather/lightning_01.webp"
Null()
pause.1
"images/rooms/main_room/weather/lightning_02.webp"
pause.1
@ -151,15 +151,15 @@ image weather_storm_fx:
pause.1
"images/rooms/main_room/weather/lightning_04.webp"
pause.1
"images/rooms/main_room/weather/lightning_05.webp"
Null()
pause.1
"images/rooms/main_room/weather/lightning_06.webp"
pause.1
"images/rooms/main_room/weather/lightning_05.webp"
Null()
pause.1
"images/rooms/main_room/weather/lightning_06.webp"
pause.1
"images/rooms/main_room/weather/lightning_05.webp"
Null()
pause 20
repeat
@ -173,4 +173,4 @@ image weather_storm_fx:
pause.1
repeat
image weather_storm = Fixed("weather_overcast", "weather_storm_fx", fit_first=True)
image weather_storm = Fixed("weather_overcast", "weather_storm_fx", fit_first=True) # final