box.tscn 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. [gd_scene load_steps=6 format=3 uid="uid://cu7igcchdwu22"]
  2. [ext_resource type="Script" path="res://scenes/box/box.gd" id="1_8ms3o"]
  3. [ext_resource type="PackedScene" uid="uid://bwga8k8fxmfpk" path="res://scenes/color_body/color_body.tscn" id="3_5na8b"]
  4. [ext_resource type="Texture2D" uid="uid://cibn23j4hvtha" path="res://assets/box/base.svg" id="3_tklf1"]
  5. [ext_resource type="PackedScene" uid="uid://d216kyvf7xmb8" path="res://scenes/box/display/display.tscn" id="4_oc4bp"]
  6. [sub_resource type="RectangleShape2D" id="RectangleShape2D_sfkx1"]
  7. size = Vector2(63, 63)
  8. [node name="Box" type="CharacterBody2D"]
  9. collision_layer = 2
  10. collision_mask = 3
  11. collision_priority = 2.0
  12. input_pickable = true
  13. safe_margin = 0.02
  14. script = ExtResource("1_8ms3o")
  15. metadata/_edit_group_ = true
  16. [node name="ColorBody" parent="." instance=ExtResource("3_5na8b")]
  17. [node name="Base" type="Sprite2D" parent="ColorBody"]
  18. scale = Vector2(0.25, 0.25)
  19. texture = ExtResource("3_tklf1")
  20. [node name="Display" parent="." instance=ExtResource("4_oc4bp")]
  21. [node name="CollisionPolygon2D" type="CollisionShape2D" parent="."]
  22. shape = SubResource("RectangleShape2D_sfkx1")
  23. [connection signal="input_event" from="." to="." method="_on_input_event"]