slot-node.tscn 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [gd_scene load_steps=5 format=3 uid="uid://bhht8dees2pyq"]
  2. [ext_resource type="Script" path="res://examples/07-slot-node/slot-node.gd" id="1"]
  3. [ext_resource type="SpineSkeletonDataResource" path="res://assets/spineboy/spineboy-data-res.tres" id="2"]
  4. [ext_resource type="SpineSkeletonDataResource" path="res://assets/raptor/raptor-data.tres" id="3"]
  5. [ext_resource type="Texture2D" uid="uid://8ud5n2ywp5ba" path="res://icon.png" id="4"]
  6. [node name="Node2D" type="Node2D"]
  7. script = ExtResource( "1" )
  8. [node name="Spineboy" type="SpineSprite" parent="."]
  9. position = Vector2(474, 506)
  10. scale = Vector2(0.560712, 0.560712)
  11. skeleton_data_res = ExtResource( "2" )
  12. preview_animation = "-- Empty --"
  13. preview_frame = false
  14. preview_time = 0.0
  15. [node name="GunSlot" type="SpineSlotNode" parent="Spineboy"]
  16. show_behind_parent = true
  17. position = Vector2(40.8753, -276.036)
  18. rotation = 0.837234
  19. slot_name = "gun"
  20. [node name="Raptor" type="SpineSprite" parent="Spineboy/GunSlot"]
  21. position = Vector2(84.6909, -67.9174)
  22. scale = Vector2(0.193472, 0.193472)
  23. skeleton_data_res = ExtResource( "3" )
  24. preview_animation = "-- Empty --"
  25. preview_frame = false
  26. preview_time = 0.0
  27. [node name="EyeSlot" type="SpineSlotNode" parent="Spineboy"]
  28. show_behind_parent = true
  29. position = Vector2(-23.4598, -402.301)
  30. rotation = -1.71793
  31. slot_name = "eye"
  32. [node name="Sprite" type="Sprite2D" parent="Spineboy/EyeSlot"]
  33. position = Vector2(84.4734, 43.4469)
  34. rotation = 1.66344
  35. texture = ExtResource( "4" )
  36. [node name="FrontFistSlot" type="SpineSlotNode" parent="Spineboy"]
  37. show_behind_parent = true
  38. position = Vector2(-29.0298, -241.577)
  39. rotation = 0.995187
  40. slot_name = "front-fist"
  41. [node name="TinySpineboy" type="SpineSprite" parent="Spineboy/FrontFistSlot"]
  42. position = Vector2(-2.64624, -10.8111)
  43. scale = Vector2(0.193389, 0.193389)
  44. skeleton_data_res = ExtResource( "2" )
  45. preview_animation = "-- Empty --"
  46. preview_frame = false
  47. preview_time = 0.0