]> git.cworth.org Git - empires-server/commit
Implement the /reveal,/start endpoints as well as the "game-state" event
authorCarl Worth <cworth@cworth.org>
Sun, 10 May 2020 22:45:46 +0000 (15:45 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 10 May 2020 22:45:46 +0000 (15:45 -0700)
commit6271cc2fcbb283f9d9dee520a183d80660ee041e
tree7d399e86136ac457d859dfe7b81a77ddc15a9ed2
parenta89e6229a4c88c77f9a532df8104bceba56b4c40
Implement the /reveal,/start endpoints as well as the "game-state" event

This brings us up to protocol version 0.5 and should be a pretty
playable server at this point. Upon receiving the "/reveal" API
request the server will transition to the "reveal" game-state and from
there will broadcast the names of each character to all clients, one
name every three seconds, (and sending an empty name at the end to
clear off the last name). The "/reveal" API request can be sent
additional times if the players want to see the names again.
server.js