added table, new card back texture; adjusted camera angle, card scale
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
extends Node
|
||||
|
||||
@export var full_deck: Dictionary[int, Card]
|
||||
@export var card_textures: Dictionary[int, Texture]
|
||||
@export var card_fallback_texture: Texture
|
||||
|
||||
enum CardStyle {
|
||||
@@ -45,6 +44,8 @@ func _get_card_name(card_id: int) -> String:
|
||||
var color: String
|
||||
var suffix: String
|
||||
|
||||
print("looking up card with id " + str(card_id))
|
||||
|
||||
if card_id < 13:
|
||||
color = "blue"
|
||||
elif card_id < 26:
|
||||
|
||||
@@ -19,7 +19,7 @@ func move_to(new_x_position: float) -> void:
|
||||
_get_new_tween().tween_property(self, "position:x", new_x_position, move_duration)
|
||||
|
||||
func select() -> void:
|
||||
_get_new_tween().tween_property(self, "position:y", 0.36, move_duration)
|
||||
_get_new_tween().tween_property(self, "position:y", 0.13, move_duration)
|
||||
|
||||
func unselect() -> void:
|
||||
_get_new_tween().tween_property(self, "position:y", 0.0, move_duration)
|
||||
|
||||
Binary file not shown.
@@ -3,7 +3,7 @@
|
||||
[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"]
|
||||
[ext_resource type="Texture2D" uid="uid://i0wpcxpk7g2c" path="res://cards/textures/front_test.webp" id="3_jeoeb"]
|
||||
[ext_resource type="Texture2D" uid="uid://cih4y1hskimrs" path="res://cards/textures/back_test.webp" id="4_exvuq"]
|
||||
[ext_resource type="Texture2D" uid="uid://rdmwhsujk7c0" path="res://cards/textures/back_temp.webp" id="4_t6o5d"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_nwj5s"]
|
||||
resource_local_to_scene = true
|
||||
@@ -12,13 +12,12 @@ resource_local_to_scene = true
|
||||
albedo_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_auvip"]
|
||||
albedo_texture = ExtResource("4_exvuq")
|
||||
albedo_texture = ExtResource("4_t6o5d")
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_t6o5d"]
|
||||
size = Vector3(2.38, 3.7, 0.05)
|
||||
size = Vector3(0.275146, 0.427734, 0.0175781)
|
||||
|
||||
[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")
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://rdmwhsujk7c0"
|
||||
path.s3tc="res://.godot/imported/back_temp.webp-8df29acfa79ff82f0ef6131269144180.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://cards/textures/back_temp.webp"
|
||||
dest_files=["res://.godot/imported/back_temp.webp-8df29acfa79ff82f0ef6131269144180.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
Reference in New Issue
Block a user