Add player scripts and stuff
This commit is contained in:
16
growth/virus.gd
Normal file
16
growth/virus.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
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)?
|
||||
Reference in New Issue
Block a user