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