From 63f8358ce6fe8431dacbfc4dba40ce8642a34af7 Mon Sep 17 00:00:00 2001 From: Guillaume Piolat Date: Mon, 1 May 2023 13:45:49 +0200 Subject: [PATCH] =?UTF-8?q?Essaie=20de=20lumi=C3=A8re=20port=C3=A9es=20par?= =?UTF-8?q?=20la=20princesse.=20Une=20de=20vignettage,=20et=20l'autre=20co?= =?UTF-8?q?mme=20un=20bougie=20l=C3=A9g=C3=A8re.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- princesse.tscn | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/princesse.tscn b/princesse.tscn index 50f6740..01ad895 100644 --- a/princesse.tscn +++ b/princesse.tscn @@ -232,6 +232,29 @@ _data = { "death": SubResource("Animation_uo4aj") } +[sub_resource type="Gradient" id="Gradient_wf4ie"] +offsets = PackedFloat32Array(0, 0.313609, 0.994083, 1) +colors = PackedColorArray(0.411765, 0.6, 0.956863, 0.105882, 0.741176, 0.839216, 0.984314, 0.219608, 0.980392, 1, 0.803922, 1, 1, 0.592157, 0.282353, 0) + +[sub_resource type="GradientTexture2D" id="GradientTexture2D_t1uxd"] +gradient = SubResource("Gradient_wf4ie") +width = 1024 +height = 1024 +fill = 1 +fill_from = Vector2(0.482759, 0.508621) + +[sub_resource type="Gradient" id="Gradient_srny4"] +interpolation_mode = 2 +offsets = PackedFloat32Array(0, 0.0828402, 0.698225) +colors = PackedColorArray(0.61339, 0.61339, 0.61339, 1, 0.47788, 0.47788, 0.47788, 1, 0, 0, 0, 1) + +[sub_resource type="GradientTexture2D" id="GradientTexture2D_irtut"] +gradient = SubResource("Gradient_srny4") +width = 512 +height = 512 +fill = 1 +fill_from = Vector2(0.5, 0.5) + [node name="Princesse" type="CharacterBody2D"] collision_mask = 113 slide_on_ceiling = false @@ -272,6 +295,22 @@ libraries = { "": SubResource("AnimationLibrary_hxxp0") } +[node name="vignetting" type="PointLight2D" parent="."] +position = Vector2(0, -12) +scale = Vector2(0.79275, 0.765625) +energy = 1.8 +blend_mode = 1 +texture = SubResource("GradientTexture2D_t1uxd") +texture_scale = 2.5 + +[node name="light" type="PointLight2D" parent="."] +position = Vector2(3, -0.187502) +scale = Vector2(0.628453, 0.586182) +color = Color(1, 0.85098, 0.862745, 1) +energy = 0.4 +texture = SubResource("GradientTexture2D_irtut") +texture_scale = 1.2 + [connection signal="cheese_collected" from="." to="." method="reload_fart"] [connection signal="animation_finished" from="Death player" to="." method="_on_death_player_animation_finished"] [connection signal="animation_finished" from="Death player" to="." method="reload_scene"]