Files
Defensaria/Game/Towers/archer_tower.tscn
2025-03-17 11:48:23 +01:00

86 lines
2.4 KiB
Plaintext

[gd_scene load_steps=12 format=3 uid="uid://brugqnquwjrkt"]
[ext_resource type="Texture2D" uid="uid://fxf6wd4317fb" path="res://Assets/Towers/4.png" id="1_1544k"]
[ext_resource type="Script" uid="uid://dil41a1ymo0ua" path="res://Game/Towers/towers.gd" id="1_ssiuv"]
[sub_resource type="AtlasTexture" id="AtlasTexture_ssiuv"]
atlas = ExtResource("1_1544k")
region = Rect2(0, 0, 70, 130)
[sub_resource type="AtlasTexture" id="AtlasTexture_be2t6"]
atlas = ExtResource("1_1544k")
region = Rect2(70, 0, 70, 130)
[sub_resource type="AtlasTexture" id="AtlasTexture_ambw7"]
atlas = ExtResource("1_1544k")
region = Rect2(140, 0, 70, 130)
[sub_resource type="AtlasTexture" id="AtlasTexture_mkf4u"]
atlas = ExtResource("1_1544k")
region = Rect2(210, 0, 70, 130)
[sub_resource type="AtlasTexture" id="AtlasTexture_wwkyq"]
atlas = ExtResource("1_1544k")
region = Rect2(280, 0, 70, 130)
[sub_resource type="AtlasTexture" id="AtlasTexture_e1la6"]
atlas = ExtResource("1_1544k")
region = Rect2(350, 0, 70, 130)
[sub_resource type="SpriteFrames" id="SpriteFrames_xrf6u"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ssiuv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_be2t6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ambw7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mkf4u")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wwkyq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_e1la6")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_ssiuv"]
radius = 29.0
height = 88.0
[sub_resource type="CircleShape2D" id="CircleShape2D_be2t6"]
radius = 183.044
[node name="ArcherTower" type="Node2D"]
script = ExtResource("1_ssiuv")
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D"]
sprite_frames = SubResource("SpriteFrames_xrf6u")
autoplay = "default"
frame_progress = 0.792297
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
position = Vector2(0, 17)
shape = SubResource("CapsuleShape2D_ssiuv")
[node name="Area2D" type="Area2D" parent="CharacterBody2D"]
position = Vector2(2, 20)
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D/Area2D"]
shape = SubResource("CircleShape2D_be2t6")
[node name="Timer" type="Timer" parent="."]
autostart = true