Merge branch 'master' of https://gitlab.hexaquo.at/ggjg20/bodypartfighter
This commit is contained in:
commit
56f491f68e
5 files changed
+16
-46
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user