A game created for the Godot Wild Jam #21
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

26 行
407B

  1. tool
  2. extends Node2D
  3. export var pulse_color:Color = Color(1.0, 0.8, 0.0, 1.0) setget _set_color
  4. func _set_color(c):
  5. pulse_color = c
  6. $Dot.pulse_color = c
  7. $Dot21.pulse_color = c
  8. $Dot22.pulse_color = c
  9. $Dot31.pulse_color = c
  10. $Dot32.pulse_color = c
  11. func _ready():
  12. set_color(pulse_color)
  13. $Dot.start()
  14. $Dot21.start()
  15. $Dot22.start()
  16. $Dot31.start()
  17. $Dot32.start()
  18. func set_color(c):
  19. _set_color(c)