Commit graph

172 commits

Author SHA1 Message Date
Oliver Akins
0ddf5d8a14
Add a game count to the server info response 2022-03-07 23:36:41 -06:00
Oliver Akins
f9f14422d8
Fix the exports in the common module 2022-03-07 23:36:09 -06:00
Oliver Akins
d1e37d8fec
Add ship design constants in the shared module 2022-03-07 23:35:56 -06:00
Oliver Akins
ad9ad389b6
Add the module-alias package to the dependencies 2022-03-07 22:23:28 -06:00
Oliver Akins
e434aea6ac
Add an import alias for shorter filepath imports 2022-03-07 22:21:30 -06:00
Oliver Akins
1f86b68e4c
Tweak log level 2022-03-07 22:16:36 -06:00
Oliver Akins
1b1812f9f5
Use a config property for CORS headers 2022-03-07 22:16:29 -06:00
Oliver Akins
9ce0db9327
Have the server info use the version constant 2022-03-07 22:15:45 -06:00
Oliver Akins
cbf7a98bb3
Add more properties for the config 2022-03-07 22:15:21 -06:00
Oliver Akins
ef9e47e401
Change where the common module is linked from 2022-03-07 18:02:54 -06:00
Oliver Akins
c2e66f9f73
Add some scripts 2022-03-07 18:02:37 -06:00
Oliver Akins
8cc748db2b
Add a constant version for use in the server info 2022-03-07 18:02:21 -06:00
Oliver Akins
6c8e323d35
Add ship design properties 2022-03-07 18:01:31 -06:00
Oliver Akins
70bf932964
Allow using sailboat, and remove comment that won't happen.
The comment is being removed because the colours/ships will not be getting fetched from the server because it doesn't make sense for the server to be handling that list since it's entirely client-side.
2022-03-07 18:01:10 -06:00
Oliver Akins
49da524260
Add a sailboat icon 2022-03-07 17:59:13 -06:00
Oliver Akins
0e453e5bee
Tweak raw event list 2022-03-07 17:58:46 -06:00
Oliver Akins
d747f2c005
Add docs for more events 2022-03-07 17:58:33 -06:00
Oliver Akins
1ccc3b6c33
Update types to be in-line with the events 2022-03-07 17:58:23 -06:00
Oliver Akins
c760b0f36d
Add a type that has genericized request data 2022-03-07 17:57:48 -06:00
Oliver Akins
4476f3e18c
Tweak the documentation for events 2022-03-07 00:51:30 -06:00
Oliver Akins
a8311a6834
Update the server info interface to be inline with my new format for interfaces 2022-03-07 00:49:59 -06:00
Oliver Akins
06cfea7564
Remove old event data interfaces 2022-03-07 00:49:16 -06:00
Oliver Akins
281686dfef
Add another possible spaceship idea 2022-03-07 00:48:38 -06:00
Oliver Akins
22ed95983e
Add steps relating to the weirdness that is the common module 2022-03-07 00:01:00 -06:00
Oliver Akins
e253a71b67
Add the cjs and ems module builds to the gitignore 2022-03-07 00:00:33 -06:00
Oliver Akins
263950b5f1
import format to be consistent 2022-03-07 00:00:10 -06:00
Oliver Akins
4e61f0283d
Add a makefile to build both ESM and CJS 2022-03-06 23:06:18 -06:00
Oliver Akins
dc3f1a8b1d
Change the common lib from es2020 to commonjs 2022-03-05 00:35:30 -06:00
Oliver-Akins
baf74969b4 Begin work on the Game class 2022-01-09 01:21:00 -06:00
Oliver-Akins
1edd3a042e Add a bare bones Player class, with socket and name data 2022-01-09 01:20:43 -06:00
Oliver-Akins
8f671d33cf Add a jsdoc to the reset method 2022-01-09 01:20:24 -06:00
Oliver-Akins
34eb19e340 Add the Deck object made for Phantom-Ink-Online 2022-01-09 01:02:57 -06:00
Oliver-Akins
ab4bad308a Adjust the TS config 2022-01-09 01:01:40 -06:00
Oliver-Akins
ca6279d2f6 Move the cards definition 2022-01-09 01:01:29 -06:00
Oliver-Akins
e246b16385 Add uuid as a dependency 2022-01-09 00:31:09 -06:00
Oliver-Akins
15da1158c7 Add a type for the fuel card representation 2022-01-09 00:30:47 -06:00
Oliver-Akins
ec37881de7 Make the board argument an array of any type. 2022-01-09 00:30:29 -06:00
Oliver-Akins
b109c0d082 Add the algorithm for helping with ship movement 2022-01-08 21:34:03 -06:00
Oliver-Akins
5c7afc7668 Make the cards only have 2 types instead of 3 2022-01-08 21:28:34 -06:00
Oliver-Akins
f2a0106c30 Add generic error catching to the event handling 2022-01-08 20:05:41 -07:00
Oliver-Akins
f25d1ef965 Remove unused file 2022-01-06 16:28:48 -07:00
Oliver-Akins
0dc55876cf Add players.update event documentation 2022-01-06 16:26:58 -07:00
Oliver-Akins
e6293ec30f Remove "I" prefix from interface names 2022-01-06 16:26:41 -07:00
Oliver-Akins
05978da3ea Rename game.* events to lobby.* 2022-01-06 16:26:21 -07:00
Oliver-Akins
c5449f1153 Update the type structure, and rename the "game.*" events to "lobby.*" 2022-01-06 16:25:38 -07:00
Oliver-Akins
3b5e643232 Add docs and types for the game.join event 2022-01-05 23:06:22 -07:00
Oliver-Akins
885c9c9e71 Update the request handler to make it conform to the docs 2022-01-05 01:26:48 -07:00
Oliver-Akins
054fa71b18 Add exports for the new types 2022-01-05 01:26:03 -07:00
Oliver-Akins
005b2c929f Make the ServerResponse use the Status enum as the type 2022-01-05 01:25:49 -07:00
Oliver-Akins
c93b903094 Add docs and types for the game join event 2022-01-05 01:25:21 -07:00