2 #import stdlib.ai.wander
11 #ai_wizard = stdlib_ai_wander("entities/wizard/wizard.xml", "down", 6, 3, 0.0, 1.0, 4)
13 cloud
= Area
.new_overlay("entities/cloud/cloud.xml", 11, 2, 10.0, "down")
17 global drinking
, duration
, max_alpha
19 progress
= well_timer
.count
/ duration
21 overlay_alpha
= int(2 * max_alpha
* progress
)
23 overlay_alpha
= int(2 * max_alpha
* (1 - progress
))
27 Area
.color_overlay(255, 255, 255, overlay_alpha
) # white overlay
30 global drinking
, well_timer
34 well_timer
= new_timer()
35 well_timer
.running
= True
37 areas
.sounds
.sound_splash()