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
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