frankobjank / natac

Free & open source networked game implemented in Python, inspired by Klaus Teuber's Settlers of Catan for MacOS and Linux.
1 stars 0 forks source link

Joining the Server/ Starting a Game #16

Closed frankobjank closed 2 weeks ago

frankobjank commented 3 months ago
frankobjank commented 3 months ago

Order of actions Mode = "adding_players" - players join server, choose name/ color. when all are added, click start game When another player joins, they will appear in top left of screen of all clients. Will appear gray before they pick a color. Once they pick a color a checkmark will appear next to them signifying they are ready to start the game. server.start_game() - Board is created, player order is determined (both randomized), mode set to "setup" Mode = "setup" - players place initial settlements/ roads (#27)

frankobjank commented 2 weeks ago

In order to package into app, players must be able to enter username and IP address within the game.

Order of starting game: Info Box will have an input line for IP address and another line for username Player will click "Connect to server" button to try to connect  If a fail, show a message like "Unable to connect" If connected to server successfully, other players will appear on left side and chat prompt will populate with player's name Info Box will show the available colors (would be nice to add a city/settlement/road for each color). From here the game should work as usual.

frankobjank commented 2 weeks ago

As of commit 893284c all of these have been implemented, still could add a message if client fails to connect.