mirror of
https://github.com/anthonyaxenov/toddler-play.git
synced 2024-09-07 23:56:49 +00:00
95 lines
2.3 KiB
Plaintext
95 lines
2.3 KiB
Plaintext
[gd_scene load_steps=10 format=3 uid="uid://wxtwka544dwb"]
|
|
|
|
[ext_resource type="Script" path="res://player.gd" id="1_nwtic"]
|
|
[ext_resource type="Texture2D" uid="uid://b307m4o45bdyv" path="res://assets/platformer-characters/Vector/player_vector.svg" id="2_howdq"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0pn77"]
|
|
atlas = ExtResource("2_howdq")
|
|
region = Rect2(320, 0, 80, 110)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kad7h"]
|
|
atlas = ExtResource("2_howdq")
|
|
region = Rect2(400, 220, 80, 110)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tells"]
|
|
atlas = ExtResource("2_howdq")
|
|
region = Rect2(80, 0, 80, 110)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tbyw6"]
|
|
atlas = ExtResource("2_howdq")
|
|
region = Rect2(0, 110, 80, 110)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_keuuo"]
|
|
atlas = ExtResource("2_howdq")
|
|
region = Rect2(80, 110, 80, 110)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_bvta6"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_0pn77")
|
|
}],
|
|
"loop": true,
|
|
"name": &"hit",
|
|
"speed": 1.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_kad7h")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 1.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_tells")
|
|
}],
|
|
"loop": true,
|
|
"name": &"jump",
|
|
"speed": 1.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_tbyw6")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_keuuo")
|
|
}],
|
|
"loop": true,
|
|
"name": &"move",
|
|
"speed": 7.0
|
|
}]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_4kdrc"]
|
|
radius = 9.0
|
|
height = 28.0
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
script = ExtResource("1_nwtic")
|
|
|
|
[node name="Sprite" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(-4.8, 0)
|
|
scale = Vector2(0.33, 0.327273)
|
|
sprite_frames = SubResource("SpriteFrames_bvta6")
|
|
animation = &"jump"
|
|
offset = Vector2(20, 0)
|
|
|
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
|
|
position = Vector2(2, 4)
|
|
shape = SubResource("CapsuleShape2D_4kdrc")
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
offset = Vector2(0, -30)
|
|
zoom = Vector2(2.25, 2.25)
|
|
process_callback = 0
|
|
limit_left = 0
|
|
limit_top = 0
|
|
limit_right = 2060
|
|
limit_bottom = 650
|
|
position_smoothing_enabled = true
|
|
position_smoothing_speed = 10.0
|
|
drag_horizontal_enabled = true
|
|
editor_draw_limits = true
|
|
editor_draw_drag_margin = true
|