mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 04:16:12 +01:00
Bub
This commit is contained in:
@@ -4,7 +4,7 @@ class_name TrainEngine
|
||||
|
||||
enum STATE {RUNNING, DEAD}
|
||||
const maxSpeed = 10
|
||||
const refuelRate = 0.5
|
||||
const refuelRate = 1.0
|
||||
|
||||
@onready var train = get_parent() as Train
|
||||
|
||||
@@ -32,8 +32,8 @@ func interact(player):
|
||||
|
||||
func _process(delta):
|
||||
if not train.is_dead():
|
||||
train.current_speed -= 0.1 * delta * 0.25
|
||||
print("Player ",train.is_P1,train.current_speed)
|
||||
train.current_speed -= 0.1 * delta * 0.08 * train.current_speed
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user