diff --git a/audio/chatter.wav b/audio/chatter.wav index a0b73c0..fe03b26 100644 Binary files a/audio/chatter.wav and b/audio/chatter.wav differ diff --git a/audio/dot.wav b/audio/dot.wav new file mode 100644 index 0000000..c6ba764 Binary files /dev/null and b/audio/dot.wav differ diff --git a/audio/gameover.wav b/audio/gameover.wav new file mode 100644 index 0000000..cca8770 Binary files /dev/null and b/audio/gameover.wav differ diff --git a/audio/no.wav b/audio/no.wav new file mode 100644 index 0000000..4790122 Binary files /dev/null and b/audio/no.wav differ diff --git a/images/mushroom_cloud001.webp b/images/mushroom_cloud001.webp new file mode 100644 index 0000000..031b938 Binary files /dev/null and b/images/mushroom_cloud001.webp differ diff --git a/levels/test_level.tscn b/levels/test_level.tscn index 42ea0ef..51422d0 100644 --- a/levels/test_level.tscn +++ b/levels/test_level.tscn @@ -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"] diff --git a/menu/start_game_menu.cs b/menu/start_game_menu.cs index 31b789f..897864f 100644 --- a/menu/start_game_menu.cs +++ b/menu/start_game_menu.cs @@ -12,6 +12,9 @@ public partial class start_game_menu : Control { private LineEdit _ip; private Label _error, _lip; + [Export] + private AudioStreamPlayer _sndBtn, _sndState; + private string Error { set { _error.Set("text", value); } } private string IP_address { set { @@ -24,12 +27,13 @@ public partial class start_game_menu : Control { if (value == _currState) return; IP_address = ""; + //_sndState.Play(); switch (value) { 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 +46,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 +60,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 +74,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 +88,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 +107,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