2017-04-23 19:34:18 +00:00
|
|
|
[gd_scene load_steps=9 format=1]
|
2017-04-22 22:58:11 +00:00
|
|
|
|
|
|
|
[ext_resource path="res://game.gd" type="Script" id=1]
|
2017-04-23 19:34:18 +00:00
|
|
|
[ext_resource path="res://assets/black.png" type="Texture" id=2]
|
|
|
|
[ext_resource path="res://assets/progress.png" type="Texture" id=3]
|
|
|
|
[ext_resource path="res://assets/progress_suspicion.png" type="Texture" id=4]
|
|
|
|
[ext_resource path="res://scripts/button_ram.gd" type="Script" id=5]
|
|
|
|
[ext_resource path="res://scripts/eat_button.gd" type="Script" id=6]
|
|
|
|
[ext_resource path="res://pen.tscn" type="PackedScene" id=7]
|
|
|
|
[ext_resource path="res://player.tscn" type="PackedScene" id=8]
|
2017-04-22 22:58:11 +00:00
|
|
|
|
|
|
|
[node name="game" type="Node2D"]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 31.9212, 31.9212 )
|
|
|
|
script/script = ExtResource( 1 )
|
|
|
|
|
2017-04-23 19:34:18 +00:00
|
|
|
[node name="HUD" type="CanvasLayer" parent="."]
|
2017-04-22 22:58:11 +00:00
|
|
|
|
2017-04-23 19:34:18 +00:00
|
|
|
layer = 2
|
|
|
|
offset = Vector2( 0, 0 )
|
|
|
|
rotation = 0.0
|
|
|
|
scale = Vector2( 1, 1 )
|
2017-04-22 22:58:11 +00:00
|
|
|
|
2017-04-23 19:34:18 +00:00
|
|
|
[node name="TimeLeftBar" type="TextureProgress" parent="HUD"]
|
2017-04-22 22:58:11 +00:00
|
|
|
|
2017-04-23 19:34:18 +00:00
|
|
|
rect/scale = Vector2( 1, 10 )
|
|
|
|
focus/ignore_mouse = false
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 2
|
|
|
|
margin/left = 967.0
|
|
|
|
margin/top = 96.0
|
|
|
|
margin/right = 1017.0
|
|
|
|
margin/bottom = 146.0
|
|
|
|
range/min = 0.0
|
|
|
|
range/max = 100.0
|
|
|
|
range/step = 0.1
|
|
|
|
range/page = 0.0
|
|
|
|
range/value = 100.0
|
|
|
|
range/exp_edit = false
|
|
|
|
range/rounded = false
|
|
|
|
texture/under = ExtResource( 2 )
|
|
|
|
texture/over = null
|
|
|
|
texture/progress = ExtResource( 3 )
|
|
|
|
mode = 3
|
|
|
|
radial_fill/fill_degrees = 360.0
|
|
|
|
radial_fill/center_offset = Vector2( 0, 0 )
|
2017-04-22 22:58:11 +00:00
|
|
|
|
2017-04-23 19:34:18 +00:00
|
|
|
[node name="SuspicionBar" type="TextureProgress" parent="HUD"]
|
2017-04-22 22:58:11 +00:00
|
|
|
|
2017-04-23 19:34:18 +00:00
|
|
|
visibility/behind_parent = true
|
2017-04-22 22:58:11 +00:00
|
|
|
focus/ignore_mouse = false
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 2
|
2017-04-23 19:34:18 +00:00
|
|
|
margin/left = 966.0
|
|
|
|
margin/top = 25.0
|
|
|
|
margin/right = 1016.0
|
|
|
|
margin/bottom = 75.0
|
2017-04-22 22:58:11 +00:00
|
|
|
range/min = 0.0
|
|
|
|
range/max = 100.0
|
|
|
|
range/step = 0.1
|
|
|
|
range/page = 0.0
|
|
|
|
range/value = 100.0
|
|
|
|
range/exp_edit = false
|
|
|
|
range/rounded = false
|
2017-04-23 19:34:18 +00:00
|
|
|
texture/under = ExtResource( 2 )
|
2017-04-22 22:58:11 +00:00
|
|
|
texture/over = null
|
2017-04-23 19:34:18 +00:00
|
|
|
texture/progress = ExtResource( 4 )
|
2017-04-22 22:58:11 +00:00
|
|
|
mode = 3
|
|
|
|
radial_fill/fill_degrees = 360.0
|
|
|
|
radial_fill/center_offset = Vector2( 0, 0 )
|
|
|
|
|
2017-04-23 19:34:18 +00:00
|
|
|
[node name="ToolBar" type="HButtonArray" parent="HUD"]
|
2017-04-22 22:58:11 +00:00
|
|
|
|
|
|
|
anchor/left = 3
|
|
|
|
anchor/right = 3
|
|
|
|
focus/ignore_mouse = false
|
|
|
|
focus/stop_mouse = false
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 2
|
2017-04-23 19:34:18 +00:00
|
|
|
margin/left = 232.079
|
|
|
|
margin/top = 553.921
|
|
|
|
margin/right = -253.921
|
|
|
|
margin/bottom = 593.921
|
2017-04-22 22:58:11 +00:00
|
|
|
flat = false
|
|
|
|
button/count = 0
|
|
|
|
button/min_button_size = -1.0
|
|
|
|
button/align = 112
|
|
|
|
|
2017-04-23 19:34:18 +00:00
|
|
|
[node name="RamButton" type="ToolButton" parent="HUD/ToolBar"]
|
2017-04-22 22:58:11 +00:00
|
|
|
|
|
|
|
focus/ignore_mouse = false
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 2
|
|
|
|
margin/left = 0.0
|
|
|
|
margin/top = 0.0
|
|
|
|
margin/right = 40.0
|
|
|
|
margin/bottom = 22.0
|
|
|
|
toggle_mode = false
|
|
|
|
enabled_focus_mode = 2
|
|
|
|
shortcut = null
|
|
|
|
text = "Ram"
|
|
|
|
flat = true
|
2017-04-23 19:34:18 +00:00
|
|
|
script/script = ExtResource( 5 )
|
2017-04-22 22:58:11 +00:00
|
|
|
|
2017-04-23 19:34:18 +00:00
|
|
|
[node name="EatButton" type="ToolButton" parent="HUD/ToolBar"]
|
2017-04-22 22:58:11 +00:00
|
|
|
|
|
|
|
focus/ignore_mouse = false
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 2
|
2017-04-23 19:34:18 +00:00
|
|
|
margin/left = 58.0
|
|
|
|
margin/top = 1.0
|
|
|
|
margin/right = 89.0
|
|
|
|
margin/bottom = 23.0
|
|
|
|
toggle_mode = false
|
|
|
|
enabled_focus_mode = 2
|
|
|
|
shortcut = null
|
|
|
|
text = "Eat"
|
|
|
|
flat = true
|
|
|
|
script/script = ExtResource( 6 )
|
2017-04-22 22:58:11 +00:00
|
|
|
|
2017-04-23 19:34:18 +00:00
|
|
|
[node name="Panel" type="Panel" parent="HUD"]
|
2017-04-22 22:58:11 +00:00
|
|
|
|
|
|
|
visibility/visible = false
|
2017-04-23 19:34:18 +00:00
|
|
|
focus/ignore_mouse = false
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 2
|
|
|
|
margin/left = 312.0
|
|
|
|
margin/top = 200.0
|
|
|
|
margin/right = 712.0
|
|
|
|
margin/bottom = 400.0
|
2017-04-22 22:58:11 +00:00
|
|
|
|
2017-04-23 19:34:18 +00:00
|
|
|
[node name="PostGameMessage" type="Node2D" parent="HUD/Panel"]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 32, 32 )
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="HUD/Panel/PostGameMessage"]
|
2017-04-22 22:58:11 +00:00
|
|
|
|
|
|
|
focus/ignore_mouse = true
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 0
|
2017-04-23 19:34:18 +00:00
|
|
|
margin/left = -27.0
|
|
|
|
margin/top = -27.0
|
|
|
|
margin/right = 363.0
|
|
|
|
margin/bottom = 63.0
|
2017-04-22 22:58:11 +00:00
|
|
|
percent_visible = 1.0
|
|
|
|
lines_skipped = 0
|
|
|
|
max_lines_visible = -1
|
|
|
|
|
2017-04-23 19:34:18 +00:00
|
|
|
[node name="Replay" type="Button" parent="HUD/Panel"]
|
|
|
|
|
|
|
|
focus/ignore_mouse = false
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 2
|
|
|
|
margin/left = 0.0
|
|
|
|
margin/top = 100.0
|
|
|
|
margin/right = 200.0
|
|
|
|
margin/bottom = 200.0
|
|
|
|
toggle_mode = false
|
|
|
|
enabled_focus_mode = 2
|
|
|
|
shortcut = null
|
|
|
|
text = "Replay"
|
|
|
|
flat = false
|
|
|
|
|
|
|
|
[node name="Quit" type="Button" parent="HUD/Panel"]
|
|
|
|
|
|
|
|
focus/ignore_mouse = false
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 2
|
|
|
|
margin/left = 200.0
|
|
|
|
margin/top = 100.0
|
|
|
|
margin/right = 400.0
|
|
|
|
margin/bottom = 200.0
|
|
|
|
toggle_mode = false
|
|
|
|
enabled_focus_mode = 2
|
|
|
|
shortcut = null
|
|
|
|
text = "Quit"
|
|
|
|
flat = false
|
|
|
|
|
|
|
|
[node name="Level" type="Node" parent="."]
|
|
|
|
|
|
|
|
[node name="Pen" parent="Level" instance=ExtResource( 7 )]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 174.948, 275.025 )
|
|
|
|
|
|
|
|
[node name="FlockPoints" type="Node2D" parent="Level"]
|
|
|
|
|
|
|
|
editor/display_folded = true
|
|
|
|
transform/pos = Vector2( 31.9212, 31.9212 )
|
|
|
|
|
|
|
|
[node name="1" type="Node2D" parent="Level/FlockPoints"]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 475.346, 230.471 )
|
|
|
|
|
|
|
|
[node name="2" type="Node2D" parent="Level/FlockPoints"]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 842.105, 103.047 )
|
|
|
|
|
|
|
|
[node name="3" type="Node2D" parent="Level/FlockPoints"]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 844.321, 387.812 )
|
|
|
|
|
|
|
|
[node name="4" type="Node2D" parent="Level/FlockPoints"]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 88.6427, 390.028 )
|
|
|
|
|
|
|
|
[node name="5" type="Node2D" parent="Level/FlockPoints"]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 84.2105, 96.3989 )
|
|
|
|
|
|
|
|
[node name="Actors" type="Node" parent="."]
|
|
|
|
|
|
|
|
[node name="player" parent="Actors" groups=[
|
|
|
|
"Player",
|
|
|
|
] instance=ExtResource( 8 )]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 500.917, 367.093 )
|
|
|
|
|
|
|
|
[connection signal="player_action" from="." to="Actors/player" method="_on_game_player_action"]
|
|
|
|
|
|
|
|
[connection signal="pressed" from="HUD/Panel/Replay" to="." method="_on_Replay_pressed"]
|
|
|
|
|
|
|
|
[connection signal="released" from="HUD/Panel/Replay" to="." method="_on_Replay_released"]
|
|
|
|
|
|
|
|
[connection signal="pressed" from="HUD/Panel/Quit" to="." method="_on_Quit_pressed"]
|
|
|
|
|
|
|
|
[connection signal="released" from="HUD/Panel/Quit" to="." method="_on_Quit_released"]
|
2017-04-22 22:58:11 +00:00
|
|
|
|
|
|
|
|