putting together in Main scene

This commit is contained in:
2020-10-30 15:23:13 +01:00
parent e528d2ec7f
commit edc4b5630d
16 changed files with 433 additions and 188 deletions

14
TrackOpponent.gd Normal file
View File

@@ -0,0 +1,14 @@
extends PathFollow2D
export (float) var speed = 0.125
# Called when the node enters the scene tree for the first time.
func _ready():
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
var position = get_unit_offset()
position += speed * delta
set_unit_offset(position)