2022-05-16 23:48:22 +00:00
|
|
|
label weather_sound:
|
|
|
|
if game.weather == "blizzard":
|
|
|
|
play weather "sounds/blizzard.ogg" fadeout 0.5 fadein 0.5 if_changed
|
|
|
|
elif game.weather == "storm":
|
|
|
|
play weather "sounds/storm.ogg" fadeout 0.5 fadein 0.5 if_changed
|
|
|
|
elif game.weather == "rain":
|
|
|
|
play weather "sounds/storm.ogg" fadeout 0.5 fadein 0.5 if_changed # TODO: Rain sound (without thunder)
|
|
|
|
else:
|
|
|
|
stop weather fadeout 0.5
|
|
|
|
return
|
|
|
|
|
|
|
|
transform cloud_move:
|
2023-12-17 17:54:19 +00:00
|
|
|
animation
|
|
|
|
|
2022-05-16 23:48:22 +00:00
|
|
|
xpos 520
|
|
|
|
choice:
|
|
|
|
ypos 150
|
|
|
|
choice:
|
|
|
|
ypos 160
|
|
|
|
choice:
|
|
|
|
ypos 170
|
|
|
|
choice:
|
|
|
|
ypos 190
|
|
|
|
choice:
|
|
|
|
ypos 200
|
|
|
|
|
|
|
|
linear 15.0 xpos 237
|
|
|
|
pause 7
|
|
|
|
repeat
|
|
|
|
|
2024-03-24 17:54:06 +00:00
|
|
|
image weather clear = ConditionSwitch( # final
|
2023-11-15 00:17:07 +00:00
|
|
|
"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",
|
2022-05-31 14:31:41 +00:00
|
|
|
)
|
|
|
|
|
2024-03-24 17:54:06 +00:00
|
|
|
image weather overcast = ConditionSwitch( # final
|
2023-11-15 00:17:07 +00:00
|
|
|
"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",
|
2022-05-31 14:31:41 +00:00
|
|
|
)
|
|
|
|
|
2024-03-24 17:57:18 +00:00
|
|
|
transform cloud_move:
|
|
|
|
subpixel True
|
2022-05-16 23:48:22 +00:00
|
|
|
choice:
|
2024-03-24 17:57:18 +00:00
|
|
|
yoffset 0
|
2022-05-16 23:48:22 +00:00
|
|
|
choice:
|
2024-03-24 17:57:18 +00:00
|
|
|
yoffset 15
|
2022-05-16 23:48:22 +00:00
|
|
|
choice:
|
2024-03-24 17:57:18 +00:00
|
|
|
yoffset 30
|
|
|
|
xoffset -120
|
|
|
|
choice:
|
|
|
|
linear 12 xoffset 100
|
|
|
|
choice:
|
|
|
|
linear 15 xoffset 100
|
|
|
|
choice:
|
|
|
|
linear 18 xoffset 100
|
2022-05-16 23:48:22 +00:00
|
|
|
repeat
|
|
|
|
|
2024-03-24 17:57:18 +00:00
|
|
|
transform weather_cloudy_clouds(tim):
|
|
|
|
# tim is either "day" or "night"
|
|
|
|
xysize (155, 230)
|
|
|
|
|
|
|
|
contains:
|
|
|
|
animation
|
|
|
|
pos (40, 40)
|
|
|
|
pause 10
|
|
|
|
"images/rooms/main_room/weather/"+tim+"_cloud_01.webp"
|
|
|
|
cloud_move
|
|
|
|
|
|
|
|
contains:
|
|
|
|
animation
|
|
|
|
pos (60, 60)
|
|
|
|
pause 5
|
|
|
|
"images/rooms/main_room/weather/"+tim+"_cloud_02.webp"
|
|
|
|
cloud_move
|
|
|
|
|
|
|
|
contains:
|
|
|
|
animation
|
|
|
|
pos (80, 80)
|
|
|
|
"images/rooms/main_room/weather/"+tim+"_cloud_03.webp"
|
|
|
|
cloud_move
|
|
|
|
|
|
|
|
image weather_cloudy_clouds = ConditionSwitch(
|
|
|
|
"game.daytime", weather_cloudy_clouds("day"),
|
|
|
|
"True", weather_cloudy_clouds("night"),
|
|
|
|
)
|
|
|
|
|
|
|
|
image weather cloudy = Fixed("weather clear", "weather_cloudy_clouds", fit_first=True) # final
|
2022-05-16 23:48:22 +00:00
|
|
|
|
2022-05-31 14:31:41 +00:00
|
|
|
image weather_rain_fx:
|
2022-12-17 21:57:06 +00:00
|
|
|
animation
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/rain_01.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.1
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/rain_02.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.1
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/rain_03.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.1
|
|
|
|
repeat
|
|
|
|
|
2024-03-24 17:54:06 +00:00
|
|
|
image weather rain = Fixed("weather overcast", "weather_rain_fx", fit_first=True) # final
|
2022-05-31 14:31:41 +00:00
|
|
|
|
|
|
|
image weather_snow_fx:
|
2022-12-17 21:57:06 +00:00
|
|
|
animation
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/snow_01.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.07
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/snow_02.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.07
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/snow_03.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.07
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/snow_04.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.07
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/snow_05.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.07
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/snow_06.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.07
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/snow_07.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.07
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/snow_08.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.07
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/snow_09.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.07
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/snow_10.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.07
|
|
|
|
repeat
|
|
|
|
|
2024-03-24 17:54:06 +00:00
|
|
|
image weather snow = Fixed("weather overcast", "weather_snow_fx", fit_first=True) # final
|
2022-05-31 14:31:41 +00:00
|
|
|
|
|
|
|
image weather_blizzard_fx:
|
2022-12-17 21:57:06 +00:00
|
|
|
animation
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/blizzard_01.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.05
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/blizzard_02.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.05
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/blizzard_03.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.05
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/blizzard_04.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.05
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/blizzard_05.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.05
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/blizzard_06.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.05
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/blizzard_07.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.05
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/blizzard_08.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.05
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/blizzard_09.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.05
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/blizzard_10.webp"
|
2022-05-16 23:48:22 +00:00
|
|
|
pause.05
|
|
|
|
repeat
|
|
|
|
|
2024-03-24 17:54:06 +00:00
|
|
|
image weather blizzard = Fixed("weather overcast", "weather_blizzard_fx", fit_first=True) # final
|
2022-05-31 14:31:41 +00:00
|
|
|
|
|
|
|
image weather_storm_fx:
|
2022-12-17 21:57:06 +00:00
|
|
|
animation
|
2022-05-31 14:31:41 +00:00
|
|
|
|
2024-03-24 17:54:06 +00:00
|
|
|
contains:
|
2022-12-17 21:57:06 +00:00
|
|
|
animation
|
2022-05-31 14:31:41 +00:00
|
|
|
pause 20
|
2024-03-24 17:53:07 +00:00
|
|
|
Null()
|
2022-05-31 14:31:41 +00:00
|
|
|
pause.1
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/lightning_02.webp"
|
2022-05-31 14:31:41 +00:00
|
|
|
pause.1
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/lightning_03.webp"
|
2022-05-31 14:31:41 +00:00
|
|
|
pause.1
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/lightning_04.webp"
|
2022-05-31 14:31:41 +00:00
|
|
|
pause.1
|
2024-03-24 17:53:07 +00:00
|
|
|
Null()
|
2022-05-31 14:31:41 +00:00
|
|
|
pause.1
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/lightning_06.webp"
|
2022-05-31 14:31:41 +00:00
|
|
|
pause.1
|
2024-03-24 17:53:07 +00:00
|
|
|
Null()
|
2022-05-31 14:31:41 +00:00
|
|
|
pause.1
|
2023-03-28 19:22:06 +00:00
|
|
|
"images/rooms/main_room/weather/lightning_06.webp"
|
2022-05-31 14:31:41 +00:00
|
|
|
pause.1
|
2024-03-24 17:53:07 +00:00
|
|
|
Null()
|
2022-05-31 14:31:41 +00:00
|
|
|
pause 20
|
|
|
|
repeat
|
|
|
|
|
2024-03-24 17:54:06 +00:00
|
|
|
contains:
|
|
|
|
"weather_rain_fx"
|
2022-05-31 14:31:41 +00:00
|
|
|
|
2024-03-24 17:57:18 +00:00
|
|
|
image weather storm = Fixed("weather overcast", "weather_storm_fx", fit_first=True) # final
|