Fronter/Turret.tscn

161 lines
3.9 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=10 format=2]
[ext_resource path="res://Turret.gd" type="Script" id=1]
[ext_resource path="res://art/turret/turret.png" type="Texture" id=2]
[ext_resource path="res://art/turret/shootin.png" type="Texture" id=3]
[ext_resource path="res://art/turret/turret2.png" type="Texture" id=4]
[ext_resource path="res://art/turret/shootin2.png" type="Texture" id=5]
[ext_resource path="res://art/hand-numbs.ttf" type="DynamicFontData" id=6]
[sub_resource type="CircleShape2D" id=1]
custom_solver_bias = 0.0
radius = 32.0821
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 3 ) ],
"loop": true,
"name": "plain",
"speed": 5.0
}, {
"frames": [ ExtResource( 4 ), ExtResource( 5 ) ],
"loop": true,
"name": "spike",
"speed": 5.0
} ]
[sub_resource type="DynamicFont" id=3]
size = 50
use_mipmaps = false
use_filter = false
font_data = ExtResource( 6 )
_sections_unfolded = [ "Font", "Settings" ]
[node name="Turret" type="Node2D" index="0"]
script = ExtResource( 1 )
_sections_unfolded = [ "Material", "Pause", "Transform", "Visibility", "Z Index" ]
[node name="Beam" type="Line2D" parent="." index="0"]
position = Vector2( -26.6667, 6.66667 )
points = PoolVector2Array( 26.4234, -6.61987, 2000, 0 )
width = 10.0
default_color = Color( 1, 0, 0, 0 )
texture_mode = 31
begin_cap_mode = 2
end_cap_mode = 2
sharp_limit = 2.0
round_precision = 8
_sections_unfolded = [ "Border", "Capping" ]
[node name="Range" type="Area2D" parent="." index="1"]
position = Vector2( -51.824, -18.5961 )
scale = Vector2( 30, 30 )
input_pickable = true
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
monitorable = false
collision_layer = 31
collision_mask = 31
audio_bus_override = false
audio_bus_name = "Master"
_sections_unfolded = [ "Collision", "Transform" ]
__meta__ = {
"_edit_group_": true
}
[node name="RangeCircle" type="CollisionShape2D" parent="Range" index="0"]
scale = Vector2( 0.5, 0.5 )
shape = SubResource( 1 )
_sections_unfolded = [ "Transform", "Visibility" ]
[node name="FlashTimer" type="Timer" parent="." index="2"]
process_mode = 1
wait_time = 0.15
one_shot = false
autostart = false
[node name="ReloadTimer" type="Timer" parent="." index="3"]
process_mode = 1
wait_time = 1.0
one_shot = false
autostart = true
[node name="TurretSprite" type="AnimatedSprite" parent="." index="4"]
rotation = 0.785398
scale = Vector2( 0.12, 0.12 )
frames = SubResource( 2 )
animation = "plain"
_sections_unfolded = [ "Transform" ]
[node name="OpenMenuButton" type="Button" parent="." index="5"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = -81.0
margin_top = -76.0
margin_right = 82.0
margin_bottom = 77.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
flat = true
align = 1
[node name="Damage" type="Label" parent="." index="6"]
visible = false
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = -32.0
margin_top = -20.0
margin_right = 13.0
margin_bottom = 20.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
custom_fonts/font = SubResource( 3 )
text = "15"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
_sections_unfolded = [ "custom_fonts" ]
[connection signal="area_shape_entered" from="Range" to="." method="entityEnteredRange"]
[connection signal="area_shape_exited" from="Range" to="." method="entityExitedRange"]
[connection signal="timeout" from="FlashTimer" to="." method="_on_FlashTimer_timeout"]
[connection signal="timeout" from="ReloadTimer" to="." method="_on_ReloadTimer_timeout"]
[connection signal="pressed" from="OpenMenuButton" to="." method="_on_OpenMenuButton_pressed"]