소스 검색

:tada: Ajoute un niveau avec deux mouvements

DricomDragon 9 달 전
부모
커밋
ab742a86b7
2개의 변경된 파일168개의 추가작업 그리고 1개의 파일을 삭제
  1. 13 1
      godot/composants/interface/choix_niveau/choix_niveau.tscn
  2. 155 0
      godot/exec/niveaux/avalanche.tscn

+ 13 - 1
godot/composants/interface/choix_niveau/choix_niveau.tscn

@@ -1,4 +1,4 @@
-[gd_scene load_steps=19 format=3 uid="uid://cnbv6y2ikfysg"]
+[gd_scene load_steps=21 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"]
@@ -18,6 +18,8 @@
 [ext_resource type="PackedScene" uid="uid://c7o51scoh4v5g" path="res://exec/niveaux/triangles.tscn" id="14_gw0xo"]
 [ext_resource type="Texture2D" uid="uid://beudk7g46syiu" path="res://composants/interface/planete/images/22.png" id="15_6imjs"]
 [ext_resource type="PackedScene" uid="uid://b2578e5i8ubvg" path="res://exec/niveaux/falling_dart.tscn" id="16_qdyvs"]
+[ext_resource type="Texture2D" uid="uid://e86os17tlpvx" path="res://composants/interface/planete/images/17.png" id="19_m5si6"]
+[ext_resource type="PackedScene" uid="uid://drsvofasfawls" path="res://exec/niveaux/avalanche.tscn" id="20_c2041"]
 
 [node name="ChoixNiveau" type="Node"]
 script = ExtResource("1_nhye5")
@@ -104,6 +106,16 @@ texture_normal = ExtResource("15_6imjs")
 script = ExtResource("5_hm38a")
 niveau = ExtResource("16_qdyvs")
 
+[node name="PlaneteIodee" type="TextureButton" parent="DefilementNiveaux/SystemeSolaire"]
+layout_mode = 0
+offset_left = 182.0
+offset_top = 630.0
+offset_right = 405.0
+offset_bottom = 774.0
+texture_normal = ExtResource("19_m5si6")
+script = ExtResource("5_hm38a")
+niveau = ExtResource("20_c2041")
+
 [node name="BarreMenu" type="Panel" parent="."]
 anchors_preset = 10
 anchor_right = 1.0

+ 155 - 0
godot/exec/niveaux/avalanche.tscn

@@ -0,0 +1,155 @@
+[gd_scene load_steps=13 format=3 uid="uid://drsvofasfawls"]
+
+[ext_resource type="Texture2D" uid="uid://bc6q5vpql18e1" path="res://exec/niveaux/fonds/ground20.png" id="1_v4kui"]
+[ext_resource type="PackedScene" uid="uid://cpo1b44exbbyf" path="res://composants/objets/raquette/raquette.tscn" id="2_jtshy"]
+[ext_resource type="PackedScene" uid="uid://cux4pm68s7pr8" path="res://composants/objets/lanceur/lanceur.tscn" id="3_8ttj3"]
+[ext_resource type="Script" path="res://composants/objets/brique/conteneur_briques.gd" id="4_66624"]
+[ext_resource type="PackedScene" uid="uid://brd8yid3l7wgm" path="res://composants/objets/brique/brique.tscn" id="5_rw2dy"]
+[ext_resource type="Script" path="res://composants/mouvements/descente_lente.gd" id="5_swb4t"]
+[ext_resource type="PackedScene" uid="uid://b28d5a4be36qa" path="res://composants/objets/arene/arene.tscn" id="6_rwfcj"]
+[ext_resource type="PackedScene" uid="uid://mj0r0qodppdk" path="res://composants/interface/perdu/perdu.tscn" id="7_4bct1"]
+[ext_resource type="Script" path="res://composants/mouvements/ping_pong.gd" id="7_efa4s"]
+[ext_resource type="PackedScene" uid="uid://byxtc8f6n5o3" path="res://composants/interface/gagne/gagne.tscn" id="8_2ii36"]
+[ext_resource type="PackedScene" uid="uid://ds3j5rjhys4xf" path="res://composants/interface/stock/stock.tscn" id="9_wg5u6"]
+[ext_resource type="AudioStream" uid="uid://1p4lhi3rprps" path="res://ressources/musiques/atelier_godot_level_main_loop.ogg" id="10_7jbeo"]
+
+[node name="CarreSimple" type="Node2D"]
+
+[node name="Fond" type="TextureRect" parent="."]
+offset_right = 40.0
+offset_bottom = 40.0
+texture = ExtResource("1_v4kui")
+metadata/_edit_lock_ = true
+
+[node name="Raquette" parent="." instance=ExtResource("2_jtshy")]
+position = Vector2(210, 400)
+
+[node name="Lanceur" parent="." instance=ExtResource("3_8ttj3")]
+position = Vector2(180, 144)
+
+[node name="Briques" type="Node2D" parent="."]
+position = Vector2(0, -112)
+script = ExtResource("4_66624")
+mouvement_script = ExtResource("5_swb4t")
+
+[node name="PicGauche" type="Node2D" parent="Briques"]
+position = Vector2(-180, 0)
+script = ExtResource("4_66624")
+
+[node name="Brique1" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
+position = Vector2(210, 224)
+
+[node name="Brique5" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
+position = Vector2(210, 224)
+
+[node name="Brique6" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
+position = Vector2(210, 240)
+
+[node name="Brique7" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
+position = Vector2(180, 224)
+
+[node name="Brique8" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
+position = Vector2(180, 240)
+
+[node name="Brique2" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
+position = Vector2(180, 208)
+
+[node name="Brique3" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
+position = Vector2(210, 256)
+
+[node name="Brique4" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
+position = Vector2(210, 208)
+pouvoir_type = 4
+
+[node name="PicDroit" type="Node2D" parent="Briques"]
+position = Vector2(180, 0)
+script = ExtResource("4_66624")
+
+[node name="Brique1" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
+position = Vector2(210, 224)
+
+[node name="Brique5" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
+position = Vector2(210, 224)
+
+[node name="Brique6" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
+position = Vector2(210, 240)
+
+[node name="Brique7" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
+position = Vector2(180, 224)
+
+[node name="Brique8" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
+position = Vector2(180, 240)
+
+[node name="Brique2" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
+position = Vector2(180, 208)
+
+[node name="Brique3" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
+position = Vector2(210, 256)
+
+[node name="Brique4" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
+position = Vector2(210, 208)
+pouvoir_type = 3
+
+[node name="Meca" type="Node2D" parent="Briques"]
+position = Vector2(90, 208)
+script = ExtResource("4_66624")
+mouvement_script = ExtResource("7_efa4s")
+
+[node name="Brique1" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
+position = Vector2(0, 16)
+
+[node name="Brique5" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
+position = Vector2(0, 16)
+
+[node name="Brique6" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
+position = Vector2(0, 32)
+
+[node name="Brique7" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
+position = Vector2(-30, 16)
+
+[node name="Brique8" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
+position = Vector2(-30, 32)
+
+[node name="Brique2" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
+position = Vector2(-30, 0)
+
+[node name="Brique3" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
+position = Vector2(0, 48)
+
+[node name="Brique4" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
+pouvoir_type = 2
+
+[node name="Arene" parent="." instance=ExtResource("6_rwfcj")]
+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_4bct1")]
+visible = false
+layout_mode = 2
+
+[node name="Gagne" parent="Message" instance=ExtResource("8_2ii36")]
+visible = false
+layout_mode = 2
+
+[node name="Stock" parent="." instance=ExtResource("9_wg5u6")]
+offset_bottom = 420.0
+
+[node name="Musique" type="AudioStreamPlayer" parent="."]
+process_mode = 3
+stream = ExtResource("10_7jbeo")
+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"]