mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 04:16:12 +01:00
asas
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user