Commit graph

42 commits

Author SHA1 Message Date
Oliver Akins
b883c00247
Remove message properties that were causing problems 2022-07-20 21:23:38 -06:00
Oliver Akins
13711e5986
Remove use of the log since it doesn't exist yet. 2022-07-20 21:21:54 -06:00
Oliver Akins
abba594522
Add a host flag 2022-06-23 13:46:45 -06:00
Oliver Akins
be25b95789
Add data validation to the config 2022-06-23 11:40:09 -06:00
Oliver Akins
4506b97101
Prevent cards that aren't in the unknown from being discarded 2022-06-23 11:39:39 -06:00
Oliver Akins
3f96b97194
Add some sanity comments and a full lobby check 2022-03-15 01:37:59 -06:00
Oliver Akins
be3a1c97c9
Allow possibly not finding the game object in the DB 2022-03-13 18:31:44 -06:00
Oliver Akins
c5eb73ef4b
Add the game's status to the object 2022-03-13 18:31:25 -06:00
Oliver Akins
4c9d0b272c
Begin listening for lobby join events 2022-03-13 18:31:14 -06:00
Oliver Akins
88b07fdf1d
Implement a primitive join lobby method 2022-03-13 18:31:02 -06:00
Oliver Akins
4821f7a971
Indicate the user as the host when they create the lobby 2022-03-13 01:58:03 -06:00
Oliver Akins
2ee16b2b8a
Make it so that the events actually register properly 2022-03-12 22:10:54 -06:00
Oliver Akins
1e65515009
Add a ping event for development purposes 2022-03-12 22:09:03 -06:00
Oliver Akins
d6a4f5b0f3
Tweak the docstring 2022-03-12 22:07:07 -06:00
Oliver Akins
b3d157d1e6
Add a method to get the JSON-compatible representation of the object 2022-03-12 22:06:47 -06:00
Oliver Akins
d9a96f2061
Load the ship style from data into the actual class 2022-03-12 22:06:27 -06:00
Oliver Akins
5a9dfbb864
Return the player data in the object 2022-03-12 22:04:19 -06:00
Oliver Akins
330125efbe
Add a check to make sure that the player's socket also isn't undefined 2022-03-08 13:26:44 -06:00
Oliver Akins
f4396a1c42
Add a cleanup method stub on the game manager 2022-03-08 13:24:49 -06:00
Oliver Akins
96d6e0b503
Finish implementing the create lobby event 2022-03-08 13:24:37 -06:00
Oliver Akins
a6935d9d96
Begin working on the lobby creation event 2022-03-07 23:41:48 -06:00
Oliver Akins
3dfb8b877f
Make the log object readonly 2022-03-07 23:40:01 -06:00
Oliver Akins
eab458bb6b
Add proper game code generation 2022-03-07 23:39:22 -06:00
Oliver Akins
6088128b7d
Load the cards based on the config 2022-03-07 23:37:20 -06:00
Oliver Akins
6bbd8d68c0
Add a game manager to the server 2022-03-07 23:36:55 -06:00
Oliver Akins
0ddf5d8a14
Add a game count to the server info response 2022-03-07 23:36:41 -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
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
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
f2a0106c30 Add generic error catching to the event handling 2022-01-08 20:05:41 -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
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
cb09d4a9df Create a super primitive websocket server 2022-01-04 20:30:11 -07:00