Add player scripts and stuff

This commit is contained in:
SondreElg
2025-10-04 00:04:24 +02:00
parent 255aac0ee9
commit 1102b73197
9 changed files with 180 additions and 0 deletions

16
growth/virus.gd Normal file
View 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)?