swapped player starting positions

This commit is contained in:
Leon Palluch 2020-02-02 14:01:17 +01:00
parent d6d2240540
commit ffae483803

View File

@ -12,7 +12,7 @@ var _win_screen_scene
var _bodies : Array var _bodies : Array
var _body_count = 0 var _body_count = 0
var _body_positions = [Vector3(0, 15, -30), Vector3(0, 15, 30), Vector3(-30, 15, 0), Vector3(30, 15, 0)] var _body_positions = [Vector3(0, 15, 30), Vector3(0, 15, -30), Vector3(-30, 15, 0), Vector3(30, 15, 0)]
func _ready(): func _ready():
InGameState.player_count = 2 InGameState.player_count = 2
@ -68,7 +68,7 @@ func _switch_to_fighting(torso):
torso.translation += _body_positions[_body_count] torso.translation += _body_positions[_body_count]
torso.rotation_degrees = Vector3(90, 0, 0) torso.rotation_degrees = Vector3(90, 0, 0)
if _body_count == 1: if _body_count == 0:
torso.rotation_degrees += Vector3(0, 180, 0) torso.rotation_degrees += Vector3(0, 180, 0)
_body_count += 1 _body_count += 1