fix(poc): resolve evaluator and review findings

- Add RectangleShape2D to Character and InteractiveObject collision areas
- Fix HUD button signal connections in _ready()
- Fix character_placed signal emitting global_position
- Extract DEFAULT_DRAG_RADIUS constant in DragDropComponent
- Type Variant on JSON parsed variable in SaveManager
- Extract music symbol constants in HUD
- Refactor duplicated drag input code in InputManager

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Steven Wroblewski
2026-04-17 10:44:40 +02:00
parent 9a1e30d808
commit f7c8a7ec03
7 changed files with 40 additions and 21 deletions

View File

@@ -1,8 +1,11 @@
[gd_scene load_steps=3 format=3 uid="uid://cozypaw_char"]
[gd_scene load_steps=4 format=3 uid="uid://cozypaw_char"]
[ext_resource type="Script" path="res://scripts/characters/character.gd" id="1_char"]
[ext_resource type="Script" path="res://scripts/systems/drag_drop_component.gd" id="2_drag"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_char"]
size = Vector2(64, 80)
[node name="Character" type="Node2D"]
script = ExtResource("1_char")
character_id = "bunny_01"
@@ -44,3 +47,5 @@ script = ExtResource("2_drag")
input_pickable = true
[node name="CollisionShape" type="CollisionShape2D" parent="CollisionArea"]
shape = SubResource("RectangleShape2D_char")
position = Vector2(0, -40)

View File

@@ -1,8 +1,11 @@
[gd_scene load_steps=3 format=3 uid="uid://cozypaw_iobj"]
[gd_scene load_steps=4 format=3 uid="uid://cozypaw_iobj"]
[ext_resource type="Script" path="res://scripts/objects/interactive_object.gd" id="1_iobj"]
[ext_resource type="Script" path="res://scripts/systems/drag_drop_component.gd" id="2_drag"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_obj"]
size = Vector2(48, 48)
[node name="InteractiveObject" type="Node2D"]
script = ExtResource("1_iobj")
object_id = "flower_01"
@@ -26,3 +29,4 @@ script = ExtResource("2_drag")
input_pickable = true
[node name="CollisionShape" type="CollisionShape2D" parent="CollisionArea"]
shape = SubResource("RectangleShape2D_obj")