2018-11-12 23:17:53 -05:00
|
|
|
[gd_scene load_steps=10 format=2]
|
2018-06-03 11:11:27 -04:00
|
|
|
|
|
|
|
[ext_resource path="res://Turret.gd" type="Script" id=1]
|
2018-11-14 20:36:02 -05:00
|
|
|
[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]
|
2018-11-12 23:17:53 -05:00
|
|
|
[ext_resource path="res://art/hand-numbs.ttf" type="DynamicFontData" id=6]
|
2018-06-03 11:11:27 -04:00
|
|
|
|
|
|
|
[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,
|
2018-11-14 20:36:02 -05:00
|
|
|
"name": "plain",
|
2018-11-12 23:17:53 -05:00
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 4 ), ExtResource( 5 ) ],
|
|
|
|
"loop": true,
|
2018-11-14 20:36:02 -05:00
|
|
|
"name": "spike",
|
2018-06-03 11:11:27 -04:00
|
|
|
"speed": 5.0
|
|
|
|
} ]
|
|
|
|
|
2018-11-12 23:17:53 -05:00
|
|
|
[sub_resource type="DynamicFont" id=3]
|
|
|
|
|
|
|
|
size = 50
|
|
|
|
use_mipmaps = false
|
|
|
|
use_filter = false
|
|
|
|
font_data = ExtResource( 6 )
|
|
|
|
_sections_unfolded = [ "Font", "Settings" ]
|
|
|
|
|
2018-11-14 20:36:02 -05:00
|
|
|
[node name="Turret" type="Node2D" index="0"]
|
2018-06-03 11:11:27 -04:00
|
|
|
|
|
|
|
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
|
2018-11-12 23:17:53 -05:00
|
|
|
begin_cap_mode = 2
|
|
|
|
end_cap_mode = 2
|
2018-06-03 11:11:27 -04:00
|
|
|
sharp_limit = 2.0
|
|
|
|
round_precision = 8
|
2018-11-12 23:17:53 -05:00
|
|
|
_sections_unfolded = [ "Border", "Capping" ]
|
2018-06-03 11:11:27 -04:00
|
|
|
|
|
|
|
[node name="Range" type="Area2D" parent="." index="1"]
|
|
|
|
|
|
|
|
position = Vector2( -51.824, -18.5961 )
|
2018-11-12 23:17:53 -05:00
|
|
|
scale = Vector2( 30, 30 )
|
2018-06-03 11:11:27 -04:00
|
|
|
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"
|
2018-11-12 23:17:53 -05:00
|
|
|
_sections_unfolded = [ "Collision", "Transform" ]
|
2018-06-03 11:11:27 -04:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_group_": true
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="RangeCircle" type="CollisionShape2D" parent="Range" index="0"]
|
|
|
|
|
2018-11-12 23:17:53 -05:00
|
|
|
scale = Vector2( 0.5, 0.5 )
|
2018-06-03 11:11:27 -04:00
|
|
|
shape = SubResource( 1 )
|
2018-11-12 23:17:53 -05:00
|
|
|
_sections_unfolded = [ "Transform", "Visibility" ]
|
2018-06-03 11:11:27 -04:00
|
|
|
|
|
|
|
[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 )
|
2018-11-12 23:17:53 -05:00
|
|
|
animation = "plain"
|
2018-06-03 11:11:27 -04:00
|
|
|
_sections_unfolded = [ "Transform" ]
|
|
|
|
|
2018-11-12 23:17:53 -05:00
|
|
|
[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" ]
|
|
|
|
|
2018-06-03 11:11:27 -04:00
|
|
|
[connection signal="area_shape_entered" from="Range" to="." method="entityEnteredRange"]
|
|
|
|
|
2018-11-12 23:17:53 -05:00
|
|
|
[connection signal="area_shape_exited" from="Range" to="." method="entityExitedRange"]
|
|
|
|
|
2018-06-03 11:11:27 -04:00
|
|
|
[connection signal="timeout" from="FlashTimer" to="." method="_on_FlashTimer_timeout"]
|
|
|
|
|
|
|
|
[connection signal="timeout" from="ReloadTimer" to="." method="_on_ReloadTimer_timeout"]
|
|
|
|
|
2018-11-12 23:17:53 -05:00
|
|
|
[connection signal="pressed" from="OpenMenuButton" to="." method="_on_OpenMenuButton_pressed"]
|
|
|
|
|
2018-06-03 11:11:27 -04:00
|
|
|
|