Files
Cozypaw-Hospital/scenes/objects/InteractiveObject.tscn
Steven Wroblewski d142dbe847 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>
2026-04-17 10:44:40 +02:00

33 lines
1.0 KiB
Plaintext

[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"
[node name="Visual" type="Node2D" parent="."]
[node name="Stem" type="ColorRect" parent="Visual"]
color = Color(0.2, 0.7, 0.2, 1)
size = Vector2(8, 40)
position = Vector2(-4, -40)
[node name="Bloom" type="ColorRect" parent="Visual"]
color = Color(1.0, 0.4, 0.6, 1)
size = Vector2(32, 32)
position = Vector2(-16, -72)
[node name="DragDropComponent" type="Node" parent="."]
script = ExtResource("2_drag")
[node name="CollisionArea" type="Area2D" parent="."]
input_pickable = true
[node name="CollisionShape" type="CollisionShape2D" parent="CollisionArea"]
shape = SubResource("RectangleShape2D_obj")