princesse/sprites: prise en compte de l'animation idle
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=50 format=3 uid="uid://dv0mokf4eogm7"]
|
||||
[gd_scene load_steps=63 format=3 uid="uid://dv0mokf4eogm7"]
|
||||
|
||||
[ext_resource type="Script" path="res://princesse.gd" id="1_dkp7s"]
|
||||
[ext_resource type="Texture2D" uid="uid://dr7fyh2rufsyj" path="res://sprite/princess_falling_direction.png" id="2_hholp"]
|
||||
[ext_resource type="Texture2D" uid="uid://cc2vjgg2dw27g" path="res://sprite/princess_falling.png" id="3_kbaya"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwod37xemy88x" path="res://sprite/princess.png" id="4_iiu2b"]
|
||||
[ext_resource type="Texture2D" uid="uid://cx58dasu8epvx" path="res://sprite/princess_idle.png" id="4_uydsc"]
|
||||
[ext_resource type="Texture2D" uid="uid://b1624w7katr05" path="res://sprite/princess_jumping_impulsion.png" id="5_njcte"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2xtcu5ysgi7o" path="res://sprite/princess_jumping.png" id="6_srvje"]
|
||||
[ext_resource type="Texture2D" uid="uid://d23lmsjrjw1mk" path="res://sprite/princess_wall_stick.png" id="7_8dix4"]
|
||||
@@ -65,10 +66,54 @@ region = Rect2(0, 200, 24, 50)
|
||||
atlas = ExtResource("3_kbaya")
|
||||
region = Rect2(0, 250, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yxjwj"]
|
||||
atlas = ExtResource("4_iiu2b")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w81fh"]
|
||||
atlas = ExtResource("4_uydsc")
|
||||
region = Rect2(0, 0, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ew2xl"]
|
||||
atlas = ExtResource("4_uydsc")
|
||||
region = Rect2(0, 50, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8ywhi"]
|
||||
atlas = ExtResource("4_uydsc")
|
||||
region = Rect2(0, 100, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0f1fb"]
|
||||
atlas = ExtResource("4_uydsc")
|
||||
region = Rect2(0, 150, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5cr2j"]
|
||||
atlas = ExtResource("4_uydsc")
|
||||
region = Rect2(0, 200, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1m2pr"]
|
||||
atlas = ExtResource("4_uydsc")
|
||||
region = Rect2(0, 250, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_s68q8"]
|
||||
atlas = ExtResource("4_uydsc")
|
||||
region = Rect2(0, 300, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_d4mkb"]
|
||||
atlas = ExtResource("4_uydsc")
|
||||
region = Rect2(0, 350, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8eckg"]
|
||||
atlas = ExtResource("4_uydsc")
|
||||
region = Rect2(0, 400, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jrvhm"]
|
||||
atlas = ExtResource("4_uydsc")
|
||||
region = Rect2(0, 450, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xiqys"]
|
||||
atlas = ExtResource("4_uydsc")
|
||||
region = Rect2(0, 500, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_h3ewj"]
|
||||
atlas = ExtResource("4_uydsc")
|
||||
region = Rect2(0, 550, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yqpcg"]
|
||||
atlas = ExtResource("5_njcte")
|
||||
region = Rect2(0, 0, 24, 50)
|
||||
@@ -105,6 +150,10 @@ region = Rect2(0, 200, 24, 50)
|
||||
atlas = ExtResource("6_srvje")
|
||||
region = Rect2(0, 250, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yxjwj"]
|
||||
atlas = ExtResource("4_iiu2b")
|
||||
region = Rect2(0, 0, 24, 50)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0nfn2"]
|
||||
atlas = ExtResource("4_iiu2b")
|
||||
region = Rect2(0, 50, 24, 50)
|
||||
@@ -205,11 +254,44 @@ animations = [{
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yxjwj")
|
||||
"texture": SubResource("AtlasTexture_w81fh")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ew2xl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8ywhi")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0f1fb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_5cr2j")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1m2pr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_s68q8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_d4mkb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8eckg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jrvhm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xiqys")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_h3ewj")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 5.0
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
@@ -357,8 +439,8 @@ WALK_INCR_AIR = 4
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_q52wx")
|
||||
animation = &"jumping"
|
||||
frame_progress = 0.781098
|
||||
animation = &"idle"
|
||||
frame_progress = 0.890388
|
||||
|
||||
[node name="wall_detect_left" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(-8, 0)
|
||||
|
||||
Reference in New Issue
Block a user