beautify project
This commit is contained in:
@ -131,10 +131,6 @@ func try_to_occupy_hex(hex_node):
|
||||
remote func occupy_hex(hex_x, hex_y):
|
||||
_map._hexes[hex_x][hex_y].occupy_hex()
|
||||
|
||||
#func _process(delta):
|
||||
# if len(_other_players) <= 0 and _game_started:
|
||||
# end_game(true)
|
||||
|
||||
func left_game():
|
||||
for player in _other_players:
|
||||
rpc_id(player[0], "player_left", Player.get_player_id(), Player.get_player_name())
|
||||
@ -147,7 +143,6 @@ func end_game(is_winning):
|
||||
$End_game_panel.visible = true
|
||||
|
||||
remote func player_left(player_id, player_name):
|
||||
print("Player: " + str(player_id) + " left.")
|
||||
_other_players.erase([player_id, player_name])
|
||||
NetworkingSync._player_in_same_game_room_list.erase([player_id, player_name])
|
||||
update_player_list()
|
||||
|
@ -13,13 +13,11 @@ func left_click_on_hex(hex_node):
|
||||
if hex_node.is_free():
|
||||
|
||||
if _game_manager.get_previous_hex() != null:
|
||||
print("try to occupy")
|
||||
|
||||
if hex_node in _game_manager.get_previous_hex().get_neighbours():
|
||||
print("Yea")
|
||||
_game_manager.try_to_occupy_hex(hex_node)
|
||||
else:
|
||||
_game_manager.try_to_occupy_hex(hex_node)
|
||||
|
||||
func right_click_on_hex(hex_node):
|
||||
print("Right click")
|
||||
pass
|
||||
|
Reference in New Issue
Block a user