]> git.cworth.org Git - lmno.games/commit
Empathy: Send prompt suggestions to server and display received prompts
authorCarl Worth <cworth@cworth.org>
Mon, 8 Jun 2020 13:54:16 +0000 (06:54 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 8 Jun 2020 13:54:16 +0000 (06:54 -0700)
commitfcdecf554d0bbad80b96b3c34fb5ba8cefef2144
treeabb1dfcc98d0f27ddf56bd49e6f1e74a05007337
parentbcc27fd33ea930e8f22d9d8689b7c95cf04b3bd7
Empathy: Send prompt suggestions to server and display received prompts

The received prompts can come in an initial list as part of the
"game-state" event sent when first connecting, and they can also come
in subsequent "prompt" events when a player submits a category
suggestion. These are all displayed as large buttons.

Clicking a button also sends a vote to the server, but received votes
are not yet displayed in any way.
empathy/empathy.css
empathy/empathy.jsx