17 lines
419 B
GDScript
17 lines
419 B
GDScript
extends Node2D
|
|
|
|
@export var speed = 400 # How fast the player will move (pixels/sec).
|
|
|
|
func _ready():
|
|
# Initalize with random abilities from available abilities
|
|
|
|
func _process(delta):
|
|
# Grow in size
|
|
|
|
# RayCast towards player (every N frames), moving towards it if close enough
|
|
# Or should we always move towards the player?
|
|
|
|
# Use abilities if:
|
|
## Raycast hit
|
|
## Regular intervals (if close enough to player)?
|