[gd_scene load_steps=14 format=3 uid="uid://by1x56w21o165"] [ext_resource type="Script" path="res://Towers/Tower.gd" id="1_axo1d"] [ext_resource type="Texture2D" uid="uid://b1b18rd0tqbar" path="res://core_outdoor.png" id="1_mrep8"] [ext_resource type="PackedScene" uid="uid://cqktpc8c7ecn3" path="res://Game/Selection/SelectableArea.tscn" id="3_57d5u"] [ext_resource type="Texture2D" uid="uid://dujcs2ls3u6tj" path="res://Towers/Assets/spritesheet.png" id="3_brkps"] [sub_resource type="AtlasTexture" id="AtlasTexture_1ubf7"] atlas = ExtResource("3_brkps") region = Rect2(0, 0, 70, 96) [sub_resource type="AtlasTexture" id="AtlasTexture_5lmyn"] atlas = ExtResource("3_brkps") region = Rect2(70, 0, 70, 96) [sub_resource type="AtlasTexture" id="AtlasTexture_rpcx3"] atlas = ExtResource("3_brkps") region = Rect2(140, 0, 70, 96) [sub_resource type="AtlasTexture" id="AtlasTexture_ds0p3"] atlas = ExtResource("3_brkps") region = Rect2(210, 0, 70, 96) [sub_resource type="AtlasTexture" id="AtlasTexture_j7nj3"] atlas = ExtResource("3_brkps") region = Rect2(280, 0, 70, 96) [sub_resource type="AtlasTexture" id="AtlasTexture_lklxx"] atlas = ExtResource("3_brkps") region = Rect2(350, 0, 70, 96) [sub_resource type="SpriteFrames" id="SpriteFrames_cd6hj"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_1ubf7") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_5lmyn") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_rpcx3") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ds0p3") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_j7nj3") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_lklxx") }], "loop": true, "name": &"default", "speed": 5.0 }] [sub_resource type="RectangleShape2D" id="RectangleShape2D_atm5x"] size = Vector2(31, 31) [sub_resource type="RectangleShape2D" id="RectangleShape2D_312i7"] size = Vector2(32, 32) [node name="Tower" type="StaticBody2D"] collision_layer = 4 collision_mask = 5 input_pickable = true script = ExtResource("1_axo1d") [node name="Sprite2D" type="Sprite2D" parent="."] visible = false texture_filter = 1 position = Vector2(0, -11) texture = ExtResource("1_mrep8") centered = false region_enabled = true region_rect = Rect2(400, 439, 32, 41) [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] texture_filter = 1 position = Vector2(0, -12) scale = Vector2(0.457143, 0.457143) sprite_frames = SubResource("SpriteFrames_cd6hj") frame_progress = 0.499103 centered = false [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(16, 16) shape = SubResource("RectangleShape2D_atm5x") [node name="SelectableArea" parent="." instance=ExtResource("3_57d5u")] [node name="CollisionShape2D" type="CollisionShape2D" parent="SelectableArea"] position = Vector2(16, 16) shape = SubResource("RectangleShape2D_312i7") [node name="ComponentsAnchor" type="HFlowContainer" parent="."] unique_name_in_owner = true offset_right = 32.0 offset_bottom = 32.0 size_flags_vertical = 3 theme_override_constants/h_separation = 0 theme_override_constants/v_separation = 0 reverse_fill = true [node name="GroundAnchor" type="Marker2D" parent="."] position = Vector2(16, 29) [node name="CenterAnchor" type="Marker2D" parent="."] position = Vector2(16, 16) [connection signal="input_event" from="." to="." method="_on_input_event"] [connection signal="tree_exiting" from="." to="." method="_on_tree_exiting"] [connection signal="hover_enter" from="SelectableArea" to="." method="_on_selectable_area_hover_enter"] [connection signal="hover_exit" from="SelectableArea" to="." method="_on_selectable_area_hover_exit"] [connection signal="select_primary" from="SelectableArea" to="." method="_on_selectable_area_select_primary"]