client: added player hand and animation for added cards

This commit is contained in:
2025-07-08 15:58:46 +02:00
parent 4fec323639
commit a7ea8510f7
9 changed files with 137 additions and 14 deletions
+16 -6
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=3 uid="uid://b55xpcxk7g5ph"]
[gd_scene load_steps=9 format=3 uid="uid://b55xpcxk7g5ph"]
[ext_resource type="Script" uid="uid://c2odugkbbppxn" path="res://cards/playing_card.gd" id="1_t6o5d"]
[ext_resource type="PackedScene" uid="uid://dxiv47be5dsll" path="res://cards/playing_card.glb" id="2_enav7"]
@@ -14,17 +14,27 @@ albedo_color = Color(0, 0, 0, 1)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_auvip"]
albedo_texture = ExtResource("4_exvuq")
[node name="PlayingCard" type="StaticBody3D" node_paths=PackedStringArray("card_mesh")]
[sub_resource type="BoxShape3D" id="BoxShape3D_t6o5d"]
size = Vector3(2.38, 3.7, 0.05)
[node name="PlayingCard" type="Area3D" node_paths=PackedStringArray("card_mesh")]
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
collision_layer = 8
collision_mask = 0
script = ExtResource("1_t6o5d")
card_mesh = NodePath("PlayingCard/Cube")
card_mesh = NodePath("Model/Cube")
front_texture = ExtResource("3_jeoeb")
[node name="PlayingCard" parent="." instance=ExtResource("2_enav7")]
[node name="Model" parent="." instance=ExtResource("2_enav7")]
[node name="Cube" parent="PlayingCard" index="0"]
[node name="Cube" parent="Model" index="0"]
surface_material_override/0 = SubResource("StandardMaterial3D_nwj5s")
surface_material_override/1 = SubResource("StandardMaterial3D_hel13")
surface_material_override/2 = SubResource("StandardMaterial3D_auvip")
[editable path="PlayingCard"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("BoxShape3D_t6o5d")
[connection signal="input_event" from="." to="." method="_on_input_event"]
[editable path="Model"]