Map change

This commit is contained in:
Rendo 2025-12-12 17:43:06 +05:00
commit 337ba22bd3
7 changed files with 45 additions and 11 deletions

View file

@ -148,8 +148,7 @@ func team_switch_notification(team: int) -> void:
func start_game() -> void:
if not multiplayer.is_server():
return
get_tree().current_scene.get_node("%MainMenu").visible = false
get_tree().current_scene.get_node("%LevelContainer").add_child(preload("res://levels/prototype_scene.tscn").instantiate())
get_tree().current_scene.get_node("%LevelContainer").add_child(Registry.maps[LobbySettings.selected_map].instantiate())
Session.start_session()
func get_team() -> Session.TEAMS:

View file

@ -1,5 +1,7 @@
extends Node
var win_score: int = 13
var half_rounds :int = 12
var bomb_time: float = 45.0
@ -7,3 +9,4 @@ var buy_time: float = 15.0
var round_time: float = 150.0
var allow_multiple_abilities: bool = false
var allow_team_switch: bool = true
var selected_map: StringName = "prototype"