summaryrefslogtreecommitdiff
path: root/Characters/Dove.tscn
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-01-09 23:30:27 +0100
committerDaniel Weipert <code@drogueronin.de>2021-01-09 23:30:27 +0100
commit485cd463b22e12394cd232812e2c3789ef37ab1c (patch)
tree5c455ec9c80b59a9f71ba5827b9902f2beb6df88 /Characters/Dove.tscn
parent7920e8758506cd46c58ea4889c9f4fb704abfd16 (diff)
Adds a bunch of characters and fixes things
Diffstat (limited to 'Characters/Dove.tscn')
-rw-r--r--Characters/Dove.tscn84
1 files changed, 84 insertions, 0 deletions
diff --git a/Characters/Dove.tscn b/Characters/Dove.tscn
new file mode 100644
index 0000000..14f99ce
--- /dev/null
+++ b/Characters/Dove.tscn
@@ -0,0 +1,84 @@
+[gd_scene load_steps=14 format=2]
+
+[ext_resource path="res://Assets/Characters/Dove/Front.png" type="Texture" id=1]
+[ext_resource path="res://Assets/Characters/Dove/Jump.png" type="Texture" id=2]
+[ext_resource path="res://Assets/Characters/Dove/Fall1Wings.png" type="Texture" id=3]
+[ext_resource path="res://Assets/Characters/Dove/Slide.png" type="Texture" id=4]
+[ext_resource path="res://Assets/Characters/Dove/Walk1.png" type="Texture" id=5]
+[ext_resource path="res://Assets/Characters/Dove/Back.png" type="Texture" id=6]
+[ext_resource path="res://Assets/Characters/Dove/Fall2.png" type="Texture" id=7]
+[ext_resource path="res://Assets/Characters/Dove/Walk2.png" type="Texture" id=8]
+[ext_resource path="res://Characters/Dove.gd" type="Script" id=9]
+[ext_resource path="res://Assets/Characters/Dove/Wall.png" type="Texture" id=10]
+[ext_resource path="res://Assets/Characters/Dove/Fall1.png" type="Texture" id=11]
+
+[sub_resource type="SpriteFrames" id=1]
+animations = [ {
+"frames": [ ExtResource( 6 ) ],
+"loop": true,
+"name": "back",
+"speed": 5.0
+}, {
+"frames": [ ExtResource( 1 ) ],
+"loop": true,
+"name": "idle",
+"speed": 5.0
+}, {
+"frames": [ ExtResource( 2 ) ],
+"loop": true,
+"name": "jump",
+"speed": 5.0
+}, {
+"frames": [ ExtResource( 5 ), ExtResource( 8 ) ],
+"loop": true,
+"name": "walk",
+"speed": 5.0
+}, {
+"frames": [ ExtResource( 7 ) ],
+"loop": true,
+"name": "fall_stop_landing",
+"speed": 5.0
+}, {
+"frames": [ ExtResource( 4 ) ],
+"loop": true,
+"name": "run",
+"speed": 5.0
+}, {
+"frames": [ ExtResource( 11 ) ],
+"loop": true,
+"name": "fall",
+"speed": 5.0
+}, {
+"frames": [ ExtResource( 3 ) ],
+"loop": false,
+"name": "fall_stop",
+"speed": 5.0
+}, {
+"frames": [ ExtResource( 10 ) ],
+"loop": true,
+"name": "wall",
+"speed": 5.0
+} ]
+
+[sub_resource type="RectangleShape2D" id=2]
+extents = Vector2( 9.21901, 11.2317 )
+
+[node name="Dove" type="KinematicBody2D"]
+collision_mask = 15
+script = ExtResource( 9 )
+
+[node name="Sprite" type="AnimatedSprite" parent="."]
+scale = Vector2( 0.7, 0.7 )
+frames = SubResource( 1 )
+animation = "idle"
+playing = true
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
+shape = SubResource( 2 )
+
+[node name="CheckFallStop" type="RayCast2D" parent="."]
+enabled = true
+cast_to = Vector2( 0, 150 )
+
+[node name="CheckFallLanding" type="RayCast2D" parent="."]
+enabled = true