added Graphics and sound Effects and more overhauls
This commit is contained in:
parent
c887a2168c
commit
b9d4288900
214 changed files with 3378 additions and 198 deletions
19
scenes/UI/loseScreen/endScreen.gd
Normal file
19
scenes/UI/loseScreen/endScreen.gd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
extends Control
|
||||
|
||||
@onready var waveInfo = $CenterContainer/VBoxContainer/HBoxContainer/WaveInfo
|
||||
@onready var destroyedInfo = $CenterContainer/VBoxContainer/HBoxContainer2/DestroyedInfo
|
||||
|
||||
@onready var mainMenu = preload("res://scenes/UI/mainMenu/mainMenu.tscn")
|
||||
|
||||
func _ready() -> void:
|
||||
waveInfo.text = str(Globals.currentWave)
|
||||
destroyedInfo.text = str(Globals.destroyedShips)
|
||||
|
||||
|
||||
func _on_button_pressed() -> void:
|
||||
loadMainMenu()
|
||||
|
||||
func loadMainMenu():
|
||||
get_tree().get_root().add_child(load("res://scenes/UI/mainMenu/mainMenu.tscn").instantiate())
|
||||
queue_free()
|
||||
|
||||
1
scenes/UI/loseScreen/endScreen.gd.uid
Normal file
1
scenes/UI/loseScreen/endScreen.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bj337ebonpkf8
|
||||
64
scenes/UI/loseScreen/endScreen.tscn
Normal file
64
scenes/UI/loseScreen/endScreen.tscn
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://jiaqas4j8vty"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bj337ebonpkf8" path="res://scenes/UI/loseScreen/endScreen.gd" id="1_dvdsp"]
|
||||
[ext_resource type="Theme" uid="uid://bcbicfiflkrja" path="res://theme/interface.tres" id="1_hccji"]
|
||||
[ext_resource type="Texture2D" uid="uid://beyhkcr2uvmc7" path="res://assets/space.png" id="2_hccji"]
|
||||
|
||||
[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_hccji")
|
||||
script = ExtResource("1_dvdsp")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = -2160.0
|
||||
offset_top = -2624.0
|
||||
offset_right = 3984.0
|
||||
offset_bottom = 3520.0
|
||||
texture = ExtResource("2_hccji")
|
||||
stretch_mode = 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="HBoxContainer" type="HBoxContainer" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="WaveLabel" type="Label" parent="CenterContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Survided to Wave: "
|
||||
|
||||
[node name="WaveInfo" type="Label" parent="CenterContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="DestroyedLabel" type="Label" parent="CenterContainer/VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "Destroyed Ships: "
|
||||
|
||||
[node name="DestroyedInfo" type="Label" parent="CenterContainer/VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Button" type="Button" parent="CenterContainer/VBoxContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
text = "Back to Menu"
|
||||
|
||||
[connection signal="pressed" from="CenterContainer/VBoxContainer/MarginContainer/Button" to="." method="_on_button_pressed"]
|
||||
16
scenes/UI/mainMenu/mainMenu.gd
Normal file
16
scenes/UI/mainMenu/mainMenu.gd
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
extends Control
|
||||
|
||||
@onready var game = preload("res://scenes/main/main.tscn")
|
||||
|
||||
func _on_button_start_pressed() -> void:
|
||||
laodGame()
|
||||
Globals.touchscreen = false
|
||||
|
||||
func laodGame():
|
||||
get_tree().get_root().add_child(game.instantiate())
|
||||
queue_free()
|
||||
|
||||
|
||||
func _on_button_start_touch_pressed() -> void:
|
||||
Globals.touchscreen = true
|
||||
laodGame()
|
||||
1
scenes/UI/mainMenu/mainMenu.gd.uid
Normal file
1
scenes/UI/mainMenu/mainMenu.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://b1rw7bmvcl11o
|
||||
58
scenes/UI/mainMenu/mainMenu.tscn
Normal file
58
scenes/UI/mainMenu/mainMenu.tscn
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://cx1lvrbofx0je"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://beyhkcr2uvmc7" path="res://assets/space.png" id="1_l1ky1"]
|
||||
[ext_resource type="Theme" uid="uid://bcbicfiflkrja" path="res://theme/interface.tres" id="1_yi36i"]
|
||||
[ext_resource type="Script" uid="uid://b1rw7bmvcl11o" path="res://scenes/UI/mainMenu/mainMenu.gd" id="2_dwrcc"]
|
||||
[ext_resource type="Texture2D" uid="uid://cd5anydes4tv3" path="res://assets/player/shotgunShip.png" id="4_u55jd"]
|
||||
|
||||
[node name="mainMenu" 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_yi36i")
|
||||
script = ExtResource("2_dwrcc")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
offset_left = -2160.0
|
||||
offset_top = -2624.0
|
||||
offset_right = 3984.0
|
||||
offset_bottom = 3520.0
|
||||
texture = ExtResource("1_l1ky1")
|
||||
stretch_mode = 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="TextureRect" type="TextureRect" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("4_u55jd")
|
||||
stretch_mode = 2
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ButtonStart" type="Button" parent="CenterContainer/VBoxContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
text = "Play"
|
||||
|
||||
[node name="MarginContainer3" type="MarginContainer" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ButtonStartTouch" type="Button" parent="CenterContainer/VBoxContainer/MarginContainer3"]
|
||||
layout_mode = 2
|
||||
text = "Play
|
||||
Touchscreen"
|
||||
|
||||
[connection signal="pressed" from="CenterContainer/VBoxContainer/MarginContainer/ButtonStart" to="." method="_on_button_start_pressed"]
|
||||
[connection signal="pressed" from="CenterContainer/VBoxContainer/MarginContainer3/ButtonStartTouch" to="." method="_on_button_start_touch_pressed"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue