Commit graph

221 commits

Author SHA1 Message Date
Oliver Akins
05a5bfc3af
Don't echo the mkdir command 2022-03-15 23:10:00 -06:00
Oliver Akins
a7a7560201
Add watch rules to the makefile 2022-03-15 23:09:39 -06:00
Oliver Akins
b0e2a9e6d4
Instead of using onDestroy, return a function from onMount 2022-03-15 22:38:09 -06:00
Oliver Akins
018ae4fe06
Add a no-op button to copy the game link to the user's clipboard 2022-03-15 01:41:05 -06:00
Oliver Akins
3f96b97194
Add some sanity comments and a full lobby check 2022-03-15 01:37:59 -06:00
Oliver Akins
c340755ba2
Make the JoinLobby modal nicer 2022-03-15 01:34:09 -06:00
Oliver Akins
bcc0664342
Move lobby creation/hosting into it's own modal 2022-03-15 01:07:02 -06:00
Oliver Akins
2dd456897f
Move the error style to be global 2022-03-15 00:21:51 -06:00
Oliver Akins
31cd9a1558
Default the store values so we don't get undefined appearing in the text entries 2022-03-15 00:04:43 -06:00
Oliver Akins
ffc759e267
Tweak import statement 2022-03-13 20:14:31 -06:00
Oliver Akins
9708be3f1e
Tweak imports 2022-03-13 20:14:07 -06:00
Oliver Akins
1b9f3d780e
Add code to handle the lobby info responses 2022-03-13 18:32:15 -06:00
Oliver Akins
2c4c7c38b0
Add code to handle the join lobby response 2022-03-13 18:31:58 -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
5da30d572f
Add a Forbidden status 2022-03-13 18:30:46 -06:00
Oliver Akins
af37e3b5f5
Make the colour appear correctly even when it isn't our slot 2022-03-13 18:30:33 -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
c68849fd1a
Add docstrings to the IGameOption type 2022-03-13 01:48:23 -06:00
Oliver Akins
8eb4a3c48f
Add descriptions to the option objects 2022-03-13 01:45:32 -06:00
Oliver Akins
ee40351d1b
Update option info modal to only display non-hidden options 2022-03-13 01:45:06 -06:00
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