heart.gd 231 B

123456789101112
  1. @tool
  2. extends Node2D
  3. var heart = preload("res://addons/custom_node/heart.png")
  4. func _draw():
  5. draw_texture(heart, -heart.get_size() / 2)
  6. func _get_item_rect():
  7. # override
  8. return Rect2(-heart.get_size() / 2, heart.get_size())