Commit graph

62 commits

Author SHA1 Message Date
3ac90e59b0 Move websocket handler into dedicated function 2020-05-22 22:50:28 -04:00
f04822fcf0 only one client per page 2020-05-18 22:12:27 -04:00
0fab0e8c56 Create Serde structs for messages 2020-05-18 22:12:11 -04:00
e5c68b0c37 Fix prediction from null state to permit local prediction before server starts sending input. 2020-05-18 19:44:19 -04:00
e9c73ae998 Implement connection to websocket server 2020-05-17 23:47:50 -04:00
6491588223 Add proper "helo" message to protocol so client can be sure server is ready to receive input. 2020-05-17 23:39:28 -04:00
9df57e4aa9 Tidy typings for client server-connection dependency injection 2020-05-17 23:17:39 -04:00
9798687693 debug-log received websocket messages 2020-05-17 00:43:56 -04:00
ca5bf65e9d Change message type enum to serde-friendly strings; remove unused Ping message 2020-05-12 23:00:06 -04:00
a22ca95d3d Clarify error when unable to parse listen address 2020-05-11 08:59:23 -04:00
d031061c41 Create stub server in Rust using Warp to handle websockets. 2020-05-10 20:06:20 -04:00
5c9552fe49 lowercase folders for Rust convention compatibility 2020-05-10 18:47:03 -04:00
c620e4c982 Reset state on client connection instead of as a special manipulation of the local server. 2020-05-09 22:08:22 -04:00
7c06ab473d Break up client & server message handling logic into their own functions for better readability. 2020-05-09 22:07:42 -04:00
6427361d7b Fix typing for server in index.ts 2020-05-09 19:25:50 -04:00
44872c3d0e avoid accidental js spamming the project 2020-05-09 19:25:39 -04:00
c9f3a96662 tidy+update packages 2020-05-09 17:55:46 -04:00
a8b5dea37a Share one server instance between two client instances! 2020-05-02 21:22:57 -04:00
c8589828c7 Replace the stub loopback server with a local, but multi-client server. 2020-05-02 21:21:56 -04:00
633611056e create "catchTalkback" callbag operator 2020-05-02 21:21:56 -04:00
70946d450a vendor some callbag utilities for better typings 2020-05-02 21:21:56 -04:00
0726ed15f7 Add more callbag dependencies 2020-05-02 21:21:56 -04:00
258c179887 split generics for local/full input types for now
LoopbackServer still makes the assumption that GlobalInput = LocalInput[]
2020-05-01 22:51:21 -04:00
743905cad4 Add notion of multiple connected players to lockstep protocol 2020-05-01 22:21:37 -04:00
39018635cd fill out more planned message types 2020-05-01 22:21:37 -04:00
04f947e7a4 HMR stub 2020-04-04 21:48:50 -04:00
264db31ac7 Refactor typings to enforce cloning hygiene, at expense of intrusive Component type 2020-04-04 21:09:49 -04:00
33eb28e338 use callbag-pipe 2020-04-03 18:35:23 -04:00
48940e1073 Plan update 2020-03-26 00:31:27 -04:00
07071e6ca6 Hacky fix to state cloning 2020-03-26 00:31:27 -04:00
281514e7b7 draw backdrop 2020-03-26 00:31:27 -04:00
3a2bc5654e Hacky key control 2020-03-26 00:31:26 -04:00
e3ddadadda Add babel 2020-03-24 23:48:38 -04:00
4212952abc Remove decorators in favor of declarative initialization 2020-03-24 23:47:04 -04:00
a1900a4daa update package.json 2020-03-12 00:12:34 -04:00
1ed760781b update plan 2020-02-20 23:55:23 -05:00
4667c4b567 Update list of message types from thinking 2020-02-20 23:55:16 -05:00
01349724a9 stub "loopback" server 2020-02-16 00:42:58 -05:00
2bff1f6cdf nix dead code 2020-02-16 00:13:28 -05:00
bf26e85b49 Render stub static scene 2020-02-16 00:01:30 -05:00
d321098555 Create stub concrete lockstep engine 2020-02-16 00:00:54 -05:00
57c2364796 rejigger drawing layer storage 2020-02-15 23:47:41 -05:00
390e6744b9 copy constructors for states 2020-02-15 23:17:13 -05:00
5ca9397621 try new Input style 2020-02-15 23:15:59 -05:00
c77499a577 Add renderFrames callbag 2020-02-15 21:10:19 -05:00
5e29841717 Sketch out first pass of lockstep client code 2020-02-15 19:52:00 -05:00
33ddb75b14 add Callbag typings 2020-02-15 17:56:38 -05:00
200d0fdd70 Add Typescript Import Sorter config 2020-02-15 17:56:19 -05:00
14ccebc703 Add stub demo-playback code 2020-02-15 14:12:53 -05:00
21886c00a8 Remove TickType idea 2020-02-15 13:55:33 -05:00