Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local multiplayer #76

Open
Curtis-Peace opened this issue Jun 26, 2024 · 6 comments
Open

Local multiplayer #76

Curtis-Peace opened this issue Jun 26, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@Curtis-Peace
Copy link

I'd like to work on adding local multiplayer for between 2-6 players.

@Sesu8642
Copy link
Owner

Sounds good :)
I just realized "local" might be somewhat ambiguous. Are you talking about multiple players on the same device or multiple players on different devices in the same (local) network?
The former is probably mostly about the UI while the latter is a huge task that will take many days to implement.

@Sesu8642 Sesu8642 added the enhancement New feature or request label Jun 28, 2024
@Curtis-Peace
Copy link
Author

I meant multiple players on the same device. I thought it sounds easy enough to tackle and would definitely enhance my enjoyment of the game :)

@Sesu8642
Copy link
Owner

Lets discuss how to implement it in the UI. The simplest solution could be a new parameter labeled something like "number of players". However, it doesnt work well with the color parameter. One solution could be to disable the color parameter if the number of players is greater than one. Another downside is that the parameter screen is already getting too crowded.
Another solution that i probably want in the long run would be an optional two stage parameter input. On the first screen one could input everything thats not influenced by the seed like number of players, bot difficulty etc. It could allow for adding any number of players to a table, with the ability to choose color, bot or human, maybe bot difficulty. The second screen would be about map generation only.
Let me know your ideas!

@Sesu8642
Copy link
Owner

Sesu8642 commented Jul 1, 2024

I pushed some changes. The color parameter is now "starting position".

@Curtis-Peace
Copy link
Author

Sorry I haven't responded in months, had a lot of life stuff going on. I like the idea of two-stage input. I even think we could keep the current parameter screen behind a "Play (single player)" option and do the two-stage input only if "Play (multiplayer)" is selected. Thoughts?

@Sesu8642
Copy link
Owner

Sesu8642 commented Oct 3, 2024

No worries. I like your idea. The buttons can be "Singleplayer" and "Local Multiplayer". When I implement multiplayer via network at some point, I can put both multiplayer modes it in a new sub-menu behind a "Multiplayer" button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants