extends Sprite export var gravity = 15 var angular_speed = PI var velocity = Vector2(500, -800) var start_position # Called when the node enters the scene tree for the first time. func _ready(): start_position = position pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): position += velocity * delta rotation += angular_speed * delta velocity.y += gravity func _input(event): if event.is_action_pressed("shoot"): position = start_position rotation = 0 velocity = Vector2(500, -800)