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:
2026-05-03 17:19:15 +02:00
parent 3a4c62694a
commit e7da19cb15
25 changed files with 394 additions and 121 deletions

View File

@@ -1,8 +1,6 @@
[gd_scene format=3 uid="uid://yk78ubpu5ghq"]
[ext_resource type="Script" uid="uid://2qomrdxbvxqa" path="res://gui/game/pass_day/scripts/pass_day.gd" id="1_0pm4g"]
[ext_resource type="Shader" uid="uid://cuni3ggtw2uuy" path="res://common/vfx/materials/shaders/blur.gdshader" id="1_v570a"]
[ext_resource type="Script" uid="uid://i7glvbe8pdr8" path="res://gui/game/pass_day/scripts/pass_day_background.gd" id="2_bhfpo"]
[ext_resource type="PackedScene" uid="uid://brfsapvj2quxm" path="res://gui/game/energy_info/energy_info.tscn" id="2_feyaf"]
[ext_resource type="Theme" uid="uid://5au2k3vf2po3" path="res://gui/ressources/menu.tres" id="4_0pm4g"]
[ext_resource type="Script" uid="uid://0dhj8sdpil7q" path="res://gui/tools/control_animation_player.gd" id="5_dqmg8"]
@@ -10,11 +8,6 @@
[ext_resource type="FontFile" uid="uid://qt80w6o01q5s" path="res://gui/ressources/fonts/TitanOne-Regular.ttf" id="7_h2bel"]
[ext_resource type="Texture2D" uid="uid://cihiibon53147" path="res://gui/game/pass_day/assets/day_night_sprite.svg" id="7_m84xg"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_27lg1"]
shader = ExtResource("1_v570a")
shader_parameter/strength = 0.0
shader_parameter/mix_percentage = 0.0
[sub_resource type="LabelSettings" id="LabelSettings_rn4dm"]
font = ExtResource("7_h2bel")
font_size = 25
@@ -60,22 +53,21 @@ _data = {
[node name="PassDay" type="CanvasLayer" unique_id=335255544]
layer = 3
visible = false
script = ExtResource("1_0pm4g")
[node name="Blur" type="ColorRect" parent="." unique_id=546890405]
[node name="Background" type="ColorRect" parent="." unique_id=527935985]
unique_name_in_owner = true
physics_interpolation_mode = 0
material = SubResource("ShaderMaterial_27lg1")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
script = ExtResource("2_bhfpo")
color = Color(0.0627451, 0.05882353, 0.16862746, 1)
[node name="PassDayInfo" type="VBoxContainer" parent="." unique_id=833110506]
unique_name_in_owner = true
visible = false
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0

View File

@@ -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()