adjusted camera angle
This commit is contained in:
+7
-4
@@ -18,16 +18,19 @@ func _set_host(is_host: bool) -> void:
|
||||
|
||||
func _start_next_play() -> void:
|
||||
_cards_left -= 1
|
||||
print("cards left: " + str(_cards_left))
|
||||
if _cards_left == 0:
|
||||
_start_next_round()
|
||||
else:
|
||||
web_client.start_next_play()
|
||||
|
||||
func _start_next_round() -> void:
|
||||
_current_round += 1
|
||||
_cards_left = _current_round
|
||||
web_client.start_next_round(_current_round)
|
||||
if _current_round == _max_rounds:
|
||||
pass
|
||||
# end game
|
||||
else:
|
||||
_current_round += 1
|
||||
_cards_left = _current_round
|
||||
web_client.start_next_round(_current_round)
|
||||
|
||||
func _get_max_rounds(player_count: int) -> int:
|
||||
match player_count:
|
||||
|
||||
Reference in New Issue
Block a user