This commit is contained in:
PfandBoss
2022-12-11 11:59:00 +01:00
parent 739159e931
commit fbec4d3e46
8 changed files with 78 additions and 28 deletions

View File

@@ -3,8 +3,8 @@ class_name TrainEngine
enum STATE {RUNNING, DEAD}
const maxSpeed = 40
const refuelRate = 1.0
const maxSpeed = 60
const refuelRate = 1.25
@onready var train = get_parent() as Train

View File

@@ -13,8 +13,8 @@ enum TYPE {AMMO, GUNPOWDER, COAL, LARGE, GIANT}
func _ready():
#var root = get_tree().root.get_child(0)
#root.ammo_pickup.connect(_on_signal_storing)
maxStashValue = 10
currentStashValue = 10
maxStashValue = 100
currentStashValue = 100
$Sprite3D2.texture = icon
$AudioStreamPlayer.stream = audioClip
$Sprite3D2.visible = false