70 lines
2.1 KiB
Text
70 lines
2.1 KiB
Text
[gd_scene load_steps=11 format=3 uid="uid://cmaovvr15b3qk"]
|
|
|
|
[ext_resource type="Script" uid="uid://ddidj1uau28ck" path="res://player.gd" id="1_4flbx"]
|
|
[ext_resource type="Texture2D" uid="uid://cyvxm1hf1rc12" path="res://player_walk.png" id="2_onrkg"]
|
|
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://earth_aligner.tscn" id="3_i3pqv"]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_onrkg"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_i3pqv"]
|
|
atlas = ExtResource("2_onrkg")
|
|
region = Rect2(0, 0, 240, 240)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_hqtel"]
|
|
atlas = ExtResource("2_onrkg")
|
|
region = Rect2(240, 0, 240, 240)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_sweqy"]
|
|
atlas = ExtResource("2_onrkg")
|
|
region = Rect2(480, 0, 240, 240)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2hs0m"]
|
|
atlas = ExtResource("2_onrkg")
|
|
region = Rect2(720, 0, 240, 240)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1jxqw"]
|
|
atlas = ExtResource("2_onrkg")
|
|
region = Rect2(960, 0, 240, 240)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_dw050"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_i3pqv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_hqtel")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_sweqy")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_2hs0m")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1jxqw")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk",
|
|
"speed": 10.0
|
|
}]
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
script = ExtResource("1_4flbx")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, 5.6)
|
|
scale = Vector2(0.7, 0.72)
|
|
shape = SubResource("CapsuleShape2D_onrkg")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(5.96046e-08, 0)
|
|
scale = Vector2(0.2, 0.2)
|
|
sprite_frames = SubResource("SpriteFrames_dw050")
|
|
animation = &"walk"
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
position = Vector2(0, -50)
|
|
ignore_rotation = false
|
|
|
|
[node name="EarthAligner" parent="." instance=ExtResource("3_i3pqv")]
|