issues
search
fabienjuif
/
subterra
Not finished clone of subterra board game
https://pedantic-lalande-d5e881.netlify.com/
0
stars
0
forks
source link
api / game
#61
Closed
fabienjuif
closed
4 years ago
fabienjuif
commented
4 years ago
Initialized by the lobby server (checking key [cert]) [
https://github.com/fabienjuif/subterra/issues/60
]
this game api returns its full URL :
https://something/game/:gameId
Receiving players informations (uuid, archetypes, etc)
When a players connects :
check its JWT
check its uuid is whitelisted
send current state
Waiting for actions from players
for each player -> dispatch in engine -> broadcast state
When the game ends
calls
/lobby
API to freeup the server (making it available for lobbies) [
https://github.com/fabienjuif/subterra/issues/60
]
send some stats along freeing it up
win/loose
hps
etc
https://something/game/:gameId
/lobby
API to freeup the server (making it available for lobbies) [https://github.com/fabienjuif/subterra/issues/60]