Просмотр исходного кода

:tada: Ajoute un niveau avec un trou derrère le mur

DricomDragon 10 месяцев назад
Родитель
Сommit
96466ae9ef

+ 21 - 9
godot/composants/interface/choix_niveau/choix_niveau.tscn

@@ -1,4 +1,4 @@
-[gd_scene load_steps=13 format=3 uid="uid://cnbv6y2ikfysg"]
+[gd_scene load_steps=15 format=3 uid="uid://cnbv6y2ikfysg"]
 
 [ext_resource type="Script" path="res://composants/interface/choix_niveau/systeme_solaire.gd" id="1_1jmyy"]
 [ext_resource type="Script" path="res://composants/interface/choix_niveau/choix_niveau.gd" id="1_nhye5"]
@@ -12,6 +12,8 @@
 [ext_resource type="Texture2D" uid="uid://cu1l78e0v6ia3" path="res://composants/interface/planete/images/01.png" id="9_mgdr1"]
 [ext_resource type="PackedScene" uid="uid://cyyb8weydthjc" path="res://exec/niveaux/carre_simple.tscn" id="10_m6fgg"]
 [ext_resource type="PackedScene" uid="uid://dh15j87pa6rul" path="res://exec/niveaux/jdll2024.tscn" id="12_5dpbk"]
+[ext_resource type="Texture2D" uid="uid://gnbv1jnada2r" path="res://composants/interface/planete/images/21.png" id="13_s2a0u"]
+[ext_resource type="PackedScene" uid="uid://bke8ggl6keafb" path="res://exec/niveaux/triangles.tscn" id="14_gw0xo"]
 
 [node name="ChoixNiveau" type="Node"]
 script = ExtResource("1_nhye5")
@@ -50,24 +52,34 @@ niveau = ExtResource("8_coqpc")
 
 [node name="PlaneteRouge" type="TextureButton" parent="DefilementNiveaux/SystemeSolaire"]
 layout_mode = 0
-offset_left = -36.0
-offset_top = 274.0
-offset_right = 187.0
-offset_bottom = 418.0
+offset_left = -40.0
+offset_top = 211.0
+offset_right = 183.0
+offset_bottom = 355.0
 texture_normal = ExtResource("9_mgdr1")
 script = ExtResource("5_hm38a")
 niveau = ExtResource("10_m6fgg")
 
 [node name="PlaneteLibre" type="TextureButton" parent="DefilementNiveaux/SystemeSolaire"]
 layout_mode = 0
-offset_left = 178.0
-offset_top = 370.0
-offset_right = 401.0
-offset_bottom = 514.0
+offset_left = 239.0
+offset_top = 320.0
+offset_right = 462.0
+offset_bottom = 464.0
 texture_normal = ExtResource("7_63ppw")
 script = ExtResource("5_hm38a")
 niveau = ExtResource("12_5dpbk")
 
+[node name="PlaneteSpectrale" type="TextureButton" parent="DefilementNiveaux/SystemeSolaire"]
+layout_mode = 0
+offset_left = 28.0
+offset_top = 338.0
+offset_right = 251.0
+offset_bottom = 482.0
+texture_normal = ExtResource("13_s2a0u")
+script = ExtResource("5_hm38a")
+niveau = ExtResource("14_gw0xo")
+
 [node name="BarreMenu" type="Panel" parent="."]
 anchors_preset = 10
 anchor_right = 1.0

+ 11 - 8
godot/exec/niveaux/jdll2024.tscn

@@ -361,6 +361,7 @@ position = Vector2(60, 144)
 
 [node name="Brique102" parent="Briques" instance=ExtResource("4_upd8n")]
 position = Vector2(90, 144)
+pouvoir_type = 4
 
 [node name="Brique103" parent="Briques" instance=ExtResource("4_upd8n")]
 position = Vector2(120, 144)
@@ -379,6 +380,7 @@ position = Vector2(270, 144)
 
 [node name="Brique108" parent="Briques" instance=ExtResource("4_upd8n")]
 position = Vector2(300, 144)
+pouvoir_type = 4
 
 [node name="Brique109" parent="Briques" instance=ExtResource("4_upd8n")]
 position = Vector2(330, 144)
@@ -389,6 +391,7 @@ pouvoir_type = 2
 
 [node name="Brique111" parent="Briques" instance=ExtResource("4_upd8n")]
 position = Vector2(210, 144)
+pouvoir_type = 4
 
 [node name="Brique112" parent="Briques" instance=ExtResource("4_upd8n")]
 modulate = Color(0.666667, 0.666667, 0.666667, 1)
@@ -397,27 +400,27 @@ nombre_de_vies = 2
 
 [node name="Brique124" parent="Briques" instance=ExtResource("4_upd8n")]
 position = Vector2(150, 272)
-pouvoir_type = 4
+pouvoir_type = 1
 
 [node name="Brique125" parent="Briques" instance=ExtResource("4_upd8n")]
 position = Vector2(330, 224)
-pouvoir_type = 4
+pouvoir_type = 1
 
 [node name="Brique126" parent="Briques" instance=ExtResource("4_upd8n")]
 position = Vector2(270, 272)
-pouvoir_type = 4
+pouvoir_type = 1
 
 [node name="Brique128" parent="Briques" instance=ExtResource("4_upd8n")]
-position = Vector2(120, 224)
-pouvoir_type = 4
+position = Vector2(90, 224)
+pouvoir_type = 1
 
 [node name="Brique129" parent="Briques" instance=ExtResource("4_upd8n")]
-position = Vector2(60, 272)
-pouvoir_type = 4
+position = Vector2(30, 272)
+pouvoir_type = 1
 
 [node name="Brique127" parent="Briques" instance=ExtResource("4_upd8n")]
 position = Vector2(210, 224)
-pouvoir_type = 4
+pouvoir_type = 1
 
 [node name="Brique113" parent="Briques" instance=ExtResource("4_upd8n")]
 modulate = Color(0.666667, 0.666667, 0.666667, 1)

+ 304 - 0
godot/exec/niveaux/triangles.tscn

@@ -0,0 +1,304 @@
+[gd_scene load_steps=11 format=3 uid="uid://bke8ggl6keafb"]
+
+[ext_resource type="Texture2D" uid="uid://dsdb8hqm3fcks" path="res://exec/niveaux/fonds/ground21.png" id="1_va2ts"]
+[ext_resource type="PackedScene" uid="uid://cpo1b44exbbyf" path="res://composants/objets/raquette/raquette.tscn" id="2_mllki"]
+[ext_resource type="PackedScene" uid="uid://cux4pm68s7pr8" path="res://composants/objets/lanceur/lanceur.tscn" id="3_xiwfk"]
+[ext_resource type="Script" path="res://composants/objets/brique/conteneur_briques.gd" id="4_el4w0"]
+[ext_resource type="PackedScene" uid="uid://brd8yid3l7wgm" path="res://composants/objets/brique/brique.tscn" id="5_w87fw"]
+[ext_resource type="PackedScene" uid="uid://b28d5a4be36qa" path="res://composants/objets/arene/arene.tscn" id="6_jpa8v"]
+[ext_resource type="PackedScene" uid="uid://mj0r0qodppdk" path="res://composants/interface/perdu/perdu.tscn" id="7_85y4s"]
+[ext_resource type="PackedScene" uid="uid://byxtc8f6n5o3" path="res://composants/interface/gagne/gagne.tscn" id="8_nim5h"]
+[ext_resource type="PackedScene" uid="uid://ds3j5rjhys4xf" path="res://composants/interface/stock/stock.tscn" id="9_lcj17"]
+[ext_resource type="AudioStream" uid="uid://1p4lhi3rprps" path="res://ressources/musiques/atelier_godot_level_main_loop.ogg" id="10_840ac"]
+
+[node name="CarreSimple" type="Node2D"]
+
+[node name="Fond" type="TextureRect" parent="."]
+offset_right = 40.0
+offset_bottom = 40.0
+texture = ExtResource("1_va2ts")
+metadata/_edit_lock_ = true
+
+[node name="Raquette" parent="." instance=ExtResource("2_mllki")]
+position = Vector2(210, 400)
+
+[node name="Lanceur" parent="." instance=ExtResource("3_xiwfk")]
+position = Vector2(210, 208)
+
+[node name="Briques" type="Node2D" parent="."]
+script = ExtResource("4_el4w0")
+
+[node name="Brique1" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(210, 176)
+pouvoir_type = 2
+
+[node name="Brique70" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(180, 176)
+pouvoir_type = 2
+
+[node name="Brique2" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(150, 144)
+
+[node name="Brique3" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(120, 144)
+
+[node name="Brique4" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(90, 144)
+
+[node name="Brique5" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(60, 144)
+
+[node name="Brique6" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(30, 144)
+
+[node name="Brique7" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(0, 144)
+
+[node name="Brique8" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(120, 128)
+
+[node name="Brique9" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(90, 128)
+
+[node name="Brique10" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(60, 128)
+
+[node name="Brique11" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(30, 128)
+
+[node name="Brique12" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(0, 128)
+
+[node name="Brique13" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(90, 112)
+
+[node name="Brique14" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(60, 112)
+
+[node name="Brique15" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(30, 112)
+
+[node name="Brique16" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(0, 112)
+
+[node name="Brique17" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(60, 96)
+
+[node name="Brique18" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(30, 96)
+
+[node name="Brique19" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(0, 96)
+
+[node name="Brique20" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(30, 80)
+
+[node name="Brique21" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(0, 80)
+
+[node name="Brique22" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(0, 64)
+
+[node name="Brique23" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(390, 144)
+
+[node name="Brique24" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(360, 144)
+
+[node name="Brique25" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(330, 144)
+
+[node name="Brique26" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(300, 144)
+
+[node name="Brique27" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(270, 144)
+
+[node name="Brique28" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(240, 144)
+
+[node name="Brique45" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(150, 176)
+
+[node name="Brique46" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(120, 176)
+
+[node name="Brique47" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(90, 176)
+
+[node name="Brique48" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(60, 176)
+
+[node name="Brique49" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(30, 176)
+
+[node name="Brique50" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(0, 176)
+
+[node name="Brique51" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(390, 176)
+
+[node name="Brique52" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(360, 176)
+
+[node name="Brique53" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(330, 176)
+
+[node name="Brique54" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(300, 176)
+
+[node name="Brique55" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(270, 176)
+
+[node name="Brique56" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(240, 176)
+
+[node name="Brique44" parent="Briques" instance=ExtResource("5_w87fw")]
+modulate = Color(0, 0, 0, 1)
+position = Vector2(210, 160)
+nombre_de_vies = 4
+
+[node name="Brique69" parent="Briques" instance=ExtResource("5_w87fw")]
+modulate = Color(0, 0, 0, 1)
+position = Vector2(180, 160)
+nombre_de_vies = 4
+
+[node name="Brique57" parent="Briques" instance=ExtResource("5_w87fw")]
+modulate = Color(0, 0, 0, 1)
+position = Vector2(150, 160)
+nombre_de_vies = 4
+
+[node name="Brique58" parent="Briques" instance=ExtResource("5_w87fw")]
+modulate = Color(0, 0, 0, 1)
+position = Vector2(120, 160)
+nombre_de_vies = 4
+
+[node name="Brique59" parent="Briques" instance=ExtResource("5_w87fw")]
+modulate = Color(0, 0, 0, 1)
+position = Vector2(90, 160)
+nombre_de_vies = 4
+
+[node name="Brique60" parent="Briques" instance=ExtResource("5_w87fw")]
+modulate = Color(0, 0, 0, 1)
+position = Vector2(60, 160)
+nombre_de_vies = 4
+
+[node name="Brique61" parent="Briques" instance=ExtResource("5_w87fw")]
+modulate = Color(0, 0, 0, 1)
+position = Vector2(30, 160)
+nombre_de_vies = 4
+
+[node name="Brique62" parent="Briques" instance=ExtResource("5_w87fw")]
+modulate = Color(0, 0, 0, 1)
+position = Vector2(0, 160)
+nombre_de_vies = 4
+
+[node name="Brique63" parent="Briques" instance=ExtResource("5_w87fw")]
+modulate = Color(0, 0, 0, 1)
+position = Vector2(390, 160)
+nombre_de_vies = 4
+
+[node name="Brique64" parent="Briques" instance=ExtResource("5_w87fw")]
+modulate = Color(0, 0, 0, 1)
+position = Vector2(360, 160)
+nombre_de_vies = 4
+
+[node name="Brique65" parent="Briques" instance=ExtResource("5_w87fw")]
+modulate = Color(0, 0, 0, 1)
+position = Vector2(330, 160)
+nombre_de_vies = 4
+
+[node name="Brique66" parent="Briques" instance=ExtResource("5_w87fw")]
+modulate = Color(0, 0, 0, 1)
+position = Vector2(300, 160)
+nombre_de_vies = 4
+
+[node name="Brique67" parent="Briques" instance=ExtResource("5_w87fw")]
+modulate = Color(0, 0, 0, 1)
+position = Vector2(270, 160)
+nombre_de_vies = 4
+
+[node name="Brique68" parent="Briques" instance=ExtResource("5_w87fw")]
+modulate = Color(0, 0, 0, 1)
+position = Vector2(240, 160)
+nombre_de_vies = 4
+
+[node name="Brique29" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(390, 128)
+
+[node name="Brique30" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(360, 128)
+
+[node name="Brique31" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(330, 128)
+
+[node name="Brique32" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(300, 128)
+
+[node name="Brique33" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(270, 128)
+
+[node name="Brique34" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(390, 112)
+
+[node name="Brique35" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(360, 112)
+
+[node name="Brique36" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(330, 112)
+
+[node name="Brique37" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(300, 112)
+
+[node name="Brique38" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(390, 96)
+
+[node name="Brique39" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(360, 96)
+
+[node name="Brique40" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(330, 96)
+
+[node name="Brique41" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(390, 80)
+
+[node name="Brique42" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(360, 80)
+
+[node name="Brique43" parent="Briques" instance=ExtResource("5_w87fw")]
+position = Vector2(390, 64)
+
+[node name="Arene" parent="." instance=ExtResource("6_jpa8v")]
+metadata/_edit_lock_ = true
+
+[node name="Message" type="PanelContainer" parent="."]
+visible = false
+offset_left = 20.0
+offset_top = 20.0
+offset_right = 400.0
+offset_bottom = 400.0
+
+[node name="Perdu" parent="Message" instance=ExtResource("7_85y4s")]
+visible = false
+layout_mode = 2
+
+[node name="Gagne" parent="Message" instance=ExtResource("8_nim5h")]
+visible = false
+layout_mode = 2
+
+[node name="Stock" parent="." instance=ExtResource("9_lcj17")]
+offset_bottom = 420.0
+
+[node name="Musique" type="AudioStreamPlayer" parent="."]
+process_mode = 3
+stream = ExtResource("10_840ac")
+autoplay = true
+bus = &"Musique"
+
+[connection signal="nb_balles_change" from="Lanceur" to="Stock" method="_quand_nombre_balles_change"]
+[connection signal="partie_perdue" from="Lanceur" to="Message" method="show"]
+[connection signal="partie_perdue" from="Lanceur" to="Message/Perdu" method="show"]
+[connection signal="plus_de_briques" from="Briques" to="Lanceur" method="queue_free"]
+[connection signal="plus_de_briques" from="Briques" to="Message" method="show"]
+[connection signal="plus_de_briques" from="Briques" to="Message/Gagne" method="show"]
+[connection signal="balle_detruite" from="Arene" to="Lanceur" method="_quand_balle_detruite"]