This small project configures up to 4 players locally, which allows you to enter the number of players and configure automatically your keyboard controls for players 1 and 2, for players 3 and 4 you need jostycks. It also initializes a level with the configured players, with movement and shooting.
Player 1: WASD + J or Jostyck + X
Player 2: Directionals + L or Jostyck + X
Player 3: Jostyck + X
Player 4: Jostyck + X
The code is optimizable.
Feel free to write me for any questions or queries: