|
@@ -0,0 +1,329 @@
|
|
|
+[gd_scene load_steps=26 format=2]
|
|
|
+
|
|
|
+[ext_resource path="res://Commande/ps3.png" type="Texture" id=1]
|
|
|
+[ext_resource path="res://Police/alata-regular.ttf" type="DynamicFontData" id=2]
|
|
|
+[ext_resource path="res://Commande/playstation cross dark.png" type="Texture" id=3]
|
|
|
+[ext_resource path="res://Ville/circle.png" type="Texture" id=4]
|
|
|
+[ext_resource path="res://Ville/electricity_plateforme_fond_2_carre.png" type="Texture" id=5]
|
|
|
+[ext_resource path="res://Ville/bh42test/personnages_essaie_no2.svg" type="Texture" id=6]
|
|
|
+[ext_resource path="res://Commande/bh42commande.gd" type="Script" id=7]
|
|
|
+[ext_resource path="res://Ville/elecetric_boite_off.png" type="Texture" id=8]
|
|
|
+[ext_resource path="res://Ville/elecetric_boite_on.png" type="Texture" id=9]
|
|
|
+[ext_resource path="res://Commande/boitiercommande.gd" type="Script" id=10]
|
|
|
+
|
|
|
+[sub_resource type="DynamicFont" id=1]
|
|
|
+size = 32
|
|
|
+font_data = ExtResource( 2 )
|
|
|
+
|
|
|
+[sub_resource type="DynamicFont" id=2]
|
|
|
+size = 32
|
|
|
+font_data = ExtResource( 2 )
|
|
|
+
|
|
|
+[sub_resource type="ConvexPolygonShape2D" id=3]
|
|
|
+points = PoolVector2Array( 0, 0, 128, 0, 128, 128, 0, 128 )
|
|
|
+
|
|
|
+[sub_resource type="TileSet" id=4]
|
|
|
+0/name = "electricity_plateforme_fond_2_carre.png 0"
|
|
|
+0/texture = ExtResource( 5 )
|
|
|
+0/tex_offset = Vector2( 0, 0 )
|
|
|
+0/modulate = Color( 1, 1, 1, 1 )
|
|
|
+0/region = Rect2( 0, 0, 128, 128 )
|
|
|
+0/tile_mode = 0
|
|
|
+0/occluder_offset = Vector2( 0, 0 )
|
|
|
+0/navigation_offset = Vector2( 0, 0 )
|
|
|
+0/shape_offset = Vector2( 0, 0 )
|
|
|
+0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
|
|
+0/shape = SubResource( 3 )
|
|
|
+0/shape_one_way = false
|
|
|
+0/shape_one_way_margin = 1.0
|
|
|
+0/shapes = [ {
|
|
|
+"autotile_coord": Vector2( 0, 0 ),
|
|
|
+"one_way": false,
|
|
|
+"one_way_margin": 1.0,
|
|
|
+"shape": SubResource( 3 ),
|
|
|
+"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
|
|
+} ]
|
|
|
+0/z_index = 0
|
|
|
+
|
|
|
+[sub_resource type="AtlasTexture" id=5]
|
|
|
+flags = 4
|
|
|
+atlas = ExtResource( 6 )
|
|
|
+region = Rect2( 0, 0, 280, 396 )
|
|
|
+
|
|
|
+[sub_resource type="AtlasTexture" id=6]
|
|
|
+flags = 4
|
|
|
+atlas = ExtResource( 6 )
|
|
|
+region = Rect2( 840, 0, 280, 396 )
|
|
|
+
|
|
|
+[sub_resource type="AtlasTexture" id=7]
|
|
|
+flags = 4
|
|
|
+atlas = ExtResource( 6 )
|
|
|
+region = Rect2( 280, 0, 280, 396 )
|
|
|
+
|
|
|
+[sub_resource type="AtlasTexture" id=8]
|
|
|
+flags = 4
|
|
|
+atlas = ExtResource( 6 )
|
|
|
+region = Rect2( 560, 0, 280, 396 )
|
|
|
+
|
|
|
+[sub_resource type="AtlasTexture" id=9]
|
|
|
+flags = 4
|
|
|
+atlas = ExtResource( 6 )
|
|
|
+region = Rect2( 840, 0, 280, 396 )
|
|
|
+
|
|
|
+[sub_resource type="SpriteFrames" id=10]
|
|
|
+animations = [ {
|
|
|
+"frames": [ SubResource( 5 ) ],
|
|
|
+"loop": true,
|
|
|
+"name": "respiration",
|
|
|
+"speed": 5.0
|
|
|
+}, {
|
|
|
+"frames": [ SubResource( 6 ) ],
|
|
|
+"loop": true,
|
|
|
+"name": "sauter",
|
|
|
+"speed": 5.0
|
|
|
+}, {
|
|
|
+"frames": [ SubResource( 7 ), SubResource( 8 ), SubResource( 9 ) ],
|
|
|
+"loop": true,
|
|
|
+"name": "courir",
|
|
|
+"speed": 5.0
|
|
|
+} ]
|
|
|
+
|
|
|
+[sub_resource type="RectangleShape2D" id=11]
|
|
|
+extents = Vector2( 26.5358, 43.8338 )
|
|
|
+
|
|
|
+[sub_resource type="RectangleShape2D" id=12]
|
|
|
+extents = Vector2( 93.3495, 332.077 )
|
|
|
+
|
|
|
+[sub_resource type="SpriteFrames" id=13]
|
|
|
+animations = [ {
|
|
|
+"frames": [ ExtResource( 9 ), ExtResource( 8 ) ],
|
|
|
+"loop": true,
|
|
|
+"name": "default",
|
|
|
+"speed": 5.0
|
|
|
+} ]
|
|
|
+
|
|
|
+[sub_resource type="RectangleShape2D" id=14]
|
|
|
+extents = Vector2( 24.3732, 31.0026 )
|
|
|
+
|
|
|
+[sub_resource type="DynamicFont" id=15]
|
|
|
+size = 32
|
|
|
+font_data = ExtResource( 2 )
|
|
|
+
|
|
|
+[node name="Commande" type="Node2D"]
|
|
|
+
|
|
|
+[node name="Fond" type="ColorRect" parent="."]
|
|
|
+margin_left = -1.54282
|
|
|
+margin_top = -1.69841
|
|
|
+margin_right = 2063.46
|
|
|
+margin_bottom = 1260.3
|
|
|
+color = Color( 0, 0, 0, 1 )
|
|
|
+__meta__ = {
|
|
|
+"_edit_use_anchors_": false
|
|
|
+}
|
|
|
+
|
|
|
+[node name="manetteps3" type="Sprite" parent="."]
|
|
|
+position = Vector2( 700, 300 )
|
|
|
+scale = Vector2( 0.5, 0.5 )
|
|
|
+texture = ExtResource( 1 )
|
|
|
+
|
|
|
+[node name="sauter" type="ColorRect" parent="."]
|
|
|
+margin_left = 910.0
|
|
|
+margin_top = 287.0
|
|
|
+margin_right = 1088.0
|
|
|
+margin_bottom = 289.0
|
|
|
+color = Color( 0.368627, 0.329412, 0.329412, 1 )
|
|
|
+__meta__ = {
|
|
|
+"_edit_use_anchors_": false
|
|
|
+}
|
|
|
+
|
|
|
+[node name="sauter" type="ColorRect" parent="sauter"]
|
|
|
+margin_left = 178.0
|
|
|
+margin_top = -14.0
|
|
|
+margin_right = 314.0
|
|
|
+margin_bottom = 17.0
|
|
|
+color = Color( 0.368627, 0.329412, 0.329412, 1 )
|
|
|
+
|
|
|
+[node name="playstation cross dark" type="Sprite" parent="sauter/sauter"]
|
|
|
+position = Vector2( 15.9993, 15.0261 )
|
|
|
+scale = Vector2( 0.366948, 0.366948 )
|
|
|
+texture = ExtResource( 3 )
|
|
|
+
|
|
|
+[node name="Sauter" type="Label" parent="sauter"]
|
|
|
+margin_left = 207.887
|
|
|
+margin_top = -25.8284
|
|
|
+margin_right = 298.887
|
|
|
+margin_bottom = 19.1716
|
|
|
+custom_fonts/font = SubResource( 1 )
|
|
|
+text = "sauter"
|
|
|
+
|
|
|
+[node name="activer" type="ColorRect" parent="."]
|
|
|
+margin_left = 962.857
|
|
|
+margin_top = 232.934
|
|
|
+margin_right = 1087.86
|
|
|
+margin_bottom = 234.934
|
|
|
+color = Color( 0.368627, 0.329412, 0.329412, 1 )
|
|
|
+__meta__ = {
|
|
|
+"_edit_use_anchors_": false
|
|
|
+}
|
|
|
+
|
|
|
+[node name="activer" type="ColorRect" parent="activer"]
|
|
|
+margin_left = 125.0
|
|
|
+margin_top = -16.0
|
|
|
+margin_right = 261.0
|
|
|
+margin_bottom = 15.0
|
|
|
+color = Color( 0.368627, 0.329412, 0.329412, 1 )
|
|
|
+__meta__ = {
|
|
|
+"_edit_use_anchors_": false
|
|
|
+}
|
|
|
+
|
|
|
+[node name="activer2" type="Label" parent="activer"]
|
|
|
+margin_left = 154.005
|
|
|
+margin_top = -28.0013
|
|
|
+margin_right = 253.005
|
|
|
+margin_bottom = 16.9987
|
|
|
+custom_fonts/font = SubResource( 1 )
|
|
|
+text = "activer"
|
|
|
+__meta__ = {
|
|
|
+"_edit_use_anchors_": false
|
|
|
+}
|
|
|
+
|
|
|
+[node name="circle" type="Sprite" parent="activer"]
|
|
|
+position = Vector2( 141.184, -0.857697 )
|
|
|
+scale = Vector2( 0.0451973, 0.0451973 )
|
|
|
+texture = ExtResource( 4 )
|
|
|
+
|
|
|
+[node name="gauche" type="ColorRect" parent="."]
|
|
|
+margin_left = 452.295
|
|
|
+margin_top = 235.74
|
|
|
+margin_right = 577.295
|
|
|
+margin_bottom = 237.74
|
|
|
+rect_rotation = 180.0
|
|
|
+color = Color( 0.368627, 0.329412, 0.329412, 1 )
|
|
|
+__meta__ = {
|
|
|
+"_edit_use_anchors_": false
|
|
|
+}
|
|
|
+
|
|
|
+[node name="gauche" type="ColorRect" parent="gauche"]
|
|
|
+margin_left = 125.0
|
|
|
+margin_top = -19.0
|
|
|
+margin_right = 348.0
|
|
|
+margin_bottom = 18.0
|
|
|
+color = Color( 0.368627, 0.329412, 0.329412, 1 )
|
|
|
+
|
|
|
+[node name="gauche2" type="Label" parent="gauche"]
|
|
|
+margin_left = 340.546
|
|
|
+margin_top = 26.6987
|
|
|
+margin_right = 549.546
|
|
|
+margin_bottom = 71.6987
|
|
|
+rect_rotation = 180.0
|
|
|
+custom_fonts/font = SubResource( 2 )
|
|
|
+text = "aller à gauche"
|
|
|
+
|
|
|
+[node name="droite" type="ColorRect" parent="."]
|
|
|
+margin_left = 452.295
|
|
|
+margin_top = 180.0
|
|
|
+margin_right = 602.295
|
|
|
+margin_bottom = 182.0
|
|
|
+rect_rotation = 180.0
|
|
|
+color = Color( 0.368627, 0.329412, 0.329412, 1 )
|
|
|
+__meta__ = {
|
|
|
+"_edit_use_anchors_": false
|
|
|
+}
|
|
|
+
|
|
|
+[node name="droite" type="ColorRect" parent="droite"]
|
|
|
+margin_left = 125.0
|
|
|
+margin_top = -19.0
|
|
|
+margin_right = 348.0
|
|
|
+margin_bottom = 18.0
|
|
|
+color = Color( 0.368627, 0.329412, 0.329412, 1 )
|
|
|
+
|
|
|
+[node name="droite2" type="Label" parent="droite"]
|
|
|
+margin_left = 330.467
|
|
|
+margin_top = 26.0688
|
|
|
+margin_right = 539.467
|
|
|
+margin_bottom = 71.0688
|
|
|
+rect_rotation = 180.0
|
|
|
+custom_fonts/font = SubResource( 2 )
|
|
|
+text = "aller à droite"
|
|
|
+
|
|
|
+[node name="droite3" type="ColorRect" parent="."]
|
|
|
+margin_left = 530.0
|
|
|
+margin_top = 180.0
|
|
|
+margin_right = 680.0
|
|
|
+margin_bottom = 182.0
|
|
|
+rect_rotation = 180.0
|
|
|
+color = Color( 0.368627, 0.329412, 0.329412, 1 )
|
|
|
+__meta__ = {
|
|
|
+"_edit_use_anchors_": false
|
|
|
+}
|
|
|
+
|
|
|
+[node name="droite4" type="ColorRect" parent="."]
|
|
|
+margin_left = 530.0
|
|
|
+margin_top = 180.0
|
|
|
+margin_right = 585.0
|
|
|
+margin_bottom = 182.0
|
|
|
+rect_rotation = 90.0
|
|
|
+color = Color( 0.368627, 0.329412, 0.329412, 1 )
|
|
|
+__meta__ = {
|
|
|
+"_edit_use_anchors_": false
|
|
|
+}
|
|
|
+
|
|
|
+[node name="TileMap" type="TileMap" parent="."]
|
|
|
+tile_set = SubResource( 4 )
|
|
|
+format = 1
|
|
|
+tile_data = PoolIntArray( 720896, 0, 0, 720898, 0, 0, 720900, 0, 0, 720902, 0, 0, 720904, 0, 0, 720906, 0, 0, 720908, 0, 0, 720910, 0, 0, 720912, 0, 0, 720914, 0, 0, 720916, 0, 0, 720918, 0, 0, 720920, 0, 0, 720922, 0, 0, 720924, 0, 0 )
|
|
|
+
|
|
|
+[node name="bh42commande" type="KinematicBody2D" parent="."]
|
|
|
+script = ExtResource( 7 )
|
|
|
+speed = 500
|
|
|
+jump_speed = 480
|
|
|
+gravity = 18
|
|
|
+
|
|
|
+[node name="Sprite" type="AnimatedSprite" parent="bh42commande"]
|
|
|
+position = Vector2( 714.49, 655.776 )
|
|
|
+scale = Vector2( 0.336, 0.277 )
|
|
|
+z_index = 1
|
|
|
+frames = SubResource( 10 )
|
|
|
+animation = "respiration"
|
|
|
+
|
|
|
+[node name="CollisionShape2D" type="CollisionShape2D" parent="bh42commande"]
|
|
|
+position = Vector2( 704.216, 655.465 )
|
|
|
+z_index = 1
|
|
|
+shape = SubResource( 11 )
|
|
|
+
|
|
|
+[node name="Mur1" type="StaticBody2D" parent="."]
|
|
|
+
|
|
|
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Mur1"]
|
|
|
+position = Vector2( -93.6138, 504.193 )
|
|
|
+shape = SubResource( 12 )
|
|
|
+
|
|
|
+[node name="Mur2" type="StaticBody2D" parent="."]
|
|
|
+
|
|
|
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Mur2"]
|
|
|
+position = Vector2( 1445.83, 447.111 )
|
|
|
+shape = SubResource( 12 )
|
|
|
+
|
|
|
+[node name="boitiercommande" type="Area2D" parent="."]
|
|
|
+script = ExtResource( 10 )
|
|
|
+
|
|
|
+[node name="Sprite" type="AnimatedSprite" parent="boitiercommande"]
|
|
|
+position = Vector2( 1253.64, 671.837 )
|
|
|
+frames = SubResource( 13 )
|
|
|
+frame = 1
|
|
|
+playing = true
|
|
|
+
|
|
|
+[node name="CollisionShape2D" type="CollisionShape2D" parent="boitiercommande"]
|
|
|
+position = Vector2( 1251.41, 670.096 )
|
|
|
+shape = SubResource( 14 )
|
|
|
+
|
|
|
+[node name="Label" type="Label" parent="."]
|
|
|
+margin_left = 1120.38
|
|
|
+margin_top = 567.206
|
|
|
+margin_right = 1350.38
|
|
|
+margin_bottom = 612.206
|
|
|
+custom_fonts/font = SubResource( 15 )
|
|
|
+text = "Retour au menu"
|
|
|
+__meta__ = {
|
|
|
+"_edit_use_anchors_": false
|
|
|
+}
|
|
|
+[connection signal="body_entered" from="boitiercommande" to="boitiercommande" method="_on_boitiercommande_body_entered"]
|