From 1dae8286cf24ba976cbdcde7680cb729aaa2af6c Mon Sep 17 00:00:00 2001 From: Adrian Schmid Date: Thu, 29 Jun 2023 22:29:55 +0200 Subject: [PATCH] fixed missing collider on cards --- src/logic-scenes/board/card.tscn | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/logic-scenes/board/card.tscn b/src/logic-scenes/board/card.tscn index 9ca91eb..89f6a60 100644 --- a/src/logic-scenes/board/card.tscn +++ b/src/logic-scenes/board/card.tscn @@ -6,6 +6,10 @@ [ext_resource type="Theme" uid="uid://b056fn288p8ha" path="res://logic-scenes/themes/messy.theme" id="3_rktsa"] [ext_resource type="Texture2D" uid="uid://bqilajx05t0eb" path="res://logic-scenes/board/particle_textures/void_nomotion.png" id="4_fwm1k"] +[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_foovg"] +radius = 110.0 +height = 336.0 + [sub_resource type="AtlasTexture" id="AtlasTexture_ykk13"] atlas = ExtResource("2_ioijn") region = Rect2(0, 0, 600, 440) @@ -141,19 +145,19 @@ func _process(_delta): self.visible = State.reduce_motion and is_void " -[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_foovg"] -radius = 110.0 -height = 336.0 - [node name="card" type="Area2D"] -rotation = 0.197177 +rotation = -0.0714123 script = ExtResource("1_emip0") +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2(-0.0713516, 0.997451) +rotation = 1.5708 +shape = SubResource("CapsuleShape2D_foovg") + [node name="BackgroundSprite" type="AnimatedSprite2D" parent="."] clip_children = 2 scale = Vector2(0.6, 0.6) sprite_frames = SubResource("SpriteFrames_ckivt") -frame = 3 script = SubResource("GDScript_8bs16") [node name="GPUParticles2D" type="GPUParticles2D" parent="BackgroundSprite"]