summaryrefslogtreecommitdiff
path: root/Objects/Flag.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 /Objects/Flag.tscn
parent7920e8758506cd46c58ea4889c9f4fb704abfd16 (diff)
Adds a bunch of characters and fixes things
Diffstat (limited to 'Objects/Flag.tscn')
-rw-r--r--Objects/Flag.tscn44
1 files changed, 37 insertions, 7 deletions
diff --git a/Objects/Flag.tscn b/Objects/Flag.tscn
index e2c44eb..7d77d10 100644
--- a/Objects/Flag.tscn
+++ b/Objects/Flag.tscn
@@ -1,20 +1,50 @@
-[gd_scene load_steps=4 format=2]
+[gd_scene load_steps=9 format=2]
-[ext_resource path="res://icon.png" type="Texture" id=1]
+[ext_resource path="res://Assets/Environment/OA animated flag.png" type="Texture" id=1]
[ext_resource path="res://Objects/Flag.gd" type="Script" id=2]
-[sub_resource type="RectangleShape2D" id=1]
-extents = Vector2( 64.2993, 64.1957 )
+[sub_resource type="AtlasTexture" id=1]
+flags = 4
+atlas = ExtResource( 1 )
+region = Rect2( 0, 0, 38, 138 )
+
+[sub_resource type="AtlasTexture" id=2]
+flags = 4
+atlas = ExtResource( 1 )
+region = Rect2( 38, 0, 38, 138 )
+
+[sub_resource type="AtlasTexture" id=3]
+flags = 4
+atlas = ExtResource( 1 )
+region = Rect2( 76, 0, 38, 138 )
+
+[sub_resource type="AtlasTexture" id=4]
+flags = 4
+atlas = ExtResource( 1 )
+region = Rect2( 114, 0, 38, 138 )
+
+[sub_resource type="SpriteFrames" id=5]
+animations = [ {
+"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ],
+"loop": true,
+"name": "default",
+"speed": 5.0
+} ]
+
+[sub_resource type="RectangleShape2D" id=6]
+extents = Vector2( 19.3237, 69.0456 )
[node name="Flag" type="Area2D"]
collision_layer = 0
script = ExtResource( 2 )
-[node name="Sprite" type="Sprite" parent="."]
+[node name="Sprite" type="AnimatedSprite" parent="."]
scale = Vector2( 0.25, 0.25 )
-texture = ExtResource( 1 )
+frames = SubResource( 5 )
+frame = 3
+playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2( 0.25, 0.25 )
-shape = SubResource( 1 )
+shape = SubResource( 6 )
[connection signal="body_entered" from="." to="." method="_on_Flag_body_entered"]