2017-07-31 00:17:24 +00:00
|
|
|
[gd_scene load_steps=23 format=1]
|
2017-07-29 23:11:45 +00:00
|
|
|
|
|
|
|
[ext_resource path="res://game.gd" type="Script" id=1]
|
2017-07-31 00:17:24 +00:00
|
|
|
[ext_resource path="res://areas/reactor.tscn" type="PackedScene" id=2]
|
|
|
|
[ext_resource path="res://areas/engineering.tscn" type="PackedScene" id=3]
|
|
|
|
[ext_resource path="res://areas/command.tscn" type="PackedScene" id=4]
|
|
|
|
[ext_resource path="res://areas/canteen.tscn" type="PackedScene" id=5]
|
|
|
|
[ext_resource path="res://areas/science.tscn" type="PackedScene" id=6]
|
|
|
|
[ext_resource path="res://areas/sixbay.tscn" type="PackedScene" id=7]
|
|
|
|
[ext_resource path="res://ui/ship.tex" type="Texture" id=8]
|
|
|
|
[ext_resource path="res://ui_hand.gd" type="Script" id=9]
|
|
|
|
[ext_resource path="res://ui/hand_border.tex" type="Texture" id=10]
|
|
|
|
[ext_resource path="res://ui/energy_bar.gd" type="Script" id=11]
|
|
|
|
[ext_resource path="res://ui/empty-bar.tex" type="Texture" id=12]
|
|
|
|
[ext_resource path="res://ui/full-bar.tex" type="Texture" id=13]
|
|
|
|
[ext_resource path="res://ui/energy.tex" type="Texture" id=14]
|
|
|
|
[ext_resource path="res://ui/black.tex" type="Texture" id=15]
|
|
|
|
[ext_resource path="res://ui/discard_deck.tscn" type="PackedScene" id=16]
|
|
|
|
[ext_resource path="res://ui/deck.tscn" type="PackedScene" id=17]
|
|
|
|
[ext_resource path="res://ui/starfield.tscn" type="PackedScene" id=18]
|
|
|
|
[ext_resource path="res://debug.gd" type="Script" id=19]
|
|
|
|
[ext_resource path="res://help.gd" type="Script" id=20]
|
|
|
|
[ext_resource path="res://ui/end_message.tscn" type="PackedScene" id=21]
|
|
|
|
[ext_resource path="res://ui/help_widget.tscn" type="PackedScene" id=22]
|
2017-07-29 23:11:45 +00:00
|
|
|
|
|
|
|
[node name="game" type="Node2D"]
|
|
|
|
|
|
|
|
z/z = -1
|
|
|
|
script/script = ExtResource( 1 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_lock_": true
|
|
|
|
}
|
2017-07-31 00:17:24 +00:00
|
|
|
energy = 100
|
|
|
|
base_energy_per_round = 8
|
2017-07-29 23:11:45 +00:00
|
|
|
|
|
|
|
[node name="cards" type="Node2D" parent="."]
|
|
|
|
|
2017-07-31 00:17:24 +00:00
|
|
|
[node name="areas" type="Node2D" parent="."]
|
|
|
|
|
|
|
|
editor/display_folded = true
|
|
|
|
|
|
|
|
[node name="reactor" parent="areas" instance=ExtResource( 2 )]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 150, 250 )
|
|
|
|
|
|
|
|
[node name="engineering" parent="areas" instance=ExtResource( 3 )]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 275, 250 )
|
|
|
|
|
|
|
|
[node name="command" parent="areas" instance=ExtResource( 4 )]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 775, 250 )
|
|
|
|
|
|
|
|
[node name="canteen" parent="areas" instance=ExtResource( 5 )]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 650, 250 )
|
|
|
|
|
|
|
|
[node name="science" parent="areas" instance=ExtResource( 6 )]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 525, 250 )
|
|
|
|
|
|
|
|
[node name="sixbay" parent="areas" instance=ExtResource( 7 )]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 400, 250 )
|
|
|
|
|
|
|
|
[node name="Sprite" type="Sprite" parent="areas"]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 495.695, 236.953 )
|
|
|
|
z/z = -1
|
|
|
|
texture = ExtResource( 8 )
|
|
|
|
|
2017-07-29 23:11:45 +00:00
|
|
|
[node name="ui" type="Node2D" parent="."]
|
|
|
|
|
|
|
|
[node name="HandHolder" type="Node2D" parent="ui"]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 142.702, 494.652 )
|
2017-07-31 00:17:24 +00:00
|
|
|
script/script = ExtResource( 9 )
|
2017-07-29 23:11:45 +00:00
|
|
|
|
|
|
|
[node name="Background" type="Sprite" parent="ui/HandHolder"]
|
|
|
|
|
|
|
|
visibility/behind_parent = true
|
|
|
|
transform/pos = Vector2( 373.51, 38.9889 )
|
|
|
|
z/z = -1
|
2017-07-31 00:17:24 +00:00
|
|
|
texture = ExtResource( 10 )
|
2017-07-29 23:11:45 +00:00
|
|
|
|
|
|
|
[node name="EnergyHolder" type="Node2D" parent="ui"]
|
|
|
|
|
|
|
|
transform/pos = Vector2( -0.527039, -7.28315 )
|
|
|
|
transform/scale = Vector2( 0.95, 0.95 )
|
2017-07-31 00:17:24 +00:00
|
|
|
script/script = ExtResource( 11 )
|
2017-07-29 23:11:45 +00:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_lock_": true
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="ProgressBar" type="TextureProgress" parent="ui/EnergyHolder"]
|
|
|
|
|
|
|
|
hint/tooltip = "Energy remaining"
|
|
|
|
focus/ignore_mouse = false
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 0
|
|
|
|
margin/left = 2.0
|
|
|
|
margin/top = 61.0
|
|
|
|
margin/right = 54.0
|
|
|
|
margin/bottom = 481.0
|
|
|
|
range/min = 0.0
|
|
|
|
range/max = 100.0
|
2017-07-31 00:17:24 +00:00
|
|
|
range/step = 0.5
|
2017-07-29 23:11:45 +00:00
|
|
|
range/page = 0.0
|
|
|
|
range/value = 100.0
|
|
|
|
range/exp_edit = false
|
|
|
|
range/rounded = false
|
2017-07-31 00:17:24 +00:00
|
|
|
texture/under = ExtResource( 12 )
|
2017-07-29 23:11:45 +00:00
|
|
|
texture/over = null
|
2017-07-31 00:17:24 +00:00
|
|
|
texture/progress = ExtResource( 13 )
|
2017-07-29 23:11:45 +00:00
|
|
|
mode = 3
|
|
|
|
radial_fill/fill_degrees = 360.0
|
|
|
|
radial_fill/center_offset = Vector2( 0, 0 )
|
|
|
|
|
|
|
|
[node name="icon" type="Sprite" parent="ui/EnergyHolder"]
|
|
|
|
|
|
|
|
transform/pos = Vector2( 28, 35 )
|
2017-07-31 00:17:24 +00:00
|
|
|
texture = ExtResource( 14 )
|
2017-07-29 23:11:45 +00:00
|
|
|
|
|
|
|
[node name="icon-bg" type="Sprite" parent="ui/EnergyHolder/icon"]
|
|
|
|
|
|
|
|
transform/scale = Vector2( 0.8125, 0.8125 )
|
|
|
|
z/z = -1
|
2017-07-31 00:17:24 +00:00
|
|
|
texture = ExtResource( 15 )
|
2017-07-29 23:11:45 +00:00
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="ui/EnergyHolder"]
|
|
|
|
|
|
|
|
focus/ignore_mouse = true
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 0
|
|
|
|
margin/left = 2.0
|
|
|
|
margin/top = 481.0
|
|
|
|
margin/right = 54.0
|
|
|
|
margin/bottom = 501.0
|
|
|
|
text = "100"
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
clip_text = true
|
|
|
|
percent_visible = 1.0
|
|
|
|
lines_skipped = 0
|
|
|
|
max_lines_visible = -1
|
|
|
|
|
|
|
|
[node name="Sprite" type="Sprite" parent="ui/EnergyHolder/Label"]
|
|
|
|
|
|
|
|
transform/scale = Vector2( 1.625, 0.625 )
|
|
|
|
z/z = -1
|
2017-07-31 00:17:24 +00:00
|
|
|
texture = ExtResource( 15 )
|
2017-07-29 23:11:45 +00:00
|
|
|
centered = false
|
|
|
|
|
2017-07-31 00:17:24 +00:00
|
|
|
[node name="discard" parent="ui" instance=ExtResource( 16 )]
|
2017-07-29 23:11:45 +00:00
|
|
|
|
|
|
|
transform/pos = Vector2( 973.566, 533.945 )
|
|
|
|
|
2017-07-31 00:17:24 +00:00
|
|
|
[node name="deck" parent="ui" instance=ExtResource( 17 )]
|
2017-07-29 23:11:45 +00:00
|
|
|
|
|
|
|
transform/pos = Vector2( 59.459, 532.687 )
|
|
|
|
|
2017-07-31 00:17:24 +00:00
|
|
|
[node name="starfield" parent="ui" instance=ExtResource( 18 )]
|
2017-07-29 23:11:45 +00:00
|
|
|
|
|
|
|
z/z = -2
|
|
|
|
|
|
|
|
[node name="debug" type="Node2D" parent="ui"]
|
|
|
|
|
2017-07-31 00:17:24 +00:00
|
|
|
visibility/visible = false
|
2017-07-29 23:11:45 +00:00
|
|
|
transform/pos = Vector2( 469.232, 34.61 )
|
2017-07-31 00:17:24 +00:00
|
|
|
script/script = ExtResource( 19 )
|
2017-07-29 23:11:45 +00:00
|
|
|
|
|
|
|
[node name="deckCount" type="Label" parent="ui/debug"]
|
|
|
|
|
|
|
|
focus/ignore_mouse = true
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 0
|
|
|
|
margin/left = -7.0
|
|
|
|
margin/top = 1.0
|
|
|
|
margin/right = 33.0
|
|
|
|
margin/bottom = 15.0
|
|
|
|
percent_visible = 1.0
|
|
|
|
lines_skipped = 0
|
|
|
|
max_lines_visible = -1
|
|
|
|
|
|
|
|
[node name="handCount" type="Label" parent="ui/debug"]
|
|
|
|
|
|
|
|
focus/ignore_mouse = true
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 0
|
|
|
|
margin/left = -7.0
|
|
|
|
margin/top = -16.0
|
|
|
|
margin/right = 33.0
|
|
|
|
margin/bottom = -2.0
|
|
|
|
percent_visible = 1.0
|
|
|
|
lines_skipped = 0
|
|
|
|
max_lines_visible = -1
|
|
|
|
|
|
|
|
[node name="discardCount" type="Label" parent="ui/debug"]
|
|
|
|
|
|
|
|
focus/ignore_mouse = true
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 0
|
|
|
|
margin/left = -7.0
|
|
|
|
margin/top = -31.0
|
|
|
|
margin/right = 33.0
|
|
|
|
margin/bottom = -17.0
|
|
|
|
percent_visible = 1.0
|
|
|
|
lines_skipped = 0
|
|
|
|
max_lines_visible = -1
|
|
|
|
|
|
|
|
[node name="help" type="Label" parent="ui"]
|
|
|
|
|
|
|
|
focus/ignore_mouse = true
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 0
|
|
|
|
margin/left = 350.0
|
|
|
|
margin/top = 10.0
|
|
|
|
margin/right = 750.0
|
|
|
|
margin/bottom = 110.0
|
|
|
|
align = 1
|
2017-07-31 00:17:24 +00:00
|
|
|
autowrap = true
|
|
|
|
clip_text = true
|
|
|
|
uppercase = true
|
|
|
|
percent_visible = 1.0
|
|
|
|
lines_skipped = 0
|
|
|
|
max_lines_visible = -1
|
|
|
|
script/script = ExtResource( 20 )
|
|
|
|
|
|
|
|
[node name="end_message" parent="ui" instance=ExtResource( 21 )]
|
|
|
|
|
|
|
|
visibility/visible = false
|
|
|
|
transform/pos = Vector2( 266.419, 92.0803 )
|
|
|
|
z/z = 1
|
|
|
|
|
|
|
|
[node name="round_energy_label" type="Label" parent="ui"]
|
|
|
|
|
|
|
|
focus/ignore_mouse = true
|
|
|
|
focus/stop_mouse = true
|
|
|
|
size_flags/horizontal = 2
|
|
|
|
size_flags/vertical = 0
|
|
|
|
margin/left = 31.0
|
|
|
|
margin/top = 3.0
|
|
|
|
margin/right = 181.0
|
|
|
|
margin/bottom = 53.0
|
|
|
|
text = "Energy Consumption: 2"
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
autowrap = true
|
|
|
|
uppercase = true
|
2017-07-29 23:11:45 +00:00
|
|
|
percent_visible = 1.0
|
|
|
|
lines_skipped = 0
|
|
|
|
max_lines_visible = -1
|
2017-07-31 00:17:24 +00:00
|
|
|
|
|
|
|
[node name="help_widget" parent="ui" instance=ExtResource( 22 )]
|
|
|
|
|
|
|
|
margin/left = 176.0
|
|
|
|
margin/right = 228.0
|
|
|
|
margin/bottom = 52.0
|
2017-07-29 23:11:45 +00:00
|
|
|
|
|
|
|
[connection signal="game_deck_changed" from="." to="ui/debug" method="_on_game_game_deck_changed"]
|
|
|
|
|
|
|
|
[connection signal="game_deck_changed" from="." to="ui/deck" method="_on_game_deck_changed"]
|
|
|
|
|
|
|
|
[connection signal="game_discard_changed" from="." to="ui/discard" method="_on_game_game_discard_changed"]
|
|
|
|
|
2017-07-31 01:00:07 +00:00
|
|
|
[connection signal="game_discard_changed" from="." to="ui/debug" method="_on_game_game_discard_changed"]
|
|
|
|
|
2017-07-29 23:11:45 +00:00
|
|
|
[connection signal="game_energy_changed" from="." to="ui/EnergyHolder" method="_on_game_game_energy_changed"]
|
|
|
|
|
|
|
|
[connection signal="game_hand_changed" from="." to="ui/debug" method="_on_game_game_hand_changed"]
|
|
|
|
|
|
|
|
[connection signal="game_hand_changed" from="." to="ui/HandHolder" method="_on_game_game_hand_changed"]
|
|
|
|
|
|
|
|
[connection signal="game_state_changed" from="." to="." method="_on_game_game_state_changed"]
|
|
|
|
|
|
|
|
|