2021-01-03 11:05:02 +01:00
|
|
|
[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]
|
2021-01-03 11:24:14 +01:00
|
|
|
atlas = ExtResource( 3 )
|
|
|
|
region = Rect2( 0, 0, 32, 32 )
|
2021-01-03 11:05:02 +01:00
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=6]
|
2021-01-03 11:24:14 +01:00
|
|
|
atlas = ExtResource( 2 )
|
|
|
|
region = Rect2( 32, 0, 32, 32 )
|
2021-01-03 11:05:02 +01:00
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=7]
|
2021-01-03 11:24:14 +01:00
|
|
|
atlas = ExtResource( 3 )
|
|
|
|
region = Rect2( 0, 32, 32, 32 )
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=8]
|
2021-01-03 11:05:02 +01:00
|
|
|
atlas = ExtResource( 8 )
|
|
|
|
region = Rect2( 32, 0, 32, 32 )
|
|
|
|
|
2021-01-03 11:24:14 +01:00
|
|
|
[sub_resource type="AtlasTexture" id=9]
|
2021-01-03 11:05:02 +01:00
|
|
|
atlas = ExtResource( 6 )
|
|
|
|
region = Rect2( 0, 0, 32, 32 )
|
|
|
|
|
2021-01-03 11:24:14 +01:00
|
|
|
[sub_resource type="AtlasTexture" id=10]
|
2021-01-03 11:05:02 +01:00
|
|
|
atlas = ExtResource( 2 )
|
|
|
|
region = Rect2( 0, 0, 32, 32 )
|
|
|
|
|
2021-01-03 11:24:14 +01:00
|
|
|
[sub_resource type="AtlasTexture" id=11]
|
2021-01-03 11:05:02 +01:00
|
|
|
atlas = ExtResource( 2 )
|
|
|
|
region = Rect2( 32, 0, 32, 32 )
|
|
|
|
|
2021-01-03 11:24:14 +01:00
|
|
|
[sub_resource type="AtlasTexture" id=12]
|
2021-01-03 11:05:02 +01:00
|
|
|
atlas = ExtResource( 2 )
|
|
|
|
region = Rect2( 0, 32, 32, 32 )
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=13]
|
2021-01-03 11:24:14 +01:00
|
|
|
atlas = ExtResource( 7 )
|
2021-01-03 11:05:02 +01:00
|
|
|
region = Rect2( 32, 0, 32, 32 )
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=14]
|
2021-01-03 11:24:14 +01:00
|
|
|
atlas = ExtResource( 11 )
|
|
|
|
region = Rect2( 0, 0, 32, 32 )
|
2021-01-03 11:05:02 +01:00
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=15]
|
2021-01-03 11:24:14 +01:00
|
|
|
atlas = ExtResource( 4 )
|
2021-01-03 11:05:02 +01:00
|
|
|
region = Rect2( 0, 0, 32, 32 )
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=16]
|
2021-01-03 11:24:14 +01:00
|
|
|
atlas = ExtResource( 1 )
|
2021-01-03 11:05:02 +01:00
|
|
|
region = Rect2( 32, 0, 32, 32 )
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=17]
|
2021-01-03 11:24:14 +01:00
|
|
|
atlas = ExtResource( 4 )
|
2021-01-03 11:05:02 +01:00
|
|
|
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
|
|
|
|
}, {
|
2021-01-03 11:24:14 +01:00
|
|
|
"frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ) ],
|
2021-01-03 11:05:02 +01:00
|
|
|
"loop": true,
|
2021-01-03 11:24:14 +01:00
|
|
|
"name": "bas-hit",
|
2021-01-03 11:05:02 +01:00
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
2021-01-03 11:24:14 +01:00
|
|
|
"frames": [ SubResource( 8 ), SubResource( 9 ) ],
|
2021-01-03 11:05:02 +01:00
|
|
|
"loop": true,
|
|
|
|
"name": "droite-hit",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
2021-01-03 11:24:14 +01:00
|
|
|
"frames": [ SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ],
|
2021-01-03 11:05:02 +01:00
|
|
|
"loop": true,
|
|
|
|
"name": "bas",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
2021-01-03 11:24:14 +01:00
|
|
|
"frames": [ SubResource( 13 ), SubResource( 14 ) ],
|
2021-01-03 11:05:02 +01:00
|
|
|
"loop": true,
|
2021-01-03 11:24:14 +01:00
|
|
|
"name": "gauche-hit",
|
2021-01-03 11:05:02 +01:00
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ SubResource( 15 ), SubResource( 16 ), SubResource( 17 ) ],
|
|
|
|
"loop": true,
|
2021-01-03 11:24:14 +01:00
|
|
|
"name": "haut-hit",
|
2021-01-03 11:05:02 +01:00
|
|
|
"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"]
|
2021-01-03 11:24:14 +01:00
|
|
|
[connection signal="timeout" from="TimerIsostasieVie" to="." method="_on_TimerIsostasieVie_timeout"]
|