CyberTower/scenes/objects/tower.tscn
2024-02-16 23:35:39 +08:00

24 lines
901 B
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://cxlgt8h33u7os"]
[ext_resource type="Script" path="res://scripts/tower.gd" id="1_d5o8q"]
[ext_resource type="Texture2D" uid="uid://jxub8lma4oud" path="res://assets/images/tower.svg" id="2_ynj1l"]
[ext_resource type="Script" path="res://scripts/tower_health_display.gd" id="3_ijb8h"]
[sub_resource type="CircleShape2D" id="CircleShape2D_7mogk"]
radius = 129.139
[node name="Tower" type="Area2D" node_paths=PackedStringArray("sprite")]
collision_mask = 3
script = ExtResource("1_d5o8q")
sprite = NodePath("TowerSprite")
[node name="TowerSprite" type="Sprite2D" parent="."]
scale = Vector2(0.25, 0.25)
texture = ExtResource("2_ynj1l")
script = ExtResource("3_ijb8h")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_7mogk")
[connection signal="body_entered" from="." to="." method="_on_someone_entered"]