Sesu8642 / FeudalTactics

Strategy game with countless unique and challenging levels.
GNU General Public License v3.0
74 stars 18 forks source link

Local multiplayer #76

Open Curtis-Peace opened 4 days ago

Curtis-Peace commented 4 days ago

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

Sesu8642 commented 3 days ago

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.

Curtis-Peace commented 2 days ago

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 commented 2 days ago

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!