12 lines
200 B
GDScript3
12 lines
200 B
GDScript3
|
extends Sprite2D
|
||
|
|
||
|
var speed = 400
|
||
|
var angular_speed = PI
|
||
|
|
||
|
func _process(delta):
|
||
|
rotation += angular_speed * delta
|
||
|
|
||
|
var velocity = Vector2.UP.rotated(rotation) * speed
|
||
|
|
||
|
position += velocity * delta
|