summaryrefslogtreecommitdiff
path: root/Player.tscn
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-05-23 23:45:28 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-05-23 23:45:52 +0200
commit7b11b1c2d8552b99f3e615a79621a2db769d9f5d (patch)
tree2a885d0835352ba961508921ffc872dcd46e905d /Player.tscn
initial commit
Diffstat (limited to 'Player.tscn')
-rw-r--r--Player.tscn24
1 files changed, 24 insertions, 0 deletions
diff --git a/Player.tscn b/Player.tscn
new file mode 100644
index 0000000..fc9efcc
--- /dev/null
+++ b/Player.tscn
@@ -0,0 +1,24 @@
+[gd_scene load_steps=4 format=3 uid="uid://58k8ukwgcv4u"]
+
+[ext_resource type="Script" path="res://Player.gd" id="1_0qjo6"]
+[ext_resource type="Texture2D" uid="uid://c82tsvwwnmfhe" path="res://icon.svg" id="2_sojjd"]
+
+[sub_resource type="SpriteFrames" id="SpriteFrames_0mhwv"]
+animations = [{
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("2_sojjd")
+}],
+"loop": true,
+"name": &"default",
+"speed": 5.0
+}]
+
+[node name="Player" type="CharacterBody2D"]
+script = ExtResource("1_0qjo6")
+
+[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
+polygon = PackedVector2Array(0, -64, 48, -64, 64, -48, 64, 48, 48, 64, -48, 64, -64, 48, -64, 0, -64, -48, -48, -64)
+
+[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
+sprite_frames = SubResource("SpriteFrames_0mhwv")