Friday, January 23, 2015

Anansi: Multiplayer


As promised, it's easy to add another player to the game. All you need to do is to add this line for every player

createPlayer( scene);

and give the new players dedicated keyboard controls
input.setUpKey(KeyCode.W);
input.setDownKey(KeyCode.S);
input.setLeftKey(KeyCode.A);
input.setRightKey(KeyCode.D);
input.setPrimaryWeaponKey(KeyCode.J);
input.setSecondaryWeaponKey(KeyCode.K);

You can as well choose a different color, different weapons, whatever you prefer. The feature is available and it's as easy to add even more players.

No comments:

Post a Comment