Commit graph

  • c68849fd1a
    Add docstrings to the IGameOption type Oliver Akins 2022-03-13 01:48:23 -06:00
  • 8eb4a3c48f
    Add descriptions to the option objects Oliver Akins 2022-03-13 01:45:32 -06:00
  • ee40351d1b
    Update option info modal to only display non-hidden options Oliver Akins 2022-03-13 01:45:06 -06:00
  • 6e9ff8b751
    Add the list of game options to the common module and make the multiplayer lobby begin listening to lobby info events + some style tweaks. Oliver Akins 2022-03-13 01:33:38 -06:00
  • 4b12a5a1a0
    Adjust stores available. - Remove default player objects - Remove Player interface - Make players store writable - Use PlayerData type from the common module - Add a gameCode store Oliver Akins 2022-03-12 23:16:49 -06:00
  • e3e5dbb7bf
    Begin adding socket communication for lobby creating/joining Oliver Akins 2022-03-12 23:15:19 -06:00
  • dbce447297
    Add the host boolean to the playerdata type Oliver Akins 2022-03-12 23:14:57 -06:00
  • dd5a1e8cb9
    Make the lobby more compatible with the colour/ship objects Oliver Akins 2022-03-12 23:14:42 -06:00
  • 6f38c7e2a3
    Add documentation for the game.state event Oliver Akins 2022-03-12 22:15:15 -06:00
  • df6b8a0875
    Add code bodies to the hostGame and joinGame methods Oliver Akins 2022-03-12 22:14:37 -06:00
  • 826b118548
    Tweak the order of events that's happening in the main site processor Oliver Akins 2022-03-12 22:14:04 -06:00
  • 794f0a62c6
    Update the gitignore so I don't have to ignore the web-vue folder manually Oliver Akins 2022-03-12 22:12:21 -06:00
  • 2ee16b2b8a
    Make it so that the events actually register properly Oliver Akins 2022-03-12 22:10:54 -06:00
  • 1e65515009
    Add a ping event for development purposes Oliver Akins 2022-03-12 22:09:03 -06:00
  • d6a4f5b0f3
    Tweak the docstring Oliver Akins 2022-03-12 22:07:07 -06:00
  • b3d157d1e6
    Add a method to get the JSON-compatible representation of the object Oliver Akins 2022-03-12 22:06:47 -06:00
  • d9a96f2061
    Load the ship style from data into the actual class Oliver Akins 2022-03-12 22:06:27 -06:00
  • 5a9dfbb864
    Return the player data in the object Oliver Akins 2022-03-12 22:04:19 -06:00
  • 5fb5f5d457
    Default the user to not being the host Oliver Akins 2022-03-08 13:28:28 -06:00
  • 330125efbe
    Add a check to make sure that the player's socket also isn't undefined Oliver Akins 2022-03-08 13:26:44 -06:00
  • f4396a1c42
    Add a cleanup method stub on the game manager Oliver Akins 2022-03-08 13:24:49 -06:00
  • 96d6e0b503
    Finish implementing the create lobby event Oliver Akins 2022-03-08 13:24:37 -06:00
  • 1b01ef971d
    Add documentation for the generic error event Oliver Akins 2022-03-08 13:23:59 -06:00
  • 02dece1af0
    Use the data constants from the common module Oliver Akins 2022-03-07 23:42:15 -06:00
  • a6935d9d96
    Begin working on the lobby creation event Oliver Akins 2022-03-07 23:41:48 -06:00
  • 3dfb8b877f
    Make the log object readonly Oliver Akins 2022-03-07 23:40:01 -06:00
  • eab458bb6b
    Add proper game code generation Oliver Akins 2022-03-07 23:39:22 -06:00
  • 6088128b7d
    Load the cards based on the config Oliver Akins 2022-03-07 23:37:20 -06:00
  • 6bbd8d68c0
    Add a game manager to the server Oliver Akins 2022-03-07 23:36:55 -06:00
  • 0ddf5d8a14
    Add a game count to the server info response Oliver Akins 2022-03-07 23:36:41 -06:00
  • f9f14422d8
    Fix the exports in the common module Oliver Akins 2022-03-07 23:36:09 -06:00
  • d1e37d8fec
    Add ship design constants in the shared module Oliver Akins 2022-03-07 23:35:56 -06:00
  • ad9ad389b6
    Add the module-alias package to the dependencies Oliver Akins 2022-03-07 22:23:28 -06:00
  • e434aea6ac
    Add an import alias for shorter filepath imports Oliver Akins 2022-03-07 22:21:30 -06:00
  • 1f86b68e4c
    Tweak log level Oliver Akins 2022-03-07 22:16:36 -06:00
  • 1b1812f9f5
    Use a config property for CORS headers Oliver Akins 2022-03-07 22:16:29 -06:00
  • 9ce0db9327
    Have the server info use the version constant Oliver Akins 2022-03-07 22:15:45 -06:00
  • cbf7a98bb3
    Add more properties for the config Oliver Akins 2022-03-07 22:15:21 -06:00
  • ef9e47e401
    Change where the common module is linked from Oliver Akins 2022-03-07 18:02:54 -06:00
  • c2e66f9f73
    Add some scripts Oliver Akins 2022-03-07 18:02:37 -06:00
  • 8cc748db2b
    Add a constant version for use in the server info Oliver Akins 2022-03-07 18:02:21 -06:00
  • 6c8e323d35
    Add ship design properties Oliver Akins 2022-03-07 18:01:31 -06:00
  • 70bf932964
    Allow using sailboat, and remove comment that won't happen. Oliver Akins 2022-03-07 18:01:10 -06:00
  • 49da524260
    Add a sailboat icon Oliver Akins 2022-03-07 17:59:13 -06:00
  • 0e453e5bee
    Tweak raw event list Oliver Akins 2022-03-07 17:58:46 -06:00
  • d747f2c005
    Add docs for more events Oliver Akins 2022-03-07 17:58:33 -06:00
  • 1ccc3b6c33
    Update types to be in-line with the events Oliver Akins 2022-03-07 17:58:23 -06:00
  • c760b0f36d
    Add a type that has genericized request data Oliver Akins 2022-03-07 17:57:48 -06:00
  • 4476f3e18c
    Tweak the documentation for events Oliver Akins 2022-03-07 00:51:30 -06:00
  • a8311a6834
    Update the server info interface to be inline with my new format for interfaces Oliver Akins 2022-03-07 00:49:59 -06:00
  • 06cfea7564
    Remove old event data interfaces Oliver Akins 2022-03-07 00:49:16 -06:00
  • 281686dfef
    Add another possible spaceship idea Oliver Akins 2022-03-07 00:48:38 -06:00
  • 22ed95983e
    Add steps relating to the weirdness that is the common module Oliver Akins 2022-03-07 00:01:00 -06:00
  • e253a71b67
    Add the cjs and ems module builds to the gitignore Oliver Akins 2022-03-07 00:00:33 -06:00
  • 263950b5f1
    import format to be consistent Oliver Akins 2022-03-07 00:00:10 -06:00
  • 4e61f0283d
    Add a makefile to build both ESM and CJS Oliver Akins 2022-03-06 23:06:18 -06:00
  • dc3f1a8b1d
    Change the common lib from es2020 to commonjs Oliver Akins 2022-03-05 00:35:30 -06:00
  • baf74969b4 Begin work on the Game class Oliver-Akins 2022-01-09 01:21:00 -06:00
  • 1edd3a042e Add a bare bones Player class, with socket and name data Oliver-Akins 2022-01-09 01:20:43 -06:00
  • 8f671d33cf Add a jsdoc to the reset method Oliver-Akins 2022-01-09 01:20:24 -06:00
  • 34eb19e340 Add the Deck object made for Phantom-Ink-Online Oliver-Akins 2022-01-09 01:02:57 -06:00
  • ab4bad308a Adjust the TS config Oliver-Akins 2022-01-09 01:01:40 -06:00
  • ca6279d2f6 Move the cards definition Oliver-Akins 2022-01-09 01:01:29 -06:00
  • e246b16385 Add uuid as a dependency Oliver-Akins 2022-01-09 00:31:09 -06:00
  • 15da1158c7 Add a type for the fuel card representation Oliver-Akins 2022-01-09 00:30:47 -06:00
  • ec37881de7 Make the board argument an array of any type. Oliver-Akins 2022-01-09 00:30:29 -06:00
  • b109c0d082 Add the algorithm for helping with ship movement Oliver-Akins 2022-01-08 21:34:03 -06:00
  • 5c7afc7668 Make the cards only have 2 types instead of 3 Oliver-Akins 2022-01-08 21:28:34 -06:00
  • f2a0106c30 Add generic error catching to the event handling Oliver-Akins 2022-01-08 20:05:41 -07:00
  • f25d1ef965 Remove unused file Oliver-Akins 2022-01-06 16:28:48 -07:00
  • 0dc55876cf Add players.update event documentation Oliver-Akins 2022-01-06 16:26:58 -07:00
  • e6293ec30f Remove "I" prefix from interface names Oliver-Akins 2022-01-06 16:26:41 -07:00
  • 05978da3ea Rename game.* events to lobby.* Oliver-Akins 2022-01-06 16:26:21 -07:00
  • c5449f1153 Update the type structure, and rename the "game.*" events to "lobby.*" Oliver-Akins 2022-01-06 16:25:38 -07:00
  • 3b5e643232 Add docs and types for the game.join event Oliver-Akins 2022-01-05 23:06:22 -07:00
  • 885c9c9e71 Update the request handler to make it conform to the docs Oliver-Akins 2022-01-05 01:26:48 -07:00
  • 054fa71b18 Add exports for the new types Oliver-Akins 2022-01-05 01:26:03 -07:00
  • 005b2c929f Make the ServerResponse use the Status enum as the type Oliver-Akins 2022-01-05 01:25:49 -07:00
  • c93b903094 Add docs and types for the game join event Oliver-Akins 2022-01-05 01:25:21 -07:00
  • 81d9f0a5bf Remove the IServerInfoRequest interface since it wasn't in use Oliver-Akins 2022-01-05 01:24:34 -07:00
  • 10a2d67907 Add a bit more detail about the Broadcasted events Oliver-Akins 2022-01-04 21:35:04 -07:00
  • b51f6edcc9 Connect to the websocket server when loading the site Oliver-Akins 2022-01-04 21:32:37 -07:00
  • a6b99c2afd Fix the event handler to actually return data Oliver-Akins 2022-01-04 21:31:10 -07:00
  • 9c5e0ab4d9 Add CORS policy on the websocket server Oliver-Akins 2022-01-04 21:17:07 -07:00
  • 76442fddce Add socket.io client to the website Oliver-Akins 2022-01-04 21:16:21 -07:00
  • e7b16143ec Ignore all TOML files, excluding templates Oliver-Akins 2022-01-04 20:32:42 -07:00
  • 8156085ef3 Begin on the docs for the code that resides in it's own folder Oliver-Akins 2022-01-04 20:32:03 -07:00
  • 642e1b2de6 Reorder export to make the heirarchy more clear Oliver-Akins 2022-01-04 20:31:14 -07:00
  • 442230deb6 Add types for the server.info websocket events Oliver-Akins 2022-01-04 20:30:46 -07:00
  • cb09d4a9df Create a super primitive websocket server Oliver-Akins 2022-01-04 20:30:11 -07:00
  • 7e5a4ffe86 Add config files for pnpm and tsc Oliver-Akins 2022-01-04 20:29:46 -07:00
  • 231f63c4bf Adjust the focus style for the buttons Oliver-Akins 2022-01-04 12:31:24 -07:00
  • e7533f60aa Rename the ColourChoice modal to ShipDesigner Oliver-Akins 2022-01-04 12:31:01 -07:00
  • 174add9e49 Adjust modal title Oliver-Akins 2022-01-04 12:29:14 -07:00
  • eb9cbe48b6 Tweak the styling of the inner components to be max width Oliver-Akins 2022-01-04 12:29:01 -07:00
  • 81ea8e5f9d Style the select elements Oliver-Akins 2022-01-04 12:28:39 -07:00
  • 5a8a8425a8 Add some steps on how to start a dev environment Oliver-Akins 2022-01-03 22:02:37 -07:00
  • 3d3104ef69 Make the common package a peerDependency Oliver-Akins 2022-01-03 21:41:45 -07:00
  • 20ea2b9fa0 Make the common package actually work with Vite Oliver-Akins 2022-01-03 21:41:09 -07:00
  • c5878a8334 Begin implementing game joining Oliver-Akins 2022-01-03 18:51:11 -07:00