The assumption is that we'll have some kind of lobby, where players join in before the game actually starts.
Consider the game can be either Free-For-All(FFA) (no teams, every player fights for himself),
An it can be Team Deathmatch(TD), which requires creating N(>=2) teams.
Team Deathmatch Limitations
We will limit TD to 2 teams, for now. Implementation should support more.
Teams should be balanced in terms of amounts.
Room Events
join - joins a player to the list of available players. if the mode is TD, assign the player to the team with the least players, and randomise if both are equally full.
change_team - attempts to move a player a team. Should allow a team to have up to one more player than the other team.
ready - marks a player as ready to play. This can be used to determine when the game should start.
Handling Lobby Ready
This issue describes the mechanism to be used when moving players from room to room. I have several ideas of how to manage this, so whoever takes this issue should discuss with me.
Concept
The assumption is that we'll have some kind of lobby, where players join in before the game actually starts.
Consider the game can be either Free-For-All(
FFA
) (no teams, every player fights for himself), An it can be Team Deathmatch(TD
), which requires creatingN
(>=2) teams.Team Deathmatch Limitations
Room Events
join
- joins a player to the list of available players. if the mode isTD
, assign the player to the team with the least players, and randomise if both are equally full.change_team
- attempts to move a player a team. Should allow a team to have up to one more player than the other team.ready
- marks a player as ready to play. This can be used to determine when the game should start.Handling Lobby Ready
This issue describes the mechanism to be used when moving players from room to room. I have several ideas of how to manage this, so whoever takes this issue should discuss with me.