Projects projects projects

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:

  1. Player 1 joins.
  2. The server creates a JSON file storing the player’s name and position.
  3. Every time the player moves, their position in the JSON file is updated.
  4. Player 2 joins.
  5. Each player now updates their own JSON file with their current position.
  6. Both clients also read the other players’ JSON files to track everyone’s movements.