Commit graph

100 commits

Author SHA1 Message Date
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
Oliver-Akins
81d9f0a5bf Remove the IServerInfoRequest interface since it wasn't in use 2022-01-05 01:24:34 -07:00
Oliver-Akins
10a2d67907 Add a bit more detail about the Broadcasted events 2022-01-04 21:35:04 -07:00
Oliver-Akins
b51f6edcc9 Connect to the websocket server when loading the site 2022-01-04 21:32:37 -07:00
Oliver-Akins
a6b99c2afd Fix the event handler to actually return data 2022-01-04 21:31:10 -07:00
Oliver-Akins
9c5e0ab4d9 Add CORS policy on the websocket server 2022-01-04 21:17:07 -07:00
Oliver-Akins
76442fddce Add socket.io client to the website 2022-01-04 21:16:21 -07:00
Oliver-Akins
e7b16143ec Ignore all TOML files, excluding templates 2022-01-04 20:32:42 -07:00
Oliver-Akins
8156085ef3 Begin on the docs for the code that resides in it's own folder 2022-01-04 20:32:03 -07:00
Oliver-Akins
642e1b2de6 Reorder export to make the heirarchy more clear 2022-01-04 20:31:14 -07:00
Oliver-Akins
442230deb6 Add types for the server.info websocket events 2022-01-04 20:30:46 -07:00
Oliver-Akins
cb09d4a9df Create a super primitive websocket server 2022-01-04 20:30:11 -07:00
Oliver-Akins
7e5a4ffe86 Add config files for pnpm and tsc 2022-01-04 20:29:46 -07:00
Oliver-Akins
231f63c4bf Adjust the focus style for the buttons 2022-01-04 12:31:24 -07:00
Oliver-Akins
e7533f60aa Rename the ColourChoice modal to ShipDesigner 2022-01-04 12:31:01 -07:00
Oliver-Akins
174add9e49 Adjust modal title 2022-01-04 12:29:14 -07:00
Oliver-Akins
eb9cbe48b6 Tweak the styling of the inner components to be max width 2022-01-04 12:29:01 -07:00
Oliver-Akins
81ea8e5f9d Style the select elements 2022-01-04 12:28:39 -07:00
Oliver-Akins
5a8a8425a8 Add some steps on how to start a dev environment 2022-01-03 22:02:37 -07:00
Oliver-Akins
3d3104ef69 Make the common package a peerDependency 2022-01-03 21:41:45 -07:00
Oliver-Akins
20ea2b9fa0 Make the common package actually work with Vite 2022-01-03 21:41:09 -07:00
Oliver-Akins
c5878a8334 Begin implementing game joining 2022-01-03 18:51:11 -07:00
Oliver-Akins
7db70bc4ec Rename the event identifier in the type documentation 2022-01-03 18:50:35 -07:00