Frontier-of-Hell/scenes/towers/railgun_3.tscn

105 lines
3 KiB
Text
Raw Normal View History

2023-10-06 11:40:11 +02:00
[gd_scene load_steps=14 format=3 uid="uid://cfelbpijg3dp0"]
2023-10-07 18:13:45 +02:00
[ext_resource type="Script" path="res://scripts/towers/tower.gd" id="1_3s425"]
[ext_resource type="PackedScene" uid="uid://dqa80ptcc8p70" path="res://scenes/bullets/bullet_1.tscn" id="2_af8yd"]
[ext_resource type="Texture2D" uid="uid://dk3toqlc7igld" path="res://assets/spritesheets/towers/railgun-3.png" id="3_g5gi2"]
2023-10-06 11:40:11 +02:00
[sub_resource type="AtlasTexture" id="AtlasTexture_g3wst"]
2023-10-07 18:13:45 +02:00
atlas = ExtResource("3_g5gi2")
2023-10-06 11:40:11 +02:00
region = Rect2(0, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_kpvk8"]
2023-10-07 18:13:45 +02:00
atlas = ExtResource("3_g5gi2")
2023-10-06 11:40:11 +02:00
region = Rect2(128, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_xv60f"]
2023-10-07 18:13:45 +02:00
atlas = ExtResource("3_g5gi2")
2023-10-06 11:40:11 +02:00
region = Rect2(256, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_hocp4"]
2023-10-07 18:13:45 +02:00
atlas = ExtResource("3_g5gi2")
2023-10-06 11:40:11 +02:00
region = Rect2(384, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_00rie"]
2023-10-07 18:13:45 +02:00
atlas = ExtResource("3_g5gi2")
2023-10-06 11:40:11 +02:00
region = Rect2(512, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_fqp56"]
2023-10-07 18:13:45 +02:00
atlas = ExtResource("3_g5gi2")
2023-10-06 11:40:11 +02:00
region = Rect2(640, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_42mkq"]
2023-10-07 18:13:45 +02:00
atlas = ExtResource("3_g5gi2")
2023-10-06 11:40:11 +02:00
region = Rect2(768, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_cj5ok"]
2023-10-07 18:13:45 +02:00
atlas = ExtResource("3_g5gi2")
2023-10-06 11:40:11 +02:00
region = Rect2(896, 0, 128, 128)
[sub_resource type="SpriteFrames" id="SpriteFrames_olaum"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_g3wst")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kpvk8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xv60f")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hocp4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_00rie")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fqp56")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_42mkq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cj5ok")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_wmsbt"]
radius = 138.293
[node name="railgun-3" type="Node2D" groups=["Towers"]]
2023-10-07 18:13:45 +02:00
script = ExtResource("1_3s425")
bullet = ExtResource("2_af8yd")
2023-10-06 11:40:11 +02:00
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(-1, 0)
rotation = 1.5708
sprite_frames = SubResource("SpriteFrames_olaum")
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_wmsbt")
[node name="RayCast2D" type="RayCast2D" parent="."]
[node name="Timer" type="Timer" parent="."]
one_shot = true
2023-10-07 18:13:45 +02:00
[node name="HealthBar" type="ProgressBar" parent="."]
modulate = Color(0.431373, 0.815686, 0, 1)
offset_left = 4.0
offset_top = -15.0
offset_right = 106.0
offset_bottom = 12.0
rotation = 1.5708
scale = Vector2(0.3, 0.3)
show_percentage = false
2023-10-06 11:40:11 +02:00
[connection signal="body_entered" from="Area2D" to="." method="_on_body_entered"]
[connection signal="body_exited" from="Area2D" to="." method="_on_body_exited"]