Add death and game over screens to the scene; update export files and project settings
This commit is contained in:
@@ -7,7 +7,7 @@ advanced_options=true
|
||||
dedicated_server=false
|
||||
custom_features=""
|
||||
export_filter="scenes"
|
||||
export_files=PackedStringArray("res://scenes/test.tscn", "res://objects/brick_player.tscn", "res://objects/coin.tscn", "res://objects/collapsing_bridge.tscn", "res://objects/game_manager.tscn")
|
||||
export_files=PackedStringArray("res://scenes/test.tscn", "res://objects/game_manager.tscn")
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path="builds/optimized_for_size/Mr. Brick Adventures.exe"
|
||||
|
57
objects/ui/death_screen.tscn
Normal file
57
objects/ui/death_screen.tscn
Normal file
@@ -0,0 +1,57 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dulkm3ah4tm0u"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://jix7wdn0isr3" path="res://sprites/ppc_icon.png" id="1_m30em"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_eaoak"]
|
||||
bg_color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="DeathScreen" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_eaoak")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 16
|
||||
theme_override_constants/margin_top = 32
|
||||
theme_override_constants/margin_right = 16
|
||||
theme_override_constants/margin_bottom = 16
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 0
|
||||
theme_override_constants/separation = 16
|
||||
|
||||
[node name="LevelName" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "LEVEL NAME - 1"
|
||||
uppercase = true
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
texture = ExtResource("1_m30em")
|
||||
|
||||
[node name="LivesLeft" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "x 3"
|
||||
uppercase = true
|
54
objects/ui/game_over_screen.tscn
Normal file
54
objects/ui/game_over_screen.tscn
Normal file
@@ -0,0 +1,54 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://wmw6gaisyrvx"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mtg1b"]
|
||||
bg_color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="GameOverScreen" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_mtg1b")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 16
|
||||
theme_override_constants/margin_top = 32
|
||||
theme_override_constants/margin_right = 16
|
||||
theme_override_constants/margin_bottom = 16
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 0
|
||||
theme_override_constants/separation = 16
|
||||
|
||||
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "game over"
|
||||
horizontal_alignment = 1
|
||||
uppercase = true
|
||||
|
||||
[node name="Control" type="Control" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 32)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="RestartLevelButton" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "RESTART LEVEL"
|
||||
flat = true
|
||||
|
||||
[node name="MenuButton" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "GO TO MENU"
|
||||
flat = true
|
@@ -43,6 +43,7 @@ file_logging/enable_file_logging=true
|
||||
|
||||
window/size/viewport_width=480
|
||||
window/size/viewport_height=270
|
||||
window/size/mode=4
|
||||
window/size/initial_position=Vector2i(400, 100)
|
||||
window/size/window_width_override=1440
|
||||
window/size/window_height_override=810
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=42 format=4 uid="uid://h60obxmju6mo"]
|
||||
[gd_scene load_steps=44 format=4 uid="uid://h60obxmju6mo"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_5lb42"]
|
||||
[ext_resource type="TileSet" uid="uid://cl4bn8lofqvky" path="res://tileset/village/tileset_village.tres" id="1_d680t"]
|
||||
@@ -30,6 +30,8 @@
|
||||
[ext_resource type="PackedScene" uid="uid://y0ae6e7t70fj" path="res://objects/ui/settings_menu.tscn" id="26_y81of"]
|
||||
[ext_resource type="PackedScene" uid="uid://cvfsbiy5ggrpg" path="res://objects/ui/input_settings.tscn" id="27_gsk6d"]
|
||||
[ext_resource type="Script" uid="uid://8r1y8elyw7kt" path="res://scripts/console_management.gd" id="28_1dqgb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dulkm3ah4tm0u" path="res://objects/ui/death_screen.tscn" id="28_4k8fq"]
|
||||
[ext_resource type="PackedScene" uid="uid://wmw6gaisyrvx" path="res://objects/ui/game_over_screen.tscn" id="29_75pfo"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_cagp7"]
|
||||
texture = ExtResource("1_5lb42")
|
||||
@@ -589,6 +591,13 @@ visible = false
|
||||
settings_menu = ExtResource("26_y81of")
|
||||
|
||||
[node name="Input Settings" parent="CanvasLayer" instance=ExtResource("27_gsk6d")]
|
||||
visible = false
|
||||
|
||||
[node name="DeathScreen" parent="CanvasLayer" instance=ExtResource("28_4k8fq")]
|
||||
visible = false
|
||||
|
||||
[node name="GameOverScreen" parent="CanvasLayer" instance=ExtResource("29_75pfo")]
|
||||
visible = false
|
||||
|
||||
[node name="Killzone" parent="." instance=ExtResource("20_8a4vc")]
|
||||
position = Vector2(0, 990)
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 464 B After Width: | Height: | Size: 690 B |
Reference in New Issue
Block a user