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="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://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://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://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://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://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"]
|
[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")
|
atlas = ExtResource("3_kbaya")
|
||||||
region = Rect2(0, 250, 24, 50)
|
region = Rect2(0, 250, 24, 50)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yxjwj"]
|
[sub_resource type="AtlasTexture" id="AtlasTexture_w81fh"]
|
||||||
atlas = ExtResource("4_iiu2b")
|
atlas = ExtResource("4_uydsc")
|
||||||
region = Rect2(0, 0, 24, 50)
|
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"]
|
[sub_resource type="AtlasTexture" id="AtlasTexture_yqpcg"]
|
||||||
atlas = ExtResource("5_njcte")
|
atlas = ExtResource("5_njcte")
|
||||||
region = Rect2(0, 0, 24, 50)
|
region = Rect2(0, 0, 24, 50)
|
||||||
@@ -105,6 +150,10 @@ region = Rect2(0, 200, 24, 50)
|
|||||||
atlas = ExtResource("6_srvje")
|
atlas = ExtResource("6_srvje")
|
||||||
region = Rect2(0, 250, 24, 50)
|
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"]
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0nfn2"]
|
||||||
atlas = ExtResource("4_iiu2b")
|
atlas = ExtResource("4_iiu2b")
|
||||||
region = Rect2(0, 50, 24, 50)
|
region = Rect2(0, 50, 24, 50)
|
||||||
@@ -205,11 +254,44 @@ animations = [{
|
|||||||
}, {
|
}, {
|
||||||
"frames": [{
|
"frames": [{
|
||||||
"duration": 1.0,
|
"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,
|
"loop": true,
|
||||||
"name": &"idle",
|
"name": &"idle",
|
||||||
"speed": 5.0
|
"speed": 10.0
|
||||||
}, {
|
}, {
|
||||||
"frames": [{
|
"frames": [{
|
||||||
"duration": 1.0,
|
"duration": 1.0,
|
||||||
@@ -357,8 +439,8 @@ WALK_INCR_AIR = 4
|
|||||||
|
|
||||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||||
sprite_frames = SubResource("SpriteFrames_q52wx")
|
sprite_frames = SubResource("SpriteFrames_q52wx")
|
||||||
animation = &"jumping"
|
animation = &"idle"
|
||||||
frame_progress = 0.781098
|
frame_progress = 0.890388
|
||||||
|
|
||||||
[node name="wall_detect_left" type="RayCast2D" parent="."]
|
[node name="wall_detect_left" type="RayCast2D" parent="."]
|
||||||
target_position = Vector2(-8, 0)
|
target_position = Vector2(-8, 0)
|
||||||
|
|||||||
34
sprite/princess_idle.png.import
Normal file
34
sprite/princess_idle.png.import
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cx58dasu8epvx"
|
||||||
|
path="res://.godot/imported/princess_idle.png-5f425c13058d38979c63f92f12290a15.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sprite/princess_idle.png"
|
||||||
|
dest_files=["res://.godot/imported/princess_idle.png-5f425c13058d38979c63f92f12290a15.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
||||||
Reference in New Issue
Block a user