BAD MULTIPLAYER POC GAME
2016-12-12 01:00:00
This was a fun experiment in creating a multiplayer game by reading and writing player data to local files on a server. The workflow is simple:
- Player 1 joins.
- The server creates a JSON file storing the player’s name and position.
- Every time the player moves, their position in the JSON file is updated.
- Player 2 joins.
- Each player now updates their own JSON file with their current position.
- Both clients also read the other players’ JSON files to track everyone’s movements.