93 lines
2.4 KiB
Plaintext
93 lines
2.4 KiB
Plaintext
[gd_scene load_steps=13 format=3 uid="uid://buofxmy7o4ddp"]
|
|
|
|
[ext_resource type="Script" path="res://Script/Player.gd" id="1_qrdxm"]
|
|
[ext_resource type="Texture2D" uid="uid://dlnh8tpe24xjy" path="res://Asset/Perso.png" id="2_eosoj"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_nxub4"]
|
|
atlas = ExtResource("2_eosoj")
|
|
region = Rect2(16, 32, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0crbn"]
|
|
atlas = ExtResource("2_eosoj")
|
|
region = Rect2(32, 32, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6rsx8"]
|
|
atlas = ExtResource("2_eosoj")
|
|
region = Rect2(48, 32, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_sc32o"]
|
|
atlas = ExtResource("2_eosoj")
|
|
region = Rect2(0, 32, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_iv57p"]
|
|
atlas = ExtResource("2_eosoj")
|
|
region = Rect2(0, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_00qri"]
|
|
atlas = ExtResource("2_eosoj")
|
|
region = Rect2(16, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xm2fd"]
|
|
atlas = ExtResource("2_eosoj")
|
|
region = Rect2(32, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fnhq5"]
|
|
atlas = ExtResource("2_eosoj")
|
|
region = Rect2(48, 0, 16, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_rq6e3"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_nxub4")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_0crbn")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_6rsx8")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_sc32o")
|
|
}],
|
|
"loop": true,
|
|
"name": &"moove",
|
|
"speed": 9.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_iv57p")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_00qri")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_xm2fd")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fnhq5")
|
|
}],
|
|
"loop": true,
|
|
"name": &"static",
|
|
"speed": 8.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_pf0pc"]
|
|
radius = 8.0
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
z_index = 1
|
|
position = Vector2(0, -8)
|
|
collision_layer = 3
|
|
script = ExtResource("1_qrdxm")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_rq6e3")
|
|
animation = &"moove"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
y_sort_enabled = true
|
|
position = Vector2(0, 8)
|
|
scale = Vector2(0.32, 0.333)
|
|
shape = SubResource("CircleShape2D_pf0pc")
|