physics.tscn 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. [gd_scene load_steps=4 format=3 uid="uid://re2mg31p3vln"]
  2. [ext_resource type="Script" path="res://examples/12-physics/physics.cs" id="1_t1cxt"]
  3. [ext_resource type="SpineSkeletonDataResource" uid="uid://ivqmuytdfvde" path="res://assets/celestial-circus/celestial-circus-data.tres" id="2_t2blj"]
  4. [sub_resource type="RectangleShape2D" id="RectangleShape2D_do8w3"]
  5. size = Vector2(270, 573)
  6. [node name="Node2D" type="Node2D"]
  7. script = ExtResource("1_t1cxt")
  8. [node name="celestial-circus" type="SpineSprite" parent="."]
  9. position = Vector2(600, 485)
  10. scale = Vector2(0.25, 0.25)
  11. skeleton_data_res = ExtResource("2_t2blj")
  12. preview_skin = "Default"
  13. preview_animation = "-- Empty --"
  14. preview_frame = false
  15. preview_time = 0.0
  16. [node name="Area2D" type="Area2D" parent="celestial-circus"]
  17. show_behind_parent = true
  18. scale = Vector2(4, 4)
  19. [node name="CollisionShape2D" type="CollisionShape2D" parent="celestial-circus/Area2D"]
  20. show_behind_parent = true
  21. position = Vector2(0, -158.5)
  22. shape = SubResource("RectangleShape2D_do8w3")
  23. [connection signal="mouse_entered" from="celestial-circus/Area2D" to="." method="_on_area_2d_mouse_entered"]
  24. [connection signal="mouse_exited" from="celestial-circus/Area2D" to="." method="_on_area_2d_mouse_exited"]