summaryrefslogtreecommitdiff
path: root/web/web_control.c
Commit message (Collapse)AuthorAgeFilesLines
* move a bunch of general match logic from web to libDavid Vazgenovich Shakaryan2022-05-231-43/+36
|
* web: remove hard-coded match modesDavid Vazgenovich Shakaryan2022-05-211-10/+5
|
* web: reimplement menus as a stack with more shared codeDavid Vazgenovich Shakaryan2022-05-211-42/+1
|
* web: support visit log for 3+ player matchesDavid Vazgenovich Shakaryan2022-05-201-0/+8
| | | | | The new match modes are for testing. They'll eventually be removed in favour of true configurability.
* web: dynamically allocate player bufsDavid Vazgenovich Shakaryan2022-05-201-1/+1
|
* web: add (incomplete) support for 3+ player matchesDavid Vazgenovich Shakaryan2022-05-201-11/+11
|
* web: display comp name in throwing promptDavid Vazgenovich Shakaryan2022-05-181-2/+2
|
* web: store comp info as part of match player info instead of globallyDavid Vazgenovich Shakaryan2022-05-181-17/+18
| | | | | This allows us things like two computer players against one another, which I've also added for testing.
* web: remove assumption that comp is player 2David Vazgenovich Shakaryan2022-05-181-8/+7
|
* web: fix bug when player 2 presses remaining keyDavid Vazgenovich Shakaryan2022-05-181-1/+1
|
* web: use match info funcs instead of checking modeDavid Vazgenovich Shakaryan2022-05-181-14/+10
|
* web: move match info funcs to match fileDavid Vazgenovich Shakaryan2022-05-181-40/+6
|
* web: change winning player messageDavid Vazgenovich Shakaryan2022-05-181-10/+2
|
* web: remove active leg ptr; various cleanupDavid Vazgenovich Shakaryan2022-05-181-8/+5
|
* web: support first-visit undo when player 2 throws firstDavid Vazgenovich Shakaryan2022-05-181-2/+14
|
* web: refactor undo logicDavid Vazgenovich Shakaryan2022-05-181-52/+73
|
* web: add throw animationDavid Vazgenovich Shakaryan2022-05-161-1/+5
|
* web: fix ending match mid-comp-throw and starting another quicklyDavid Vazgenovich Shakaryan2022-05-161-20/+17
|
* web: clean up properly when match is ended while comp is throwingDavid Vazgenovich Shakaryan2022-05-161-4/+22
|
* web: support ending ongoing match; ui/colour tweaksDavid Vazgenovich Shakaryan2022-05-161-0/+2
| | | | | | Ending a match while the computer is throwing currently results in data being written to the prompt because any scheduled C calls are not being cleared yet.
* web: use icons for settings; misc changesDavid Vazgenovich Shakaryan2022-05-131-2/+2
|
* web: add exit dialogue while match is activeDavid Vazgenovich Shakaryan2022-05-101-0/+4
|
* web: fix post-match undo when bot is throwing secondDavid Vazgenovich Shakaryan2022-05-101-1/+5
|
* web: allow selection of starting points and user to throw firstDavid Vazgenovich Shakaryan2022-05-091-14/+30
| | | | | | | This new option selection code is a bit messy for now. It requires the options and their order to be in sync between the prompt functions and the corresponding submit functions. There's also a bit too much repetition of generic code that's applicable to all options.
* web: fix memory bugsDavid Vazgenovich Shakaryan2022-05-091-1/+1
|
* web: abstract away most EM_ASM calls to dom fileDavid Vazgenovich Shakaryan2022-05-041-2/+2
|
* web: fix averages after undoDavid Vazgenovich Shakaryan2022-05-041-2/+2
|
* formattingDavid Vazgenovich Shakaryan2022-05-041-8/+8
|
* web: oi from cDavid Vazgenovich Shakaryan2022-05-031-4/+4
|
* web: more use of generic JS functionsDavid Vazgenovich Shakaryan2022-05-031-4/+4
|
* web: use generic JS functions for manipulating DOMDavid Vazgenovich Shakaryan2022-05-031-1/+1
|
* web: buffer and flush promptDavid Vazgenovich Shakaryan2022-05-031-4/+6
|
* web: more renamingDavid Vazgenovich Shakaryan2022-05-021-8/+8
|
* web: move some stuff aroundDavid Vazgenovich Shakaryan2022-05-021-0/+20
|
* web: buffer player info and flush on state changeDavid Vazgenovich Shakaryan2022-05-021-8/+11
| | | | | Constant calls from Wasm to JS to replace unchanged elements in the DOM is not very efficient.
* web: minor cleanup of prompt codeDavid Vazgenovich Shakaryan2022-05-021-10/+5
|
* web: move control logic to separate fileDavid Vazgenovich Shakaryan2022-05-021-0/+257