adjusted camera angle
This commit is contained in:
+2
-10
@@ -69,26 +69,18 @@ func _on_web_client_tcp_client_order_received(client_ids: Array[String]) -> void
|
||||
hand = own_player_hand
|
||||
else:
|
||||
hand = player_hand_scene.instantiate()
|
||||
self.add_child(hand)
|
||||
var reference_marker = marker_positions[index - 1]
|
||||
hand.global_position = reference_marker.global_position
|
||||
hand.global_rotation = reference_marker.global_rotation
|
||||
marker_positions[index - 1].add_child(hand)
|
||||
|
||||
#hand_associations[index] = PlayerHandAssociation.new(
|
||||
#client_ids[index],
|
||||
#hand.get_path(),
|
||||
#)
|
||||
hand_associations[client_ids[index]] = hand
|
||||
|
||||
func _on_web_client_tcp_received_client_id(client_id: String) -> void:
|
||||
_own_client_id = client_id
|
||||
|
||||
|
||||
func _on_web_client_tcp_cards_received(cards: Dictionary) -> void:
|
||||
for client_id in cards.keys():
|
||||
var card_ids: Array[int]
|
||||
card_ids.assign(cards[client_id])
|
||||
hand_associations[client_id].add_cards(card_ids, client_id)
|
||||
hand_associations[client_id].add_cards(card_ids, client_id == _own_client_id)
|
||||
|
||||
func _on_web_client_tcp_received_played_card(client_id: String, card_id: int) -> void:
|
||||
print(client_id + " played card " + str(card_id))
|
||||
|
||||
Reference in New Issue
Block a user