MENNU
This commit is contained in:
parent
979172f0e2
commit
7250ee17c8
Binary file not shown.
BIN
audio/gameover.wav
Normal file
BIN
audio/gameover.wav
Normal file
Binary file not shown.
BIN
audio/no.wav
Normal file
BIN
audio/no.wav
Normal file
Binary file not shown.
@ -1,9 +1,9 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://cbs0x36e3ranm"]
|
||||
|
||||
[ext_resource type="MeshLibrary" uid="uid://dwo1m72yajrb1" path="res://assets/tilesets/tileset.tres" id="1_l447d"]
|
||||
[ext_resource type="MeshLibrary" uid="uid://bo7ir5us230sa" path="res://assets/tilesets/tileset.tres" id="1_l447d"]
|
||||
[ext_resource type="PackedScene" uid="uid://b5gb5paiupum" path="res://player/player.tscn" id="2_ojnju"]
|
||||
[ext_resource type="PackedScene" uid="uid://2pw0p13lcklv" path="res://buildings/kash_buildings/factory.tscn" id="3_08gdj"]
|
||||
[ext_resource type="AudioStream" uid="uid://byo1w5vecks0m" path="res://music/jazz.ogg" id="3_brvx4"]
|
||||
[ext_resource type="AudioStream" uid="uid://bba7tiqty57ek" path="res://music/jazz.ogg" id="3_brvx4"]
|
||||
[ext_resource type="PackedScene" uid="uid://c2casdi4d2o3j" path="res://shaders/water_plane.tscn" id="3_ga7wg"]
|
||||
|
||||
[sub_resource type="Environment" id="Environment_lo4sd"]
|
||||
|
@ -28,8 +28,8 @@ public partial class start_game_menu : Control {
|
||||
case _state.START:
|
||||
Error = "";
|
||||
_single.Set("visible", true);
|
||||
_localMulti.Set("visible", true);
|
||||
_LANMulti.Set("visible", true);
|
||||
//_localMulti.Set("visible", true);
|
||||
//_LANMulti.Set("visible", true);
|
||||
_cancel.Set("visible", false);
|
||||
_yes.Set("visible", false);
|
||||
_no.Set("visible", false);
|
||||
@ -42,8 +42,8 @@ public partial class start_game_menu : Control {
|
||||
case _state.LAN:
|
||||
Error = "";
|
||||
_single.Set("visible", false);
|
||||
_localMulti.Set("visible", false);
|
||||
_LANMulti.Set("visible", false);
|
||||
//_localMulti.Set("visible", false);
|
||||
//_LANMulti.Set("visible", false);
|
||||
_cancel.Set("visible", true);
|
||||
_yes.Set("visible", false);
|
||||
_no.Set("visible", false);
|
||||
@ -56,8 +56,8 @@ public partial class start_game_menu : Control {
|
||||
case _state.QUIT:
|
||||
Error = "Are you sure you want to quit?";
|
||||
_single.Set("visible", false);
|
||||
_localMulti.Set("visible", false);
|
||||
_LANMulti.Set("visible", false);
|
||||
//_localMulti.Set("visible", false);
|
||||
//_LANMulti.Set("visible", false);
|
||||
_cancel.Set("visible", false);
|
||||
_yes.Set("visible", true);
|
||||
_no.Set("visible", true);
|
||||
@ -70,8 +70,8 @@ public partial class start_game_menu : Control {
|
||||
case _state.HOST:
|
||||
Error = "Waiting for peer to join...";
|
||||
_single.Set("visible", false);
|
||||
_localMulti.Set("visible", false);
|
||||
_LANMulti.Set("visible", false);
|
||||
//_localMulti.Set("visible", false);
|
||||
//_LANMulti.Set("visible", false);
|
||||
_cancel.Set("visible", true);
|
||||
_yes.Set("visible", false);
|
||||
_no.Set("visible", false);
|
||||
@ -84,8 +84,8 @@ public partial class start_game_menu : Control {
|
||||
case _state.JOIN:
|
||||
Error = "Waiting for server...";
|
||||
_single.Set("visible", false);
|
||||
_localMulti.Set("visible", false);
|
||||
_LANMulti.Set("visible", false);
|
||||
//_localMulti.Set("visible", false);
|
||||
//_LANMulti.Set("visible", false);
|
||||
_cancel.Set("visible", true);
|
||||
_yes.Set("visible", false);
|
||||
_no.Set("visible", false);
|
||||
@ -103,8 +103,8 @@ public partial class start_game_menu : Control {
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
public override void _Ready() {
|
||||
_single = GetNode<Button>(_path + "Btn_Single");
|
||||
_localMulti = GetNode<Button>(_path + "Btn_LocalMulti");
|
||||
_LANMulti = GetNode<Button>(_path + "Btn_LANMulti");
|
||||
//_localMulti = GetNode<Button>(_path + "Btn_LocalMulti");
|
||||
//_LANMulti = GetNode<Button>(_path + "Btn_LANMulti");
|
||||
_cancel = GetNode<Button>(_path + "Btn_Cancel");
|
||||
_quit = GetNode<Button>(_path + "Btn_Quit");
|
||||
_yes = GetNode<Button>(_path + "Btn_Yes");
|
||||
@ -115,8 +115,8 @@ public partial class start_game_menu : Control {
|
||||
_ip = GetNode<LineEdit>(_path + "txt_IP");
|
||||
_lip = GetNode<Label>(_path + "lbl_IP");
|
||||
_single.Pressed += () => startGame(_gameType.SINGLE);
|
||||
_localMulti.Pressed += () => startGame(_gameType.LOCAL);
|
||||
_LANMulti.Pressed += () => State = _state.LAN;
|
||||
//_localMulti.Pressed += () => startGame(_gameType.LOCAL);
|
||||
//_LANMulti.Pressed += () => State = _state.LAN;
|
||||
_host.Pressed += () => setupLANMultiGame();
|
||||
_join.Pressed += () => setupLANMultiGame(false);
|
||||
_quit.Pressed += () => State = _state.QUIT;
|
||||
|
@ -46,6 +46,7 @@ text = "Single Player
|
||||
"
|
||||
|
||||
[node name="Btn_LocalMulti" type="Button" parent="."]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = 863.0
|
||||
offset_top = 672.0
|
||||
@ -54,6 +55,7 @@ offset_bottom = 703.0
|
||||
text = "Local Multiplayer"
|
||||
|
||||
[node name="Btn_LANMulti" type="Button" parent="."]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = 1097.0
|
||||
offset_top = 670.0
|
||||
|
@ -1,6 +1,8 @@
|
||||
[gd_scene load_steps=19 format=3 uid="uid://b5gb5paiupum"]
|
||||
[gd_scene load_steps=21 format=3 uid="uid://b5gb5paiupum"]
|
||||
|
||||
[ext_resource type="Script" path="res://player/player.cs" id="1_of2l4"]
|
||||
[ext_resource type="AudioStream" uid="uid://dye3nhm41yk6r" path="res://audio/chatter.wav" id="2_sa1qd"]
|
||||
[ext_resource type="AudioStream" uid="uid://c8dcqkmytnyay" path="res://audio/btn.wav" id="3_00x5l"]
|
||||
|
||||
[sub_resource type="CameraAttributesPhysical" id="CameraAttributesPhysical_1ejpb"]
|
||||
frustum_near = 0.032
|
||||
@ -205,8 +207,10 @@ label_settings = SubResource("LabelSettings_pws5q")
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="snd_Chatter" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("2_sa1qd")
|
||||
|
||||
[node name="snd_Button" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("3_00x5l")
|
||||
|
||||
[node name="tmr_Chatter" type="Timer" parent="."]
|
||||
wait_time = 3.0
|
||||
|
Loading…
Reference in New Issue
Block a user