Parcourir la source

:tada: Add a new empty level

DricomDragon il y a 9 mois
Parent
commit
be8aa42de6

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

@@ -1,4 +1,4 @@
-[gd_scene load_steps=17 format=3 uid="uid://cnbv6y2ikfysg"]
+[gd_scene load_steps=19 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"]
@@ -10,6 +10,8 @@
 [ext_resource type="Texture2D" uid="uid://7npljbrmgqur" path="res://composants/interface/planete/images/11.png" id="7_63ppw"]
 [ext_resource type="PackedScene" uid="uid://b11cxtgl8mwvm" path="res://exec/niveaux/blob_facile.tscn" id="8_coqpc"]
 [ext_resource type="Texture2D" uid="uid://cu1l78e0v6ia3" path="res://composants/interface/planete/images/01.png" id="9_mgdr1"]
+[ext_resource type="Texture2D" uid="uid://i4comijffqbn" path="res://composants/interface/planete/images/12.png" id="9_r0gfp"]
+[ext_resource type="PackedScene" uid="uid://driwh1k1pylf2" path="res://exec/niveaux/ping_pong.tscn" id="10_iuts0"]
 [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"]
@@ -52,6 +54,16 @@ texture_normal = ExtResource("2_1herl")
 script = ExtResource("5_hm38a")
 niveau = ExtResource("8_coqpc")
 
+[node name="PlaneteSismique" type="TextureButton" parent="DefilementNiveaux/SystemeSolaire"]
+layout_mode = 0
+offset_left = 30.0
+offset_top = 566.0
+offset_right = 253.0
+offset_bottom = 710.0
+texture_normal = ExtResource("9_r0gfp")
+script = ExtResource("5_hm38a")
+niveau = ExtResource("10_iuts0")
+
 [node name="PlaneteRouge" type="TextureButton" parent="DefilementNiveaux/SystemeSolaire"]
 layout_mode = 0
 offset_left = -40.0

+ 66 - 0
godot/exec/niveaux/ping_pong.tscn

@@ -0,0 +1,66 @@
+[gd_scene load_steps=11 format=3 uid="uid://driwh1k1pylf2"]
+
+[ext_resource type="Texture2D" uid="uid://baalvpvl7d5av" path="res://exec/niveaux/fonds/ground12.png" id="1_a1ws5"]
+[ext_resource type="PackedScene" uid="uid://cpo1b44exbbyf" path="res://composants/objets/raquette/raquette.tscn" id="2_sleah"]
+[ext_resource type="PackedScene" uid="uid://cux4pm68s7pr8" path="res://composants/objets/lanceur/lanceur.tscn" id="3_gk5yj"]
+[ext_resource type="Script" path="res://composants/objets/brique/conteneur_briques.gd" id="4_78ofy"]
+[ext_resource type="PackedScene" uid="uid://brd8yid3l7wgm" path="res://composants/objets/brique/brique.tscn" id="5_2efjj"]
+[ext_resource type="PackedScene" uid="uid://b28d5a4be36qa" path="res://composants/objets/arene/arene.tscn" id="6_e2f67"]
+[ext_resource type="PackedScene" uid="uid://mj0r0qodppdk" path="res://composants/interface/perdu/perdu.tscn" id="7_4m08t"]
+[ext_resource type="PackedScene" uid="uid://byxtc8f6n5o3" path="res://composants/interface/gagne/gagne.tscn" id="8_ba4ka"]
+[ext_resource type="PackedScene" uid="uid://ds3j5rjhys4xf" path="res://composants/interface/stock/stock.tscn" id="9_s8bvw"]
+[ext_resource type="AudioStream" uid="uid://1p4lhi3rprps" path="res://ressources/musiques/atelier_godot_level_main_loop.ogg" id="10_xnams"]
+
+[node name="PingPong" type="Node2D"]
+
+[node name="Fond" type="TextureRect" parent="."]
+offset_right = 40.0
+offset_bottom = 40.0
+texture = ExtResource("1_a1ws5")
+
+[node name="Raquette" parent="." instance=ExtResource("2_sleah")]
+position = Vector2(210, 400)
+
+[node name="Lanceur" parent="." instance=ExtResource("3_gk5yj")]
+position = Vector2(180, 144)
+
+[node name="Briques" type="Node2D" parent="."]
+script = ExtResource("4_78ofy")
+
+[node name="Brique1" parent="Briques" instance=ExtResource("5_2efjj")]
+position = Vector2(210, 256)
+
+[node name="Arene" parent="." instance=ExtResource("6_e2f67")]
+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_4m08t")]
+visible = false
+layout_mode = 2
+
+[node name="Gagne" parent="Message" instance=ExtResource("8_ba4ka")]
+visible = false
+layout_mode = 2
+
+[node name="Stock" parent="." instance=ExtResource("9_s8bvw")]
+offset_bottom = 420.0
+
+[node name="Musique" type="AudioStreamPlayer" parent="."]
+process_mode = 3
+stream = ExtResource("10_xnams")
+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"]