Tuesday, 28 April 2015

A Menu For All Menus!

I'll start off by apologising for the really short video on this, I don't have 4 controllers at hand so I had to cut it from footage recorded earlier in the day. The way my menu works is to have them all within the same Unity scene, this makes the whole thing a lot more manageable and removes the need to have to code multiple scene changes.



For the most part the menu is very very basic in terms of code. The real beauty is in the controller manager.


The project currently only supports Xbox 360 controllers however there is third party software available to make other controllers mimic the input of a 360 controller. When its time to add controllers and chose your starting team (blue or orange), regardless of what order the controllers are registered as, they will be added to the controller manager in the order of fastest finger first on the start button. This will register the player with the next available player slot (1 to 4). The rest of the game uses this global controller manager in order to manipulate the player objects and all other controller inputs. This system allows us to have truly dynamic controller assignment to player objects in the scene so we are never restricted by "who is player 1?"

The stage and mode select screens are currently placeholders until more content is available. The controller map screen is just a splash screen displayed before a stage begins.

No comments:

Post a Comment