Commit graph

148 commits

Author SHA1 Message Date
Oliver Akins
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. 2022-03-13 01:33:38 -06:00
Oliver Akins
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
2022-03-12 23:16:49 -06:00
Oliver Akins
e3e5dbb7bf
Begin adding socket communication for lobby creating/joining 2022-03-12 23:15:19 -06:00
Oliver Akins
dbce447297
Add the host boolean to the playerdata type 2022-03-12 23:14:57 -06:00
Oliver Akins
dd5a1e8cb9
Make the lobby more compatible with the colour/ship objects 2022-03-12 23:14:42 -06:00
Oliver Akins
6f38c7e2a3
Add documentation for the game.state event 2022-03-12 22:15:15 -06:00
Oliver Akins
df6b8a0875
Add code bodies to the hostGame and joinGame methods 2022-03-12 22:14:37 -06:00
Oliver Akins
826b118548
Tweak the order of events that's happening in the main site processor 2022-03-12 22:14:04 -06:00
Oliver Akins
794f0a62c6
Update the gitignore so I don't have to ignore the web-vue folder manually 2022-03-12 22:12:21 -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
5fb5f5d457
Default the user to not being the host 2022-03-08 13:28:28 -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
1b01ef971d
Add documentation for the generic error event 2022-03-08 13:23:59 -06:00
Oliver Akins
02dece1af0
Use the data constants from the common module 2022-03-07 23:42:15 -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
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