Files
Thomas Lavocat e7baae8e9c cubey: ajout du personnage
Pour l'instant il ne sait rien faire tout seul, mais on pourra le coder
dans le futur
2023-06-04 19:42:18 +02:00

91 lines
2.4 KiB
Plaintext

[gd_scene load_steps=12 format=3 uid="uid://q38h0apsm2fy"]
[ext_resource type="Texture2D" uid="uid://cn2emsgmbno8i" path="res://sprite/cubey_walking.png" id="1_4m3bv"]
[sub_resource type="AtlasTexture" id="AtlasTexture_v0wdq"]
atlas = ExtResource("1_4m3bv")
region = Rect2(0, 0, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_6d0aa"]
atlas = ExtResource("1_4m3bv")
region = Rect2(0, 96, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_8q6vi"]
atlas = ExtResource("1_4m3bv")
region = Rect2(0, 0, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_jg3yk"]
atlas = ExtResource("1_4m3bv")
region = Rect2(0, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_fbodr"]
atlas = ExtResource("1_4m3bv")
region = Rect2(0, 48, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_grlpb"]
atlas = ExtResource("1_4m3bv")
region = Rect2(0, 72, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_pncho"]
atlas = ExtResource("1_4m3bv")
region = Rect2(0, 96, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_j0kil"]
atlas = ExtResource("1_4m3bv")
region = Rect2(0, 120, 24, 24)
[sub_resource type="SpriteFrames" id="SpriteFrames_06qoc"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_v0wdq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6d0aa")
}],
"loop": true,
"name": &"idle",
"speed": 1.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_8q6vi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jg3yk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fbodr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_grlpb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pncho")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_j0kil")
}],
"loop": true,
"name": &"walking",
"speed": 10.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_pgu85"]
radius = 6.0
height = 20.0
[node name="Cubey" type="Node2D"]
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D"]
sprite_frames = SubResource("SpriteFrames_06qoc")
animation = &"idle"
autoplay = "idle"
frame_progress = 0.501787
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
position = Vector2(0, 2)
shape = SubResource("CapsuleShape2D_pgu85")