Commit graph

28 commits

Author SHA1 Message Date
Eric House
c8f22f5fb1 register with mqtt host 2021-03-19 14:27:04 -07:00
Eric House
033290bd69 cleanup, esp around js callbacks 2021-03-19 14:27:04 -07:00
Eric House
41cd3d8f39 open game to receive message 2021-03-19 14:27:04 -07:00
Eric House
43874a6a5d new game works
Only two options: local game with one robot, or networked needing to
invite someone.
2021-03-19 14:27:04 -07:00
Eric House
3a0d0befc7 toward allowing multiple games 2021-03-19 14:27:04 -07:00
Eric House
5abf13c4a2 new files to make EM_JS stuff sharable 2021-03-19 14:27:04 -07:00
Eric House
88e44d45ff fix so keyboard input works
Emscripen was hogging all keyboard events even when canvas didn't have
focus. There's an arcane way to fix that in js.
2021-03-19 14:27:04 -07:00
Eric House
74109ce172 fix to send after connect 2021-03-19 14:27:04 -07:00
Eric House
eec86e099d make alert and confirm non-blocking
Using a custom div and callbacks. TODO: make it floating so it's more
dialog-like. But that's just css at this point.
2021-03-19 14:27:04 -07:00
Eric House
76139c43f6 move most of my js into separate file 2021-03-19 14:27:04 -07:00
Eric House
fddac79dd8 rebase, and handle changed draw api 2021-03-19 14:27:04 -07:00
Eric House
96829b5478 fix so release build builds
without MEMDEBUG defined that is
2021-03-19 14:27:04 -07:00
Eric House
1813552b5e use native js for idle (timers next) 2021-03-19 14:26:18 -07:00
Eric House
a1d6f25fc6 tweak makefile 2021-03-19 14:26:18 -07:00
Eric House
d586ccf67f work with WASM=1 and shell template to pass argv from url 2021-03-19 14:26:18 -07:00
Eric House
e3814bf0eb snapshot: sends message to inviter 2021-03-19 14:26:18 -07:00
Eric House
40468d8a1b load existing game on launch 2021-03-19 14:26:18 -07:00
Eric House
3cb1183e96 Makefile tweaks 2021-03-19 14:26:18 -07:00
Eric House
cd614004ae two-robot game works 2021-03-19 14:26:18 -07:00
Eric House
ec9570ab81 improve drawCell() 2021-03-19 14:26:18 -07:00
Eric House
66a422e2a2 cleanup so building .html works again 2021-03-19 14:26:18 -07:00
Eric House
d620461574 fix so all compile 2021-03-19 14:26:18 -07:00
Eric House
ed274d9835 run naked, and add buttons for hints etc 2021-03-19 14:26:18 -07:00
Eric House
c2b56c8d32 modify to run "naked" 2021-03-19 14:26:18 -07:00
Eric House
de98a70b9f snapshot
Staring to hack stuff: I need an alert mechanism already to confirm a
move.
2021-03-19 14:26:18 -07:00
Eric House
0b34018d98 draw first text 2021-03-19 14:26:18 -07:00
Eric House
633896292a snapshot: drawing empty board 2021-03-19 14:26:18 -07:00
Eric House
947b28f3b3 snapshot: does something 2021-03-19 14:26:18 -07:00