Added new font. Created main menu and completed the game loop. Added bounce on item balloons
This commit is contained in:
1 parent
50ab2c2579
commit
2bd6bc1c4e
20 files changed
+215
-51
No files matched your search
+72
-37
@@ -1,8 +1,22 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/game_manager.gd" type="Script" id=1]
|
||||
[ext_resource path="res://assets/tutorial/item_recipes.png" type="Texture" id=2]
|
||||
[ext_resource path="res://assets/UI/Menu_Recipes.png" type="Texture" id=2]
|
||||
[ext_resource path="res://assets/tutorial/machine_repair.png" type="Texture" id=3]
|
||||
[ext_resource path="res://assets/Fonts/AlphaProta-Wy7VE.ttf" type="DynamicFontData" id=4]
|
||||
|
||||
[sub_resource type="DynamicFont" id=2]
|
||||
size = 50
|
||||
font_data = ExtResource( 4 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 75
|
||||
font_data = ExtResource( 4 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
bg_color = Color( 0, 0.282353, 0.721569, 1 )
|
||||
border_color = Color( 0, 0, 0, 1 )
|
||||
border_blend = true
|
||||
|
||||
[node name="game_manager" type="CanvasLayer" groups=["game_manager"]]
|
||||
pause_mode = 2
|
||||
@@ -26,27 +40,11 @@ rect_pivot_offset = Vector2( 989, 509 )
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="resume_button" type="Button" parent="UI/pause_menu"]
|
||||
pause_mode = 2
|
||||
unique_name_in_owner = true
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
margin_top = -171.0
|
||||
margin_right = 63.0
|
||||
margin_bottom = -151.0
|
||||
rect_scale = Vector2( 4, 4 )
|
||||
rect_pivot_offset = Vector2( 30.7864, 9.2928 )
|
||||
text = "RESUME"
|
||||
icon_align = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="machine_repair" type="TextureRect" parent="UI/pause_menu"]
|
||||
anchor_left = 0.532812
|
||||
anchor_top = 0.191667
|
||||
anchor_right = 0.960938
|
||||
anchor_bottom = 0.762037
|
||||
anchor_left = 0.466146
|
||||
anchor_top = 0.0962963
|
||||
anchor_right = 0.894272
|
||||
anchor_bottom = 0.666666
|
||||
margin_left = 6.10352e-05
|
||||
rect_pivot_offset = Vector2( -754, 325 )
|
||||
texture = ExtResource( 3 )
|
||||
@@ -56,30 +54,66 @@ __meta__ = {
|
||||
"_edit_use_anchors_": true
|
||||
}
|
||||
|
||||
[node name="item_recipe" type="TextureRect" parent="UI/pause_menu"]
|
||||
anchor_left = 0.043
|
||||
anchor_top = 0.27
|
||||
anchor_right = 0.49
|
||||
anchor_bottom = 0.718
|
||||
margin_left = -0.560005
|
||||
margin_top = 0.399994
|
||||
margin_right = 0.199951
|
||||
margin_bottom = -0.440063
|
||||
rect_pivot_offset = Vector2( 1777, -206.5 )
|
||||
[node name="recipes" type="TextureRect" parent="UI/pause_menu"]
|
||||
anchor_left = 0.0427083
|
||||
anchor_top = 0.0592593
|
||||
anchor_right = 0.323438
|
||||
anchor_bottom = 0.925926
|
||||
texture = ExtResource( 2 )
|
||||
expand = true
|
||||
stretch_mode = 6
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": true
|
||||
}
|
||||
|
||||
[node name="resume_button" type="Button" parent="UI/pause_menu"]
|
||||
pause_mode = 2
|
||||
unique_name_in_owner = true
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 166.0
|
||||
margin_top = -303.0
|
||||
margin_right = 529.0
|
||||
margin_bottom = -217.0
|
||||
rect_pivot_offset = Vector2( 30.7864, 9.2928 )
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "RESUME"
|
||||
icon_align = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="main_menu_button" type="Button" parent="UI/pause_menu"]
|
||||
pause_mode = 2
|
||||
unique_name_in_owner = true
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 166.0
|
||||
margin_top = -184.0
|
||||
margin_right = 529.0
|
||||
margin_bottom = -98.0
|
||||
rect_pivot_offset = Vector2( 30.7864, 9.2928 )
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "MAIN MENU"
|
||||
icon_align = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="day_timer_text" type="Label" parent="UI"]
|
||||
unique_name_in_owner = true
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
margin_left = -67.8719
|
||||
margin_right = 39.1281
|
||||
margin_bottom = 14.0
|
||||
margin_left = -520.0
|
||||
margin_bottom = 51.0
|
||||
grow_horizontal = 0
|
||||
rect_scale = Vector2( 5, 5 )
|
||||
rect_pivot_offset = Vector2( 116.901, -0.362253 )
|
||||
custom_colors/font_color = Color( 0.0235294, 0.792157, 0, 1 )
|
||||
custom_colors/font_outline_modulate = Color( 0, 0, 0, 1 )
|
||||
custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )
|
||||
custom_constants/shadow_offset_x = -2
|
||||
custom_constants/shadow_offset_y = 2
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
custom_styles/normal = SubResource( 3 )
|
||||
text = "Time Left: 00:20"
|
||||
align = 2
|
||||
uppercase = true
|
||||
@@ -89,4 +123,5 @@ pause_mode = 1
|
||||
unique_name_in_owner = true
|
||||
|
||||
[connection signal="pressed" from="UI/pause_menu/resume_button" to="." method="_on_resume_button_pressed"]
|
||||
[connection signal="pressed" from="UI/pause_menu/main_menu_button" to="." method="_on_main_menu_button_pressed"]
|
||||
[connection signal="timeout" from="day_timer" to="." method="_on_day_timer_timeout"]
|
||||
@@ -31,3 +31,7 @@ transform = Transform( 0.901009, -0.433801, 0, 0.433801, 0.901009, 0, 0, 0, 1, -
|
||||
[node name="two_item_balloon2" parent="two_item" instance=ExtResource( 2 )]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform( 0.901009, 0.433801, 0, -0.433801, 0.901009, 0, 0, 0, 1, 1, 2.691, 0 )
|
||||
|
||||
[connection signal="player_failed_interact" from="." to="one_item/one_item_balloon" method="_on_item_dump_player_failed_interact"]
|
||||
[connection signal="player_failed_interact" from="." to="two_item/two_item_balloon1" method="_on_item_dump_player_failed_interact"]
|
||||
[connection signal="player_failed_interact" from="." to="two_item/two_item_balloon2" method="_on_item_dump_player_failed_interact"]
|
||||
@@ -0,0 +1,81 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://assets/icons/icon.png" type="Texture" id=1]
|
||||
[ext_resource path="res://assets/Fonts/AlphaProta-Wy7VE.ttf" type="DynamicFontData" id=2]
|
||||
[ext_resource path="res://scripts/main_menu.gd" type="Script" id=3]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 150
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=2]
|
||||
size = 50
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[node name="MainMenu" type="CanvasLayer"]
|
||||
pause_mode = 2
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="DungeeImage" type="TextureRect" parent="Panel"]
|
||||
anchor_left = 0.370833
|
||||
anchor_top = 0.0555556
|
||||
anchor_right = 0.63125
|
||||
anchor_bottom = 0.518519
|
||||
texture = ExtResource( 1 )
|
||||
expand = true
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": true
|
||||
}
|
||||
|
||||
[node name="DungeeText" type="RichTextLabel" parent="Panel"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -312.0
|
||||
margin_top = 70.0
|
||||
margin_right = 366.0
|
||||
margin_bottom = 224.0
|
||||
rect_pivot_offset = Vector2( 342, 83 )
|
||||
custom_fonts/normal_font = SubResource( 1 )
|
||||
text = "DUNGEE"
|
||||
scroll_active = false
|
||||
|
||||
[node name="BeginButton" type="Button" parent="Panel"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -122.0
|
||||
margin_top = -284.0
|
||||
margin_right = 148.0
|
||||
margin_bottom = -206.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "BEGIN"
|
||||
expand_icon = true
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": true
|
||||
}
|
||||
|
||||
[node name="ExitButton" type="Button" parent="Panel"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -122.0
|
||||
margin_top = -169.0
|
||||
margin_right = 148.0
|
||||
margin_bottom = -91.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "EXIT"
|
||||
expand_icon = true
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": true
|
||||
}
|
||||
|
||||
[connection signal="pressed" from="Panel/BeginButton" to="." method="_on_BeginButton_pressed"]
|
||||
[connection signal="pressed" from="Panel/ExitButton" to="." method="_on_ExitButton_pressed"]
|
||||
Reference in new issue
Block a user