]> git.cworth.org Git - empires-server/commit
empires: Add an initial "choose nickname" step before joining a game
authorCarl Worth <cworth@cworth.org>
Sat, 23 May 2020 17:25:44 +0000 (10:25 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 24 May 2020 20:48:51 +0000 (13:48 -0700)
commit70a137f52f6753491838515016489cab1347261b
treeec44950b95b59a93b62aed4ad893477d1f4b83e6
parent69982639f2cfd48fb9583856cbf407629e4f291e
empires: Add an initial "choose nickname" step before joining a game

This lodges the selected nickname in the current session, (using a new
/profile API also added in this commit).

Having the nickname stored in the session has the advantage that when
playing multiple games in a row, a player won't need to keep re-typing
their own name each time.
empires.js
lmno.js
templates/choose-nickname.html [new file with mode: 0644]