Hi -
I am implementing support for 3-player and 4-player gameplay.
I have player 1 assigned to the gamepad that hits A or Start on the title screen, as per the best practices article.
There's 2 things I'm not sure on:
1. For players 2, 3 and 4, I need to track if their PlayerIndex has not been determined. I tried to do this by starting the game with their PlayerIndex's set to null - but this is not allowed. I think what I will have to do is add a boolean to my Player class which is false at the start of a game and changed to true when a controller that has player input has been identified.
Does this sound like a reasonable idea?
2. For a 3 or 4 player game, players apart from player 1 need to know which player on screen is them. I think most games handle this via a "load out" or character select screen. My game is simple and will jump straight into gameplay. So I have a problem of dropping 4 players into a new game. My intended solution to this is to wait for input on a controller, then assign that controller to a player and simultaneously highlight the player on screen and rumble their gamepad. Is this a decent approach?
One problem I foresee is that all players will be starting input within the space of a few seconds, so all players will be highlighted and all controllers rumbled at the same time. To counter this I may need to ensure these controller alerts only occur one-at-a-time
Dead Meat- Out now on XBLIG!