niveau_0: ajouter des lumières!

Le niveau 0 a maintenant des lumières. Rajout des torches et des
fenêtres.
This commit is contained in:
Thomas Lavocat
2023-05-28 22:01:59 +02:00
parent e011094b98
commit 52080ac818
10 changed files with 384 additions and 29 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=43 format=3 uid="uid://dv0mokf4eogm7"]
[gd_scene load_steps=42 format=3 uid="uid://dv0mokf4eogm7"]
[ext_resource type="Script" path="res://princesse.gd" id="1_dkp7s"]
[ext_resource type="Texture2D" uid="uid://dr7fyh2rufsyj" path="res://sprite/princess_falling_direction.png" id="2_hholp"]
@@ -7,6 +7,7 @@
[ext_resource type="Texture2D" uid="uid://b1624w7katr05" path="res://sprite/princess_jumping_impulsion.png" id="5_njcte"]
[ext_resource type="Texture2D" uid="uid://c2xtcu5ysgi7o" path="res://sprite/princess_jumping.png" id="6_srvje"]
[ext_resource type="Texture2D" uid="uid://d23lmsjrjw1mk" path="res://sprite/princess_wall_stick.png" id="7_8dix4"]
[ext_resource type="Texture2D" uid="uid://dgsn3ixn46anc" path="res://sprite/light.png" id="8_8c83t"]
[sub_resource type="AtlasTexture" id="AtlasTexture_i248f"]
atlas = ExtResource("2_hholp")
@@ -240,7 +241,7 @@ animations = [{
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_6r7th"]
radius = 4.33333
height = 39.3333
height = 42.0
[sub_resource type="Animation" id="Animation_uo4aj"]
resource_name = "death"
@@ -286,18 +287,6 @@ 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"]
scale = Vector2(0.6, 0.6)
collision_mask = 241
@@ -319,7 +308,7 @@ target_position = Vector2(-6, 0)
collision_mask = 16
[node name="wall_detect_left2" type="RayCast2D" parent="."]
position = Vector2(0, -16)
position = Vector2(0, -12)
target_position = Vector2(-6, 0)
collision_mask = 16
@@ -329,17 +318,17 @@ target_position = Vector2(-6, 0)
collision_mask = 16
[node name="wall_detect_right" type="RayCast2D" parent="."]
target_position = Vector2(8, 0)
target_position = Vector2(6, 0)
collision_mask = 16
[node name="wall_detect_right2" type="RayCast2D" parent="."]
position = Vector2(0, -16)
target_position = Vector2(8, 0)
position = Vector2(0, -12)
target_position = Vector2(6, 0)
collision_mask = 16
[node name="wall_detect_right3" type="RayCast2D" parent="."]
position = Vector2(0, 22)
target_position = Vector2(8, 0)
target_position = Vector2(6, 0)
collision_mask = 16
[node name="Camera2D" type="Camera2D" parent="."]
@@ -350,7 +339,7 @@ drag_horizontal_enabled = true
drag_vertical_enabled = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 5)
position = Vector2(0, 4)
shape = SubResource("CapsuleShape2D_6r7th")
[node name="ground_far_detect" type="RayCast2D" parent="."]
@@ -369,17 +358,19 @@ libraries = {
}
[node name="vignetting" type="PointLight2D" parent="."]
visible = false
energy = 1.8
blend_mode = 1
texture = SubResource("GradientTexture2D_t1uxd")
texture_scale = 1.85
[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.29
position = Vector2(0, 1.66669)
scale = Vector2(0.163303, 0.193631)
energy = 0.74
blend_mode = 2
shadow_enabled = true
texture = ExtResource("8_8c83t")
texture_scale = 0.44
[connection signal="animation_finished" from="Death player" to="." method="_on_death_player_animation_finished"]