First Prototype

This commit is contained in:
Exobyt 2024-09-15 00:04:31 +02:00
parent e18beb6c4c
commit 9e3349eec3
40 changed files with 1100 additions and 48 deletions

View file

@ -0,0 +1,19 @@
extends Control
@onready var moneyResultLabel = $CenterContainer/VBoxContainer/HBoxContainer/MoneyResult
@onready var healthResultLabel = $CenterContainer/VBoxContainer/HBoxContainer2/HealthResult
@onready var succesLabel = $CenterContainer/VBoxContainer/VBoxContainer/SUCCESLabel
@onready var failureLabel = $CenterContainer/VBoxContainer/VBoxContainer/FAILURELabel
func _ready() -> void:
if G.extracted:
succesLabel.show()
failureLabel.hide()
moneyResultLabel.text = str(G.money)
healthResultLabel.text = str(G.lastHealth)
func _on_home_button_button_up() -> void:
get_parent().loadStartMenu()

View file

@ -0,0 +1,112 @@
[gd_scene load_steps=9 format=3 uid="uid://jga6awfuwsyp"]
[ext_resource type="Theme" uid="uid://cotw1alu4b2ad" path="res://Theme/MainTheme.tres" id="1_iscr2"]
[ext_resource type="Texture2D" uid="uid://drjv0kpcfubr0" path="res://Assets/Icons/Dollar.png" id="2_54fgt"]
[ext_resource type="Script" path="res://scenes/menu/endScreen/end_screen.gd" id="2_wokl6"]
[ext_resource type="Texture2D" uid="uid://b27g8eulkxvyr" path="res://Assets/Icons/Health.png" id="3_n82yp"]
[sub_resource type="LabelSettings" id="LabelSettings_3uh6l"]
font_size = 48
font_color = Color(0.918136, 0.0328273, 0.194379, 1)
outline_size = 5
outline_color = Color(0, 0, 0, 1)
[sub_resource type="LabelSettings" id="LabelSettings_58qpv"]
font_size = 48
font_color = Color(0.0700001, 0.6, 0, 1)
outline_size = 5
outline_color = Color(0, 0, 0, 1)
[sub_resource type="LabelSettings" id="LabelSettings_kocpg"]
font_size = 48
font_color = Color(0, 1, 0.0999999, 1)
outline_size = 5
outline_color = Color(0, 0, 0, 1)
[sub_resource type="LabelSettings" id="LabelSettings_2huu8"]
font_size = 48
font_color = Color(1, 0, 0, 1)
outline_size = 5
outline_color = Color(0, 0, 0, 1)
[node name="EndScreen" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_iscr2")
script = ExtResource("2_wokl6")
[node name="CenterContainer" type="CenterContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
layout_mode = 2
[node name="LabelResults" type="Label" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
text = "RESULT"
horizontal_alignment = 1
[node name="HSeparator3" type="HSeparator" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
[node name="FAILURELabel" type="Label" parent="CenterContainer/VBoxContainer/VBoxContainer"]
layout_mode = 2
text = "FAILURE"
label_settings = SubResource("LabelSettings_3uh6l")
[node name="SUCCESLabel" type="Label" parent="CenterContainer/VBoxContainer/VBoxContainer"]
visible = false
layout_mode = 2
text = "SUCCES"
label_settings = SubResource("LabelSettings_58qpv")
[node name="HSeparator2" type="HSeparator" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="CenterContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
texture = ExtResource("2_54fgt")
[node name="MoneyResult" type="Label" parent="CenterContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
label_settings = SubResource("LabelSettings_kocpg")
[node name="HBoxContainer2" type="HBoxContainer" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="CenterContainer/VBoxContainer/HBoxContainer2"]
layout_mode = 2
texture = ExtResource("3_n82yp")
[node name="Health" type="Label" parent="CenterContainer/VBoxContainer/HBoxContainer2"]
layout_mode = 2
text = "10/"
label_settings = SubResource("LabelSettings_2huu8")
[node name="HealthResult" type="Label" parent="CenterContainer/VBoxContainer/HBoxContainer2"]
layout_mode = 2
label_settings = SubResource("LabelSettings_2huu8")
[node name="HSeparator" type="HSeparator" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
[node name="HomeButton" type="Button" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
text = "Understood"
[connection signal="button_up" from="CenterContainer/VBoxContainer/HomeButton" to="." method="_on_home_button_button_up"]

View file

@ -0,0 +1,14 @@
[gd_resource type="StyleBoxFlat" format=3 uid="uid://db7h680qdfcrv"]
[resource]
bg_color = Color(0.913183, 0.621028, 0, 1)
border_width_left = 5
border_width_top = 5
border_width_right = 5
border_width_bottom = 5
border_color = Color(0, 0, 0, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
corner_detail = 20

View file

@ -0,0 +1,5 @@
extends Control
func _on_start_button_button_up() -> void:
get_parent().loadGame()

View file

@ -0,0 +1,54 @@
[gd_scene load_steps=5 format=3 uid="uid://ceu62dbrvd31p"]
[ext_resource type="Theme" uid="uid://cotw1alu4b2ad" path="res://Theme/MainTheme.tres" id="1_2eoii"]
[ext_resource type="Script" path="res://scenes/menu/startMenu/start_menu.gd" id="2_y1mcp"]
[ext_resource type="PackedScene" uid="uid://br7eqr6jomsg4" path="res://scenes/game/map/map.tscn" id="3_w2x7d"]
[ext_resource type="Texture2D" uid="uid://b2xbgtcyxvi73" path="res://Assets/Player/Player.png" id="4_0cn2q"]
[node name="StartMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_2eoii")
script = ExtResource("2_y1mcp")
[node name="Map" parent="." instance=ExtResource("3_w2x7d")]
visible = false
position = Vector2(976, 540)
[node name="Sprite2D" type="Sprite2D" parent="."]
visible = false
position = Vector2(960, 456)
scale = Vector2(1.5, 1.5)
texture = ExtResource("4_0cn2q")
hframes = 25
[node name="ColorRect" type="ColorRect" parent="."]
modulate = Color(1, 1, 1, 0.376471)
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)
[node name="CenterContainer" type="CenterContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
layout_mode = 2
[node name="StartButton" type="Button" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
text = "PLAY"
[connection signal="button_up" from="CenterContainer/VBoxContainer/StartButton" to="." method="_on_start_button_button_up"]