feat(game): add free ball mode and improve ball state handling
* add Free Ball game mode and lobby selection * refactor base mode ball state tracking for reaped/sunk balls * add player ownership tracking and colored-ball support * add initial 9-ball mode implementation * update 8-ball and snooker modes to use base ball handling * replicate ball linear velocity for multiplayer synchronization * improve ball collision sound propagation and physics settings * reenable game music and initialize game signals * improve lobby input focus and mode selection behavior * adjust cue impulse origin and default game mode
This commit is contained in:
10
billiards.gd
10
billiards.gd
@@ -70,10 +70,14 @@ func _set_game_mode(mode: String) -> void:
|
||||
Globals.game_data.game_mode = "snooker"
|
||||
Globals.game_data.SelectedGameMode = \
|
||||
Globals.game_data.GameModeType.SNOOKER
|
||||
_:
|
||||
Globals.game_data.game_mode = "snooker"
|
||||
"freeball":
|
||||
Globals.game_data.game_mode = "freeball"
|
||||
Globals.game_data.SelectedGameMode = \
|
||||
Globals.game_data.GameModeType.SNOOKER
|
||||
Globals.game_data.GameModeType.FREE_BALL
|
||||
_:
|
||||
Globals.game_data.game_mode = "freeball"
|
||||
Globals.game_data.SelectedGameMode = \
|
||||
Globals.game_data.GameModeType.FREE_BALL
|
||||
|
||||
|
||||
func server_(arg: String) -> void:
|
||||
|
||||
Reference in New Issue
Block a user