diff --git a/items/fenêtre.tscn b/items/fenêtre.tscn new file mode 100644 index 0000000..b1b0ace --- /dev/null +++ b/items/fenêtre.tscn @@ -0,0 +1,24 @@ +[gd_scene load_steps=3 format=3 uid="uid://cikp03d4p47s3"] + +[ext_resource type="Texture2D" uid="uid://dgsn3ixn46anc" path="res://sprite/light.png" id="1_vhw6h"] + +[sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_vi24c"] +polygon = PackedVector2Array(1, -5, -16, 11, -16, 64, -15, 64, -15, 11, 1, -4, 17, 11, 17, 64, 18, 64, 18, 11) + +[node name="Fenêtre" type="Node2D"] +position = Vector2(-95, -154) + +[node name="PointLight2D" type="PointLight2D" parent="."] +position = Vector2(-1, -31) +scale = Vector2(0.0587078, 0.0472203) +energy = 1.63 +blend_mode = 2 +shadow_enabled = true +shadow_filter = 1 +shadow_filter_smooth = 11.0 +texture = ExtResource("1_vhw6h") +texture_scale = 5.5 + +[node name="LightOccluder2D" type="LightOccluder2D" parent="."] +position = Vector2(-2, -34) +occluder = SubResource("OccluderPolygon2D_vi24c") diff --git a/items/torche.gd b/items/torche.gd new file mode 100644 index 0000000..431e183 --- /dev/null +++ b/items/torche.gd @@ -0,0 +1,7 @@ +extends Node2D + +@onready var anim := $AnimationPlayer as AnimationPlayer + + +func _ready() -> void: + anim.play("DEFAULT") diff --git a/items/torche.tscn b/items/torche.tscn new file mode 100644 index 0000000..bdefe69 --- /dev/null +++ b/items/torche.tscn @@ -0,0 +1,138 @@ +[gd_scene load_steps=16 format=3 uid="uid://dichswip4ynan"] + +[ext_resource type="Texture2D" uid="uid://dgsn3ixn46anc" path="res://sprite/light.png" id="1_q8iya"] +[ext_resource type="Script" path="res://items/torche.gd" id="1_x7gvi"] +[ext_resource type="Texture2D" uid="uid://dpy5ui56yufab" path="res://sprite/torch.png" id="2_pxxox"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_aylw7"] +atlas = ExtResource("2_pxxox") +region = Rect2(0, 0, 30, 80) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dgmn0"] +atlas = ExtResource("2_pxxox") +region = Rect2(30, 0, 30, 80) + +[sub_resource type="AtlasTexture" id="AtlasTexture_wsmmi"] +atlas = ExtResource("2_pxxox") +region = Rect2(60, 0, 30, 80) + +[sub_resource type="AtlasTexture" id="AtlasTexture_rdcj2"] +atlas = ExtResource("2_pxxox") +region = Rect2(90, 0, 30, 80) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1kx36"] +atlas = ExtResource("2_pxxox") +region = Rect2(120, 0, 30, 80) + +[sub_resource type="AtlasTexture" id="AtlasTexture_v33ms"] +atlas = ExtResource("2_pxxox") +region = Rect2(150, 0, 30, 80) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1qp15"] +atlas = ExtResource("2_pxxox") +region = Rect2(180, 0, 30, 80) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3v3ae"] +atlas = ExtResource("2_pxxox") +region = Rect2(210, 0, 30, 80) + +[sub_resource type="AtlasTexture" id="AtlasTexture_vh34d"] +atlas = ExtResource("2_pxxox") +region = Rect2(240, 0, 30, 80) + +[sub_resource type="SpriteFrames" id="SpriteFrames_4ltyi"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_aylw7") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_dgmn0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_wsmmi") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_rdcj2") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1kx36") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_v33ms") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1qp15") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_3v3ae") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_vh34d") +}], +"loop": true, +"name": &"default", +"speed": 5.0 +}] + +[sub_resource type="Animation" id="Animation_yxolu"] +resource_name = "DEFAULT" +length = 2.0 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("PointLight2D:offset") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 1.1, 2), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 0, +"values": [Vector2(0, 0), Vector2(10, -10), Vector2(0, 0)] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("PointLight2D:color") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0, 1.1, 2), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 0, +"values": [Color(1, 0.890196, 0.796078, 1), Color(0.921569, 0.658824, 0.490196, 1), Color(1, 0.890196, 0.796078, 1)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_7jwq8"] +_data = { +"DEFAULT": SubResource("Animation_yxolu") +} + +[node name="Torche" type="Node2D"] +position = Vector2(-223, -32) +script = ExtResource("1_x7gvi") + +[node name="PointLight2D" type="PointLight2D" parent="."] +position = Vector2(-0.499997, 4) +scale = Vector2(0.139648, 0.136719) +color = Color(1, 0.838671, 0.693027, 1) +range_z_min = -2048 +range_z_max = 2048 +shadow_enabled = true +texture = ExtResource("1_q8iya") +offset = Vector2(2.57627, -2.57627) +texture_scale = 1.67 + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] +z_index = -1 +position = Vector2(1.52588e-05, 0) +scale = Vector2(0.25, 0.25) +sprite_frames = SubResource("SpriteFrames_4ltyi") +autoplay = "default" +frame_progress = 0.919544 + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +"": SubResource("AnimationLibrary_7jwq8") +} diff --git a/levels/level_0.tscn b/levels/level_0.tscn index 3cbdd7b..36aa599 100644 --- a/levels/level_0.tscn +++ b/levels/level_0.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=8 format=3 uid="uid://62xywwxmcxpq"] +[gd_scene load_steps=16 format=3 uid="uid://62xywwxmcxpq"] [ext_resource type="Script" path="res://levels/level.gd" id="1_4b8y6"] [ext_resource type="TileSet" uid="uid://cx4160r6lbeb3" path="res://levels/global_tileset.tres" id="1_obr5c"] @@ -7,6 +7,26 @@ [ext_resource type="PackedScene" uid="uid://4pdhps0lgy4o" path="res://items/door.tscn" id="5_ykuit"] [ext_resource type="Texture2D" uid="uid://bi6bm3da7yow" path="res://tutos/A.png" id="6_6nqj5"] [ext_resource type="Texture2D" uid="uid://bfondbn7osj0j" path="res://tutos/L.png" id="7_fg8yr"] +[ext_resource type="PackedScene" uid="uid://dichswip4ynan" path="res://items/torche.tscn" id="9_q6pbh"] +[ext_resource type="PackedScene" uid="uid://cikp03d4p47s3" path="res://items/fenêtre.tscn" id="9_u1vvx"] + +[sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_yiauf"] +polygon = PackedVector2Array(-272, 32, -272, 80, 590, 80, 591, -111, 558, -111, 545, -95, 514, -95, 514, -14, 478, -14, 478, -159, 466, -159, 466, -14, 429, -14, 430, -211, 514, -211, 514, -147, 526, -147, 526, -211, 562, -211, 562, -162, 576, -147, 592, -147, 591, -254, 381, -254, 369, -238, 338, -238, 338, -178, 370, -146, 370, -31, 322, 15, 322, 31, 111, 32, 111, 16, 97, 16, -258, 16, -258, -371, 497, -371, 560, -307, 592, -307, 592, -385, -272, -385, -272, 22) + +[sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_hnpsd"] +polygon = PackedVector2Array(-30, -2, 17, -2, 76, 56, 16, -1, -30, -1) + +[sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_k2wv8"] +polygon = PackedVector2Array(-20, 0, 4, 0, 71, 0, 71, 2, -19, 2) + +[sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_1qo8x"] +polygon = PackedVector2Array(-19, -12, 30, -12, 86, 47, 28, -10) + +[sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_d6h7l"] +polygon = PackedVector2Array(-9, -10, 85, -12, 85, 14, 78, -7, 25.2107, -9.37253) + +[sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_lat02"] +polygon = PackedVector2Array(-5, -11, 83, -11, 45, -5) [node name="Node2D" type="Node2D"] script = ExtResource("1_4b8y6") @@ -17,7 +37,7 @@ format = 2 layer_0/tile_data = PackedInt32Array(196605, 65537, 1, 196606, 65537, 1, 196607, 65537, 1, 131072, 65537, 1, 131073, 65537, 1, 131074, 65537, 1, 131075, 65537, 1, 131076, 65537, 1, 131077, 65537, 1, 131078, 65537, 1, 131079, 65537, 1, 131080, 65537, 1, 131081, 65537, 1, 131082, 65537, 1, 131083, 65537, 1, 131084, 65537, 1, 196594, 65537, 1, 196595, 65537, 1, 196596, 65537, 1, 196597, 65537, 1, 196598, 65537, 1, 196599, 65537, 1, 196600, 65537, 1, 196601, 65537, 1, 196602, 65537, 1, 196603, 65537, 1, 196604, 65537, 1, 131085, 65537, 1, 131086, 65537, 1, 131087, 65537, 1, 131088, 65537, 1, 131089, 65537, 1, 131090, 655361, 2, 131091, 786433, 7, 131092, 65537, 7, 131093, 65537, 7, 131094, 65537, 7, 131095, 65537, 7, 131096, 196609, 9, 131097, 458753, 11, 131057, 65537, 0, 196593, 65537, 1, 131098, 524289, 11, 26, 65537, 7, -65510, 65537, 7, -917478, 655361, 8, -983014, 65537, 7, -1048550, 458753, 10, 131066, 65537, 0, 131067, 65537, 0, 131068, 65537, 0, 65539, 65537, 0, 65540, 65537, 0, 65541, 65537, 0, 65542, 262145, 0, 65543, 196610, 5, 65544, 262146, 5, 65545, 327682, 5, 65546, 393218, 5, 65547, 196610, 5, 65548, 262146, 5, 65549, 327682, 5, 65550, 393218, 5, 65551, 196610, 5, 65552, 262146, 5, 65553, 327682, 5, 65554, 393218, 5, 65555, 196610, 5, 65556, 1, 7, 131069, 65537, 0, 131070, 65537, 0, 131071, 65537, 0, 65536, 65537, 0, 65537, 65537, 0, 65538, 65537, 0, 20, 1, 6, -65515, 1, 6, -131050, 1, 9, -262121, 1, 7, -327657, 1, 7, -393193, 1, 7, -458729, 1, 7, -524265, 1, 7, -589801, 1, 7, -655337, 65537, 7, -786411, 1, 7, -720874, 720897, 8, -720875, 1, 8, -655338, 1, 8, -1048552, 458753, 10, -1048551, 458753, 10, -917481, 65537, 7, -983017, 65537, 7, -983018, 458753, 10, -983019, 917505, 9, -917483, 1, 7, -851947, 1, 7, -851946, 65537, 7, -917482, 65537, 7, -786410, 65537, 7, -786409, 262145, 9, -851945, 65537, 10, -851944, 196609, 10, -917480, 196609, 9, -983016, 65537, 7, -983015, 65537, 7, -917479, 65537, 9, -786408, 196609, 11, -720872, 65537, 7, -720873, 65537, 7, -655336, 65537, 7, -589800, 65537, 7, -524264, 65537, 7, -458728, 65537, 7, -393192, 65537, 7, -327656, 262145, 9, -262120, 65537, 7, -196584, 65537, 7, -131048, 65537, 7, -131049, 720897, 9, -65513, 65537, 7, -65514, 720897, 9, 21, 720897, 9, 24, 65537, 7, -65512, 65537, 7, -65511, 65537, 7, 25, 65537, 7, -1048549, 458753, 10, -983013, 65537, 7, -917477, 65537, 8, -65509, 65537, 6, 27, 65537, 7, 131099, 65537, 7, 196635, 65537, 11, 196634, 393217, 11, 196633, 196609, 10, 196632, 196609, 9, 196631, 262145, 9, 196630, 65537, 7, 196629, 65537, 7, 196628, 65537, 7, 196626, 786433, 7, 196625, 655361, 2, 196624, 65537, 1, 196623, 65537, 1, 196622, 65537, 1, 196621, 65537, 1, 196620, 65537, 1, 196619, 65537, 1, 196618, 65537, 1, 196617, 65537, 1, 196616, 65537, 1, 196615, 65537, 1, 196614, 65537, 1, 196613, 65537, 1, 196612, 65537, 1, 196611, 65537, 1, 196610, 65537, 1, 196609, 65537, 1, 196608, 65537, 1, 262143, 65537, 1, 262142, 65537, 1, 262141, 65537, 1, 262140, 65537, 1, 262139, 65537, 1, 262138, 65537, 1, 262137, 65537, 1, 262136, 65537, 1, 262135, 65537, 1, 262134, 65537, 1, 262133, 65537, 1, 262132, 65537, 1, 262131, 65537, 1, 262130, 65537, 1, 262129, 65537, 1, 262128, 65537, 1, 196592, 65537, 1, 131056, 65537, 0, 131055, 851969, 8, 196591, 65537, 1, 262127, 65537, 1, 327663, 65537, 1, 327664, 65537, 1, 327665, 65537, 1, 327666, 65537, 1, 327667, 65537, 1, 327668, 65537, 1, 327669, 65537, 1, 327670, 65537, 1, 327671, 65537, 1, 327672, 65537, 1, 327673, 65537, 1, 327674, 65537, 1, 327675, 65537, 1, 327676, 65537, 1, 327677, 65537, 1, 327678, 65537, 1, 327679, 65537, 1, 262144, 65537, 1, 262145, 65537, 1, 262146, 65537, 1, 262147, 65537, 1, 262148, 65537, 1, 262149, 65537, 1, 262150, 65537, 1, 262151, 65537, 1, 262152, 65537, 1, 262153, 65537, 1, 262154, 65537, 1, 262155, 65537, 1, 262156, 65537, 1, 262157, 65537, 1, 262158, 65537, 1, 262159, 65537, 1, 262160, 65537, 1, 262161, 786433, 7, 262162, 720897, 9, 262163, 65537, 7, 262164, 65537, 7, 262165, 65537, 7, 262166, 65537, 7, 262167, 65537, 7, 262168, 262145, 9, 262169, 196609, 11, 262170, 262145, 11, 262171, 65537, 7, 262172, 65537, 7, 196636, 65537, 7, 131100, 65537, 7, 65564, 65537, 7, 28, 65537, 7, -65508, 65537, 6, -917476, 65537, 8, -983012, 65537, 7, -1048548, 458753, 10, -1048547, 458753, 10, -1048546, 458753, 10, -983011, 65537, 7, -983010, 65537, 7, -917475, 65537, 8, -917474, 65537, 8, -65506, 65537, 6, 30, 65537, 7, 65566, 65537, 7, 131102, 65537, 7, 196638, 65537, 7, 262174, 65537, 7, -65507, 655361, 11, 29, 262145, 9, 65565, 65537, 7, 131101, 65537, 7, 196637, 65537, 7, 262173, 65537, 7, 262175, 65537, 7, 196639, 65537, 7, 131103, 65537, 7, 65567, 65537, 7, 31, 65537, 7, -65505, 65537, 6, -917473, 65537, 8, -983009, 65537, 7, -1048545, 458753, 10, -1048544, 458753, 10, -983008, 65537, 7, -917472, 720897, 10, -65504, 720897, 9, 32, 65537, 7, 65568, 65537, 7, 131104, 65537, 7, 196640, 65537, 7, 262176, 65537, 7, -1048543, 458753, 10, -983007, 65537, 7, -917471, 65537, 8, -65503, 262145, 9, 33, 262145, 9, 65569, 65537, 7, 131105, 65537, 7, 196641, 65537, 7, 262177, 65537, 7, -1048542, 458753, 10, -983006, 65537, 7, -917470, 65537, 8, -65502, 65537, 7, 34, 65537, 7, 65570, 65537, 7, 131106, 65537, 7, 196642, 65537, 7, 262178, 65537, 7, -1048541, 458753, 10, -983005, 65537, 7, -917469, 720897, 8, -786397, 1, 7, -720861, 1, 7, -655325, 1, 11, -458717, 458753, 10, -393181, 65537, 7, -327645, 262145, 9, -262109, 196609, 11, -196573, 196609, 9, -131037, 65537, 10, -65501, 65537, 7, 35, 262145, 9, 65571, 65537, 7, 131107, 65537, 7, 196643, 65537, 7, 262179, 65537, 7, -1048540, 458753, 10, -983004, 65537, 7, -917468, 65537, 7, -786396, 65537, 7, -720860, 65537, 7, -655324, 65537, 8, -458716, 458753, 10, -393180, 65537, 11, -327644, 262145, 9, -262108, 65537, 7, -196572, 65537, 9, -131036, 65537, 7, -65500, 65537, 7, 36, 65537, 7, 65572, 65537, 7, 131108, 65537, 7, 196644, 65537, 7, 262180, 65537, 7, -851943, 262145, 10, -786407, 65537, 11, -720871, 65537, 7, -655335, 65537, 7, -589799, 65537, 7, -524263, 65537, 7, -458727, 262145, 9, -393191, 65537, 7, -327655, 65537, 7, -262119, 65537, 7, -196583, 262145, 9, -131047, 65537, 7, -393183, 458753, 10, -327648, 1, 7, -327647, 196609, 9, -327646, 65537, 7, -393182, 720897, 9, -262112, 1, 7, -196576, 1, 7, -131040, 1, 7, -262111, 65537, 7, -196575, 65537, 11, -131039, 65537, 7, -262110, 196609, 9, -196574, 1, 10, -131038, 196609, 9, -131043, 524289, 6, -196579, 524289, 6, -262115, 524289, 6, -327651, 524289, 6, -393187, 524289, 6, -458723, 524289, 6, -131046, 131073, 7, -196582, 983041, 11, -262118, 983041, 11, -327654, 983041, 11, -393190, 983041, 11, -458726, 983041, 11, -524262, 983041, 11, -589798, 983041, 11, -655334, 983041, 11, -720870, 983041, 11, -786406, 131073, 7, -851942, 131073, 7, -655328, 327681, 7, -720864, 524289, 6, -786400, 524289, 6, -851936, 524289, 6, -589795, 524289, 6, -524259, 524289, 6, -131042, 589826, 5, -131041, 589826, 5, -131045, 589826, 5, -131044, 589826, 5, -655331, 393217, 7, -393184, 917505, 9, -131063, 65537, 7, -65526, 65537, 8, -196593, 262145, 6, -131058, 65537, 8, -65523, 327681, 8, -65525, 65537, 8, -65524, 65537, 8, -196599, 720897, 7, -131062, 1, 10, -196594, 65537, 6, -131059, 655361, 8, -131061, 131073, 10, -131060, 1, 10, -196598, 458753, 10, -196597, 458753, 10, -196596, 458753, 10, -196595, 65537, 6, 131058, 65537, 0, 131059, 65537, 0, 131061, 65537, 0, 131060, 65537, 0, 131062, 65537, 0, 131063, 65537, 0, 131064, 65537, 0, 131065, 65537, 0, -1048553, 720897, 7, 6, 720897, 6, -65529, 720897, 7, -131064, 720897, 7, -131057, 262145, 7, 7, 131073, 11, -65528, 65537, 8, -65527, 65537, 8, -131069, 655361, 6, -196606, 655361, 7, -262143, 655361, 7, -327680, 655361, 7, -131070, 65537, 8, -196607, 196609, 9, -262144, 65537, 7, -262145, 458753, 10, -262146, 458753, 10, -262147, 917505, 9, -196611, 1, 7, -196610, 196609, 10, -196609, 262145, 10, -196608, 65537, 7, -131073, 262145, 11, -131074, 196609, 11, -131075, 1, 7, -65539, 196609, 7, -65538, 65537, 8, -65537, 65537, 8, -131072, 65537, 8, -131071, 65537, 8, -524302, 196609, 6, -458766, 1, 7, -393230, 1, 7, -327694, 196609, 7, -524301, 458753, 10, -458765, 65537, 7, -393229, 262145, 9, -327693, 65537, 8, -524300, 458753, 10, -458764, 65537, 7, -393228, 65537, 7, -327692, 65537, 8, -524299, 655361, 7, -458763, 196609, 9, -393227, 65537, 7, -327691, 65537, 8, -458762, 655361, 7, -393226, 65537, 7, -327690, 65537, 8, -393225, 655361, 7, -327689, 65537, 8, -327688, 655361, 6, -720905, 720897, 6, -786440, 720897, 7, -720904, 131073, 11, -851975, 720897, 7, -786439, 65537, 8, -917510, 720897, 7, -851974, 65537, 7, -786438, 65537, 8, -917509, 458753, 10, -851973, 196609, 9, -786437, 65537, 8, -917508, 458753, 10, -851972, 262145, 9, -786436, 65537, 8, -917507, 65537, 6, -851971, 1, 10, -786435, 65537, 8, -917506, 65537, 6, -851970, 655361, 8, -786434, 327681, 8, -917505, 458753, 10, -851969, 65537, 8, -983040, 983041, 9, -917504, 262145, 7, -786433, 655362, 5, -851968, 655362, 5, -65522, 655362, 5, -65521, 655362, 5, -1114108, 786433, 10, -1048572, 327681, 7, -1114107, 983041, 6, -1048571, 655362, 5, -1114106, 983041, 6, -1048570, 655362, 5, -1114105, 983041, 6, -1048569, 655362, 5, -1114104, 983041, 6, -1048568, 655362, 5, -1114103, 851969, 10, -1048567, 327681, 7, -1245171, 786433, 10, -1179635, 327681, 7, -1245170, 983041, 6, -1179634, 655362, 5, -1245169, 983041, 6, -1179633, 655362, 5, -1245168, 983041, 6, -1179632, 655362, 5, -1245167, 983041, 6, -1179631, 655362, 5, -1245166, 851969, 10, -1179630, 327681, 7, -1507345, 131073, 7, -1441809, 131073, 7, -1376273, 131073, 7, -1310737, 131073, 7, -1245201, 131073, 7, -1179665, 131073, 7, -1114129, 131073, 7, -1048593, 131073, 7, -983057, 131073, 7, -917521, 131073, 7, -851985, 131073, 7, -786449, 131073, 7, -720913, 131073, 7, -655377, 131073, 7, -589841, 131073, 7, -524305, 131073, 7, -458769, 131073, 7, -393233, 131073, 7, -327697, 131073, 7, -262161, 131073, 7, -196625, 131073, 7, -131089, 131073, 7, -65553, 131073, 7, -17, 131073, 7, 65519, 131073, 7, -1507344, 65537, 8, -1507343, 65537, 8, -1507342, 65537, 8, -1507341, 65537, 8, -1507340, 65537, 8, -1507339, 65537, 8, -1507338, 65537, 8, -1507337, 65537, 8, -1507336, 65537, 8, -1507335, 65537, 8, -1507334, 65537, 8, -1507333, 65537, 8, -1507332, 65537, 8, -1507331, 65537, 8, -1507330, 65537, 8, -1507329, 65537, 8, -1572864, 65537, 8, -1572863, 65537, 8, -1572862, 65537, 8, -1572861, 65537, 8, -1572860, 65537, 8, -1572859, 65537, 8, -1572858, 65537, 8, -1572857, 65537, 8, -1572856, 65537, 8, -1572855, 65537, 8, -1572854, 65537, 8, -1572853, 65537, 8, -1572852, 65537, 8, -1572851, 65537, 8, -1572850, 65537, 8, -1572849, 65537, 8, -1572848, 65537, 8, -1572847, 65537, 8, -1572846, 65537, 8, -1572845, 65537, 8, -1572844, 65537, 8, -1572843, 65537, 8, -1572842, 65537, 8, -1572841, 65537, 8, -1572840, 65537, 8, -1572839, 65537, 8, -1572838, 65537, 8, -1572837, 65537, 8, -1572836, 65537, 8, -1572835, 65537, 8, -1572834, 65537, 8, -1572833, 65537, 8, -1572832, 65537, 7, -1572831, 65537, 7, -1572830, 65537, 7, -1572829, 65537, 7, -1572828, 65537, 7, -1310686, 1, 8, -1376223, 1, 8, -1441760, 1, 8, -1507297, 1, 8, -1507296, 65537, 7, -1507295, 65537, 7, -1507294, 65537, 7, -1507293, 65537, 7, -1507292, 65537, 7, -1441759, 65537, 7, -1441758, 65537, 7, -1441757, 65537, 7, -1441756, 65537, 7, -1376222, 65537, 7, -1376221, 65537, 7, -1376220, 65537, 7, -1310685, 65537, 8, -1310684, 65537, 8, -458718, 720897, 7, -196585, 1, 7, -851933, 1, 7, -851932, 65537, 7, 65557, 65537, 7, 22, 65537, 7, 23, 65537, 7, 65560, 65537, 7, 65559, 65537, 7, 65558, 65537, 7, 65561, 65537, 7, 65562, 65537, 7, 65563, 65537, 7, 196627, 720897, 9) layer_1/name = "background" layer_1/enabled = true -layer_1/modulate = Color(0.647059, 0.509804, 0.615686, 0.627451) +layer_1/modulate = Color(0.478431, 0.345098, 0.313726, 1) layer_1/y_sort_enabled = false layer_1/y_sort_origin = 0 layer_1/z_index = -1 @@ -49,7 +69,7 @@ other_side_position = Vector2(-253, -112) position = Vector2(444, -46) [node name="Fromage normal3" parent="fromages" instance=ExtResource("4_w1tg6")] -position = Vector2(9, 1) +position = Vector2(4, -28) [node name="Tuto" type="Node" parent="."] @@ -81,4 +101,111 @@ offset_right = -114.0 offset_bottom = -22.0 text = "Move" +[node name="lumieres" type="Node" parent="."] + +[node name="CanvasModulate" type="CanvasModulate" parent="lumieres"] +show_behind_parent = true +z_as_relative = false +y_sort_enabled = true +position = Vector2(152, -201) +color = Color(0.239216, 0.239216, 0.239216, 1) + +[node name="Fenêtres" type="Node2D" parent="lumieres"] + +[node name="Fenêtre5" parent="lumieres/Fenêtres" instance=ExtResource("9_u1vvx")] +position = Vector2(177, -154) + +[node name="Fenêtre6" parent="lumieres/Fenêtres" instance=ExtResource("9_u1vvx")] +visible = false +position = Vector2(241, -154) + +[node name="Fenêtre4" parent="lumieres/Fenêtres" instance=ExtResource("9_u1vvx")] +position = Vector2(113, -154) + +[node name="Fenêtre3" parent="lumieres/Fenêtres" instance=ExtResource("9_u1vvx")] +position = Vector2(49, -154) + +[node name="Fenêtre2" parent="lumieres/Fenêtres" instance=ExtResource("9_u1vvx")] +position = Vector2(-15, -155) + +[node name="Fenêtre" parent="lumieres/Fenêtres" instance=ExtResource("9_u1vvx")] + +[node name="Torches" type="Node" parent="lumieres"] + +[node name="Torche" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(-131, -33) + +[node name="Torche4" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(249, -63) + +[node name="Torche6" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(-170, -160) + +[node name="Torche7" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(-29, -278) + +[node name="Torche8" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(118, -292) + +[node name="Torche14" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(119, -68) + +[node name="Torche21" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(545, -191) + +[node name="Torche23" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(447, -40) + +[node name="Torche25" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(495, -39) + +[node name="Torche29" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(349, -98) + +[node name="Torche16" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(258, -320) + +[node name="Torche30" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(-227, -309) + +[node name="Torche18" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(355, -258) + +[node name="Torche20" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(507, -291) + +[node name="Torche24" parent="lumieres/Torches" instance=ExtResource("9_q6pbh")] +position = Vector2(455, -186) + +[node name="Oclusions" type="Node2D" parent="lumieres"] + +[node name="LightOccluder2D2" type="LightOccluder2D" parent="lumieres/Oclusions"] +position = Vector2(0, 1) +occluder = SubResource("OccluderPolygon2D_yiauf") + +[node name="LightOccluder2D" type="LightOccluder2D" parent="lumieres/Oclusions"] +z_index = -1 +position = Vector2(-16, -75) +occluder = SubResource("OccluderPolygon2D_hnpsd") + +[node name="LightOccluder2D3" type="LightOccluder2D" parent="lumieres/Oclusions"] +position = Vector2(230, -300) +occluder = SubResource("OccluderPolygon2D_k2wv8") + +[node name="LightOccluder2D4" type="LightOccluder2D" parent="lumieres/Oclusions"] +position = Vector2(86, -269) +occluder = SubResource("OccluderPolygon2D_k2wv8") + +[node name="LightOccluder2D5" type="LightOccluder2D" parent="lumieres/Oclusions"] +position = Vector2(-203, -129) +occluder = SubResource("OccluderPolygon2D_1qo8x") + +[node name="LightOccluder2D6" type="LightOccluder2D" parent="lumieres/Oclusions"] +position = Vector2(168, -34) +occluder = SubResource("OccluderPolygon2D_d6h7l") + +[node name="LightOccluder2D7" type="LightOccluder2D" parent="lumieres/Oclusions"] +position = Vector2(-71, -226) +occluder = SubResource("OccluderPolygon2D_lat02") + [connection signal="princesse_is_dead" from="Princesse" to="." method="_on_princesse_princesse_is_dead"] diff --git a/princesse.tscn b/princesse.tscn index 5878d05..a3c34c0 100644 --- a/princesse.tscn +++ b/princesse.tscn @@ -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"] diff --git a/sprite/light.png b/sprite/light.png new file mode 100644 index 0000000..02a6db5 Binary files /dev/null and b/sprite/light.png differ diff --git a/sprite/light.png.import b/sprite/light.png.import new file mode 100644 index 0000000..510e292 --- /dev/null +++ b/sprite/light.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dgsn3ixn46anc" +path="res://.godot/imported/light.png-6b03d718e6ebfa2b64c18c597d9b562b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://sprite/light.png" +dest_files=["res://.godot/imported/light.png-6b03d718e6ebfa2b64c18c597d9b562b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/sprite/torch.gif b/sprite/torch.gif new file mode 100644 index 0000000..4cb3769 Binary files /dev/null and b/sprite/torch.gif differ diff --git a/sprite/torch.png b/sprite/torch.png new file mode 100644 index 0000000..23bef69 Binary files /dev/null and b/sprite/torch.png differ diff --git a/sprite/torch.png.import b/sprite/torch.png.import new file mode 100644 index 0000000..003c0ad --- /dev/null +++ b/sprite/torch.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dpy5ui56yufab" +path="res://.godot/imported/torch.png-6ab738930cde7da0d3ef86627a680519.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://sprite/torch.png" +dest_files=["res://.godot/imported/torch.png-6ab738930cde7da0d3ef86627a680519.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1