MAIN.gd 503 B

1234567891011121314151617181920212223242526
  1. extends Node2D
  2. const SPEED = 80.0
  3. var speed = 0.0
  4. var started = false
  5. var delegation_hit = false
  6. var earth_hit = false
  7. # Declare member variables here. Examples:
  8. # var a: int = 2
  9. # var b: String = "text"
  10. # Called when the node enters the scene tree for the first time.
  11. func _ready() -> void:
  12. pass # Replace with function body.
  13. func start():
  14. started = true
  15. speed = - SPEED
  16. # Called every frame. 'delta' is the elapsed time since the previous frame.
  17. #func _process(delta: float) -> void:
  18. # pass