Dev Beta 1.1
* Ajout d'une météo aléatoire (pluie, brouillard, vent) * Ajour d'un bouton pour un formulaire de playtest
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
extends CanvasLayer
|
||||
class_name PassDay
|
||||
|
||||
const BLUR_STRENGTH = 10
|
||||
const BLUR_MIX_PERCENTAGE = 0.8
|
||||
const TIME_BY_ENERGY = 0.3
|
||||
const TIME_MARGIN = 0.2
|
||||
|
||||
@@ -26,8 +24,8 @@ var is_animation_disappeared := false
|
||||
func _ready():
|
||||
hide()
|
||||
setup_energy_values()
|
||||
%Blur.show()
|
||||
%PassDayInfo.hide()
|
||||
%Background.modulate.a = 0.
|
||||
|
||||
func _process(delta):
|
||||
if recharging:
|
||||
@@ -73,47 +71,34 @@ func pass_day_animation():
|
||||
|
||||
func appear():
|
||||
show()
|
||||
add_tween(
|
||||
"blur_mix_percentage",
|
||||
%Blur,
|
||||
BLUR_MIX_PERCENTAGE,
|
||||
0.5
|
||||
)
|
||||
add_tween(
|
||||
"modulate:a",
|
||||
%NightAnimation,
|
||||
%Background,
|
||||
1.,
|
||||
0.5
|
||||
)
|
||||
await add_tween(
|
||||
"blur_strength",
|
||||
%Blur,
|
||||
BLUR_STRENGTH,
|
||||
"modulate:a",
|
||||
%NightAnimation,
|
||||
1.,
|
||||
0.5
|
||||
).finished
|
||||
|
||||
|
||||
await %PassDayInfoAnimationPlayer.appear()
|
||||
|
||||
func disappear():
|
||||
await %PassDayInfoAnimationPlayer.disappear()
|
||||
add_tween(
|
||||
"blur_mix_percentage",
|
||||
%Blur,
|
||||
"modulate:a",
|
||||
%Background,
|
||||
0.0,
|
||||
0.5
|
||||
)
|
||||
add_tween(
|
||||
await add_tween(
|
||||
"modulate:a",
|
||||
%NightAnimation,
|
||||
0.,
|
||||
0.5
|
||||
)
|
||||
await add_tween(
|
||||
"blur_strength",
|
||||
%Blur,
|
||||
0.1,
|
||||
0.5
|
||||
).finished
|
||||
|
||||
hide()
|
||||
|
||||
Reference in New Issue
Block a user