more work on inventory

This commit is contained in:
2023-02-05 22:38:50 -05:00
parent d7572b48cc
commit 836a0e4a93
22 changed files with 613 additions and 68 deletions

View File

@@ -47,7 +47,7 @@ func add_player(peer_id):
func show_notification(my_message: String):
notifications.show_new_notification(my_message)
func _on_host_button_pressed(): # When hosting a new game
func _on_host_server_pressed():
main_menu.hide()
start_game_menu.show()
enet_peer.create_server(PORT)
@@ -56,26 +56,20 @@ func _on_host_button_pressed(): # When hosting a new game
add_player(multiplayer.get_unique_id())
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_join_button_pressed():
func _on_join_server_modal_pressed():
main_menu.hide()
enet_peer.create_client("localhost", PORT)
multiplayer.multiplayer_peer = enet_peer
func _on_start_game_button_pressed():
start_game_menu.hide()
func _on_play_single_player_button_pressed():
func _on_play_single_player_pressed():
var player = Player.instantiate()
player.name = str(1)
add_child(player)
player.set_position(spawn_location)
main_menu.hide()
notifications.hide()
#notifications.hide()