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

@@ -39,8 +39,8 @@ func _ready():
p2_train.hit.connect(_on_hit_player)
p1_train.game_over.connect(_on_player_game_over)
p2_train.game_over.connect(_on_player_game_over)
p1_train.current_speed = 12
p2_train.current_speed = 16
p1_train.current_speed = 34
p2_train.current_speed = 36
func getMapSize(node, is_start):
if node == StartNode && not is_start:

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