mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 04:16:12 +01:00
fixing
This commit is contained in:
@@ -38,7 +38,8 @@ func _ready():
|
||||
p2_train.is_P1 = false
|
||||
p1_train.hit.connect(_on_hit_player)
|
||||
p2_train.hit.connect(_on_hit_player)
|
||||
p1_train.current_speed = 3
|
||||
p1_train.current_speed = 6
|
||||
p2_train.current_speed = 6
|
||||
|
||||
func getMapSize(node, is_start):
|
||||
if node == StartNode && not is_start:
|
||||
@@ -101,7 +102,7 @@ func mapSimulation(delta):
|
||||
|
||||
func fightSimulation():
|
||||
#FIGHT SIMULATION
|
||||
print(p1_train.current_distance - p2_train.current_distance)
|
||||
#print(p1_train.current_distance - p2_train.current_distance)
|
||||
if(p1_node == p2_node && abs(p1_train.current_distance - p2_train.current_distance) < 0.5):
|
||||
if(fight_state == CHILL):
|
||||
fight_state = FIGHTING
|
||||
|
||||
Reference in New Issue
Block a user