diff --git a/princesse.tscn b/princesse.tscn index 2e71658..1a8cd5a 100644 --- a/princesse.tscn +++ b/princesse.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=42 format=3 uid="uid://dv0mokf4eogm7"] +[gd_scene load_steps=50 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"] @@ -41,14 +41,30 @@ region = Rect2(0, 200, 24, 50) atlas = ExtResource("2_hholp") region = Rect2(0, 250, 24, 50) -[sub_resource type="AtlasTexture" id="AtlasTexture_fyqwp"] +[sub_resource type="AtlasTexture" id="AtlasTexture_07km1"] atlas = ExtResource("3_kbaya") region = Rect2(0, 0, 24, 50) -[sub_resource type="AtlasTexture" id="AtlasTexture_mxdjd"] +[sub_resource type="AtlasTexture" id="AtlasTexture_xj4lb"] atlas = ExtResource("3_kbaya") region = Rect2(0, 50, 24, 50) +[sub_resource type="AtlasTexture" id="AtlasTexture_5rs5h"] +atlas = ExtResource("3_kbaya") +region = Rect2(0, 100, 24, 50) + +[sub_resource type="AtlasTexture" id="AtlasTexture_wvl3e"] +atlas = ExtResource("3_kbaya") +region = Rect2(0, 150, 24, 50) + +[sub_resource type="AtlasTexture" id="AtlasTexture_kdxf0"] +atlas = ExtResource("3_kbaya") +region = Rect2(0, 200, 24, 50) + +[sub_resource type="AtlasTexture" id="AtlasTexture_f42nq"] +atlas = ExtResource("3_kbaya") +region = Rect2(0, 250, 24, 50) + [sub_resource type="AtlasTexture" id="AtlasTexture_yxjwj"] atlas = ExtResource("4_iiu2b") region = Rect2(0, 0, 24, 50) @@ -65,14 +81,30 @@ region = Rect2(0, 50, 24, 50) atlas = ExtResource("5_njcte") region = Rect2(0, 100, 24, 50) -[sub_resource type="AtlasTexture" id="AtlasTexture_du0hw"] +[sub_resource type="AtlasTexture" id="AtlasTexture_5aadj"] atlas = ExtResource("6_srvje") region = Rect2(0, 0, 24, 50) -[sub_resource type="AtlasTexture" id="AtlasTexture_gu3eg"] +[sub_resource type="AtlasTexture" id="AtlasTexture_ltvav"] atlas = ExtResource("6_srvje") region = Rect2(0, 50, 24, 50) +[sub_resource type="AtlasTexture" id="AtlasTexture_v8l2b"] +atlas = ExtResource("6_srvje") +region = Rect2(0, 100, 24, 50) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1a5fd"] +atlas = ExtResource("6_srvje") +region = Rect2(0, 150, 24, 50) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ijaps"] +atlas = ExtResource("6_srvje") +region = Rect2(0, 200, 24, 50) + +[sub_resource type="AtlasTexture" id="AtlasTexture_gik46"] +atlas = ExtResource("6_srvje") +region = Rect2(0, 250, 24, 50) + [sub_resource type="AtlasTexture" id="AtlasTexture_0nfn2"] atlas = ExtResource("4_iiu2b") region = Rect2(0, 50, 24, 50) @@ -150,14 +182,26 @@ animations = [{ }, { "frames": [{ "duration": 1.0, -"texture": SubResource("AtlasTexture_fyqwp") +"texture": SubResource("AtlasTexture_07km1") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_mxdjd") +"texture": SubResource("AtlasTexture_xj4lb") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_5rs5h") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_wvl3e") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_kdxf0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_f42nq") }], "loop": true, "name": &"falling_straight", -"speed": 4.0 +"speed": 10.0 }, { "frames": [{ "duration": 1.0, @@ -183,14 +227,26 @@ animations = [{ }, { "frames": [{ "duration": 1.0, -"texture": SubResource("AtlasTexture_du0hw") +"texture": SubResource("AtlasTexture_5aadj") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_gu3eg") +"texture": SubResource("AtlasTexture_ltvav") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_v8l2b") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1a5fd") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ijaps") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_gik46") }], "loop": true, "name": &"jumping", -"speed": 4.0 +"speed": 10.0 }, { "frames": [{ "duration": 1.0, @@ -249,26 +305,26 @@ length = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true -tracks/0/path = NodePath("AnimatedSprite2D:rotation") +tracks/0/path = NodePath("AnimatedSprite2D:scale") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0.1, 0.5), "transitions": PackedFloat32Array(1, 1), "update": 0, -"values": [0.0, 31.4159] +"values": [Vector2(1, 1), Vector2(0, 0)] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true -tracks/1/path = NodePath("AnimatedSprite2D:scale") +tracks/1/path = NodePath("AnimatedSprite2D:rotation") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0.1, 0.5), "transitions": PackedFloat32Array(1, 1), "update": 0, -"values": [Vector2(1, 1), Vector2(0, 0)] +"values": [0.0, 31.4159] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_hxxp0"] @@ -301,8 +357,8 @@ WALK_INCR_AIR = 4 [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] sprite_frames = SubResource("SpriteFrames_q52wx") -animation = &"falling_diagonals" -frame_progress = 0.0129146 +animation = &"jumping" +frame_progress = 0.781098 [node name="wall_detect_left" type="RayCast2D" parent="."] target_position = Vector2(-8, 0)