Files
Princesse-Lactose-Godot/caracters/cambey.tscn
Thomas Lavocat 6cf80d0a86 cambey: rajout du personnage
Pour l'instant il ne fait rien tout seul mais on pourra le coder dans le
futur.
2023-06-04 19:42:21 +02:00

85 lines
2.2 KiB
Plaintext

[gd_scene load_steps=11 format=3 uid="uid://6arjqbiqy20x"]
[ext_resource type="Texture2D" uid="uid://mm7s6bfxa4r1" path="res://sprite/camby_walking.png" id="1_2qg54"]
[sub_resource type="AtlasTexture" id="AtlasTexture_cuo84"]
atlas = ExtResource("1_2qg54")
region = Rect2(0, 0, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_du415"]
atlas = ExtResource("1_2qg54")
region = Rect2(0, 0, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_xhb16"]
atlas = ExtResource("1_2qg54")
region = Rect2(0, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_egt3i"]
atlas = ExtResource("1_2qg54")
region = Rect2(0, 48, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_ww6mn"]
atlas = ExtResource("1_2qg54")
region = Rect2(0, 72, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_kkdpt"]
atlas = ExtResource("1_2qg54")
region = Rect2(0, 96, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_2h0gi"]
atlas = ExtResource("1_2qg54")
region = Rect2(0, 120, 24, 24)
[sub_resource type="SpriteFrames" id="SpriteFrames_06qoc"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_cuo84")
}],
"loop": true,
"name": &"idle",
"speed": 1.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_du415")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xhb16")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_egt3i")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ww6mn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kkdpt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2h0gi")
}],
"loop": true,
"name": &"walking",
"speed": 10.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_pgu85"]
radius = 6.0
height = 16.0
[node name="Enemi" type="Node2D"]
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D"]
sprite_frames = SubResource("SpriteFrames_06qoc")
animation = &"walking"
autoplay = "idle"
frame = 2
frame_progress = 0.266815
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
position = Vector2(0, 2)
shape = SubResource("CapsuleShape2D_pgu85")