]> git.cworth.org Git - lmno.games/log
lmno.games
3 years agoRename player-register/player-deregister to player-join/player-leave
Carl Worth [Sun, 10 May 2020 16:55:43 +0000 (09:55 -0700)]
Rename player-register/player-deregister to player-join/player-leave

This brings the client into conformance with protocol version 0.3.

3 years agoAdd a message when the connection to the server is lost
Carl Worth [Sun, 10 May 2020 15:45:02 +0000 (08:45 -0700)]
Add a message when the connection to the server is lost

Making it clear to the user that something has gone wrong.

3 years agoDisable autocomplete on the character field
Carl Worth [Sun, 10 May 2020 15:43:59 +0000 (08:43 -0700)]
Disable autocomplete on the character field

This is intended to prevent multiple players (using a single browser)
from accidentally seeing a name that a previous player entered when
the browser offers it up for autocompletion.

3 years agoTrack removal of players (by either deregister or by capture)
Carl Worth [Mon, 4 May 2020 00:42:10 +0000 (17:42 -0700)]
Track removal of players (by either deregister or by capture)

Currently the capture UI is rather spartan, (the captured name just
disappears—it doesn't appear as a capture next to the capturing
player).

3 years agoAdd event listening to the HTML client
Carl Worth [Mon, 4 May 2020 00:18:21 +0000 (17:18 -0700)]
Add event listening to the HTML client

Specifically, displaying a list of all players. This captures both the
existing players at the time the client connects, as well as adding
any additional players that register.

3 years agoAdd another missing const
Carl Worth [Mon, 4 May 2020 00:17:51 +0000 (17:17 -0700)]
Add another missing const

(Someday I'll fix things so that I can't commit non-lint-clean code.)

3 years agoAdd a simple "make deploy" target
Carl Worth [Sun, 3 May 2020 18:01:26 +0000 (11:01 -0700)]
Add a simple "make deploy" target

To simplify the deployment which I'd previously been doing manually.

This will deploy only the state of committed code.

3 years agoUse an actual "submit" input element instead of a "button"
Carl Worth [Sun, 3 May 2020 17:54:57 +0000 (10:54 -0700)]
Use an actual "submit" input element instead of a "button"

This has the advantage of allowing the user to just press the Enter
key on any field of the form in order to submit it. For this we move
the invocation of our javascript handler for the form submission from
onclick() of the button to onsubmit() of the form itself. Finally, we
have to reutnr false from our new onsubmit() handler so that the
browser doesn't reload the page (which would clear the message that
results from a new player being added).

3 years agoCorrect a couple of typos in the welcome paragraph
Carl Worth [Sun, 3 May 2020 17:27:22 +0000 (10:27 -0700)]
Correct a couple of typos in the welcome paragraph

What embarrassing misspellings!

3 years agoMove API endppoint to have an /api suffix
Carl Worth [Sun, 3 May 2020 17:14:19 +0000 (10:14 -0700)]
Move API endppoint to have an /api suffix

We moved this on the server to create room for some non-API content
to be served from /.

3 years agoInitial implementation of a web client for the Empires game
Carl Worth [Sun, 3 May 2020 17:07:15 +0000 (10:07 -0700)]
Initial implementation of a web client for the Empires game

This implements only the ability to register a player in the game.