- 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>
52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
[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"
|
|
display_name = "Bunny"
|
|
|
|
[node name="Visual" type="ColorRect" parent="."]
|
|
color = Color(0.95, 0.85, 0.9, 1)
|
|
size = Vector2(64, 80)
|
|
position = Vector2(-32, -80)
|
|
|
|
[node name="Eyes" type="Node2D" parent="Visual"]
|
|
|
|
[node name="EyeLeft" type="ColorRect" parent="Visual/Eyes"]
|
|
color = Color(0.1, 0.1, 0.1, 1)
|
|
size = Vector2(8, 8)
|
|
position = Vector2(14, 20)
|
|
|
|
[node name="EyeRight" type="ColorRect" parent="Visual/Eyes"]
|
|
color = Color(0.1, 0.1, 0.1, 1)
|
|
size = Vector2(8, 8)
|
|
position = Vector2(42, 20)
|
|
|
|
[node name="Ears" type="Node2D" parent="."]
|
|
|
|
[node name="EarLeft" type="ColorRect" parent="Ears"]
|
|
color = Color(0.95, 0.85, 0.9, 1)
|
|
size = Vector2(18, 36)
|
|
position = Vector2(-22, -114)
|
|
|
|
[node name="EarRight" type="ColorRect" parent="Ears"]
|
|
color = Color(0.95, 0.85, 0.9, 1)
|
|
size = Vector2(18, 36)
|
|
position = Vector2(4, -114)
|
|
|
|
[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_char")
|
|
position = Vector2(0, -40)
|