fix naming convention

This commit is contained in:
2020-11-04 22:59:53 +01:00
parent b64430e10b
commit 1b29065bf8
12 changed files with 122 additions and 87 deletions

17
opponent_car.gd Normal file
View File

@@ -0,0 +1,17 @@
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):
if not Global.race_started:
return -1
var position = get_unit_offset()
position += speed * delta
set_unit_offset(position)