This commit is contained in:
Leon Palluch committed 2020-02-01 23:08:52 +01:00
commit 56f491f68e
5 files changed
+16 -46

No files matched your search

+5 -3
View File
@@ -12,7 +12,7 @@ var _body_count = 0
var _body_positions = [Vector3(-30, 3, 0), Vector3(30, 3, 0), Vector3(0, 3, -30), Vector3(0, 3, 30)]
func _ready():
InGameState.player_count = 4
InGameState.player_count = 2
_prep_scene("body_build")
_prep_scene("fight_scene")
@@ -58,8 +58,10 @@ func _switch_to_win(player_id):
func _switch_to_fighting(torso):
_body_build_scene.remove_child(torso)
torso.translation += _body_positions[_body_count]
torso.rotation = Vector3(0, 0, 0)
torso.global_transform.origin = Vector3.ZERO
torso.translation += Vector3(0, 4, 0)
torso.rotation = Vector3.ZERO
_body_count += 1
if _body_count < InGameState.player_count: