Overhauled camera

This commit is contained in:
Sch1nken 2024-03-23 16:18:30 +01:00
parent 5fe8f22ccb
commit da78e7f287
21 changed files with 385 additions and 71 deletions

View file

@ -24,5 +24,5 @@ func _process(delta):
func _on_button_pressed():
WSClient.stop()
#WSClient.stop()
get_tree().change_scene_to_file("res://main_menu.tscn")

View file

@ -23,7 +23,7 @@ func _mp_peer_disconnected(id: int) -> void:
# Display message that other end terminated the connection
# 1 is always the server
# So we better get going back to the main menu?
WSClient.close()
#WSClient.close()
get_tree().change_scene_to_file("res://main_menu.tscn")
# Maybe just display a "server close
return
@ -32,11 +32,13 @@ func _log(msg):
print(msg)
func _mp_server_connected():
_log("[Multiplayer] Server connected (I am %d)" % WSClient.rtc_mp.get_unique_id())
pass
#_log("[Multiplayer] Server connected (I am %d)" % WSClient.rtc_mp.get_unique_id())
#pass_initial_playerdata.rpc_id(1, multiplayer.get_unique_id(), GameState.player_name)
func _mp_server_disconnect():
_log("[Multiplayer] Server disconnected (I am %d)" % WSClient.rtc_mp.get_unique_id())
pass
#_log("[Multiplayer] Server disconnected (I am %d)" % WSClient.rtc_mp.get_unique_id())
#get_tree().change_scene_to_file("res://main_menu.tscn")
func _mp_peer_connected(id: int):
@ -47,11 +49,6 @@ func _mp_peer_connected(id: int):
@onready var lobby_info = $LobbyInfo
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
@rpc("any_peer", "call_local")
func load_game() -> void:
# Hide menu