added table, new card back texture; adjusted camera angle, card scale

This commit is contained in:
2025-07-15 09:51:22 +02:00
parent 261e958a98
commit 7bbba627f7
12 changed files with 132 additions and 20 deletions
+9 -11
View File
@@ -1,13 +1,11 @@
class_name PlayerHand
extends Node3D
@export var card_width: float = 2.35
## Distance cards will be apart when there is a small amount of them
@export var card_distance_max: float = 0.8
var card_distance_max: float = 0.18
## Distance cards will be apart when there is a large amount of them
@export var card_distance_min: float = 0.32
var card_distance_min: float = 0.09
## How many test cards to add
@export_range(0, 20) var test_card_count: int = 0
@@ -19,13 +17,13 @@ var _selected_card: PlayingCard = null
signal card_selected(card_id: int)
signal card_played(card_id: int)
#func _ready() -> void:
#_arrange_cards()
#var test_array: Array[int]
#for i in range(20):
#test_array.append(randi_range(0, 59))
#
#add_cards(test_array)
func _ready() -> void:
_arrange_cards()
var test_array: Array[int]
for i in range(20):
test_array.append(randi_range(0, 59))
add_cards(test_array, "")
func add_card(card: PlayingCard) -> void:
self.add_child(card)