CleverGameDev / Cleverfall

https://clevergamedev.itch.io/cleverfall
1 stars 0 forks source link

make the player a prefab, and allow 2 to be controlled #9

Closed nathanleiby closed 4 years ago

nathanleiby commented 4 years ago

I refactored the input manager a bit, so that when you have a controller and a keyboard, it will auto assign a role to each player. Here are two players being controlled at once, with the controller being assigned dynamically:

2p-our-map

In the 2nd commit, I added a PlayerInputManager that allows players to join when you press a key/button

2p-press-start-to-join

nathanleiby commented 4 years ago

Was hard to rebase the unity metadata files, will just be easier to make a new PR