This commit is contained in:
2022-11-11 18:36:01 +01:00
parent 65e6bbea0a
commit bd49f35e5a
16 changed files with 349 additions and 0 deletions

32
scenes/Player.tscn Normal file
View File

@@ -0,0 +1,32 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://assets/textures/cupcake.png" type="Texture" id=1]
[ext_resource path="res://src/Player.cs" type="Script" id=2]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 1 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[sub_resource type="CapsuleShape2D" id=2]
radius = 11.0
height = 4.0
[node name="Player" type="Area2D"]
script = ExtResource( 2 )
__meta__ = {
"_edit_group_": true
}
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
scale = Vector2( 0.2, 0.2 )
frames = SubResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 2 )
[node name="Camera2D" type="Camera2D" parent="."]
current = true