[gd_scene load_steps=32 format=2] [ext_resource path="res://imgs/ninja_haut.png" type="Texture" id=1] [ext_resource path="res://imgs/ninja_bas.png" type="Texture" id=2] [ext_resource path="res://imgs/ninja_bas-hit.png" type="Texture" id=3] [ext_resource path="res://imgs/ninja_haut-hit.png" type="Texture" id=4] [ext_resource path="res://Player.gd" type="Script" id=5] [ext_resource path="res://imgs/ninja_right.png" type="Texture" id=6] [ext_resource path="res://imgs/ninja_left-hit.png" type="Texture" id=7] [ext_resource path="res://imgs/ninja_right-hit.png" type="Texture" id=8] [ext_resource path="res://imgs/ninja_left.png" type="Texture" id=11] [sub_resource type="AtlasTexture" id=1] atlas = ExtResource( 6 ) region = Rect2( 32, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=2] atlas = ExtResource( 6 ) region = Rect2( 0, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=3] atlas = ExtResource( 11 ) region = Rect2( 32, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=4] atlas = ExtResource( 11 ) region = Rect2( 0, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=5] atlas = ExtResource( 3 ) region = Rect2( 0, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=6] atlas = ExtResource( 2 ) region = Rect2( 32, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=7] atlas = ExtResource( 3 ) region = Rect2( 0, 32, 32, 32 ) [sub_resource type="AtlasTexture" id=8] atlas = ExtResource( 8 ) region = Rect2( 32, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=9] atlas = ExtResource( 6 ) region = Rect2( 0, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=10] atlas = ExtResource( 2 ) region = Rect2( 0, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=11] atlas = ExtResource( 2 ) region = Rect2( 32, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=12] atlas = ExtResource( 2 ) region = Rect2( 0, 32, 32, 32 ) [sub_resource type="AtlasTexture" id=13] atlas = ExtResource( 7 ) region = Rect2( 32, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=14] atlas = ExtResource( 11 ) region = Rect2( 0, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=15] atlas = ExtResource( 4 ) region = Rect2( 0, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=16] atlas = ExtResource( 1 ) region = Rect2( 32, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=17] atlas = ExtResource( 4 ) region = Rect2( 0, 32, 32, 32 ) [sub_resource type="AtlasTexture" id=18] atlas = ExtResource( 1 ) region = Rect2( 0, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=19] atlas = ExtResource( 1 ) region = Rect2( 32, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=20] atlas = ExtResource( 1 ) region = Rect2( 0, 32, 32, 32 ) [sub_resource type="SpriteFrames" id=21] animations = [ { "frames": [ SubResource( 1 ), SubResource( 2 ) ], "loop": true, "name": "droite", "speed": 5.0 }, { "frames": [ SubResource( 3 ), SubResource( 4 ) ], "loop": true, "name": "gauche", "speed": 5.0 }, { "frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ) ], "loop": true, "name": "bas-hit", "speed": 5.0 }, { "frames": [ SubResource( 8 ), SubResource( 9 ) ], "loop": true, "name": "droite-hit", "speed": 5.0 }, { "frames": [ SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ], "loop": true, "name": "bas", "speed": 5.0 }, { "frames": [ SubResource( 13 ), SubResource( 14 ) ], "loop": true, "name": "gauche-hit", "speed": 5.0 }, { "frames": [ SubResource( 15 ), SubResource( 16 ), SubResource( 17 ) ], "loop": true, "name": "haut-hit", "speed": 5.0 }, { "frames": [ SubResource( 18 ), SubResource( 19 ), SubResource( 20 ) ], "loop": true, "name": "haut", "speed": 5.0 } ] [sub_resource type="RectangleShape2D" id=22] extents = Vector2( 21.5745, 33.778 ) [node name="Joueur" type="Area2D"] position = Vector2( 9.91069, 8.96681 ) script = ExtResource( 5 ) __meta__ = { "_edit_group_": true } [node name="AnimatedSprite" type="AnimatedSprite" parent="."] scale = Vector2( 2.5, 2.5 ) frames = SubResource( 21 ) animation = "haut-hit" [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2( -3.6604, 6.29072 ) shape = SubResource( 22 ) [node name="TimerIsostasieVie" type="Timer" parent="."] one_shot = true [connection signal="body_entered" from="." to="." method="_on_Joueur_body_entered"] [connection signal="timeout" from="TimerIsostasieVie" to="." method="_on_TimerIsostasieVie_timeout"]