Commit graph

69 commits

Author SHA1 Message Date
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
af37e3b5f5
Make the colour appear correctly even when it isn't our slot 2022-03-13 18:30:33 -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
dd5a1e8cb9
Make the lobby more compatible with the colour/ship objects 2022-03-12 23:14:42 -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
5fb5f5d457
Default the user to not being the host 2022-03-08 13:28:28 -06:00
Oliver Akins
02dece1af0
Use the data constants from the common module 2022-03-07 23:42:15 -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
281686dfef
Add another possible spaceship idea 2022-03-07 00:48:38 -06:00
Oliver Akins
263950b5f1
import format to be consistent 2022-03-07 00:00:10 -06:00
Oliver-Akins
b51f6edcc9 Connect to the websocket server when loading the site 2022-01-04 21:32:37 -07:00
Oliver-Akins
76442fddce Add socket.io client to the website 2022-01-04 21:16:21 -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
3d3104ef69 Make the common package a peerDependency 2022-01-03 21:41:45 -07:00
Oliver-Akins
c5878a8334 Begin implementing game joining 2022-01-03 18:51:11 -07:00
Oliver-Akins
9d11b9eb6f Begin implementing an error when the request fails 2022-01-03 18:42:47 -07:00
Oliver-Akins
9f77f255a3 Remove type file 2022-01-03 18:25:33 -07:00
Oliver-Akins
8ea5b506f4 Add common module as a dependency 2022-01-03 18:25:22 -07:00
Oliver-Akins
0edf74ab7f Add the ship type to the player data 2021-12-25 23:57:26 -07:00
Oliver-Akins
c282ec0378 Add a background to each of the options 2021-12-25 23:56:54 -07:00
Oliver-Akins
1e8ae8e99f Remove the taken property from Colour 2021-12-25 23:56:13 -07:00
Oliver-Akins
7de3f614da Add a Hexagon component 2021-12-25 23:55:54 -07:00
Oliver-Akins
72db6ae4d0 Update the ColourChoice to be better UI & UX 2021-12-25 23:55:44 -07:00
Oliver-Akins
19a4d909f8 Add a component that allows for easier ship svg usage 2021-12-25 23:55:17 -07:00
Oliver-Akins
f3af5a77d7 Add the ColourChoice modal to the lobby 2021-12-24 03:22:38 -07:00
Oliver-Akins
36487500e1 Add a type for the colour object 2021-12-24 03:22:15 -07:00
Oliver-Akins
2530e90774 Make player component use the isHost store 2021-12-24 03:21:59 -07:00
Oliver-Akins
6dc0ed2ab5 Add type annocations, change hostName to isHost, add players list and type 2021-12-24 03:21:31 -07:00
Oliver-Akins
0fb2d986a9 Change way the images are marked up, and correct some alt text 2021-12-24 03:20:32 -07:00
Oliver-Akins
0925b6d59f Begin work on a modal for changing the player's colour 2021-12-24 03:20:00 -07:00
Oliver-Akins
7b4826dfbc Make the button components use the click listen instead of the handler 2021-12-24 03:19:33 -07:00
Oliver-Akins
4bdbe8f231 Update the button to not take a handler function and just bubble the click event 2021-12-24 03:18:25 -07:00
Oliver-Akins
ba093cdfa7 Add the space shuttle SVG that I'm going to use 2021-12-24 03:17:59 -07:00
Oliver-Akins
c305551175 Use an each block for option populating 2021-12-22 19:39:21 -07:00
Oliver-Akins
8e568d355c Update option descriptions and add Fate option 2021-12-22 19:31:35 -07:00
Oliver-Akins
8683f50bd4 Adjust the code format and add the ability to disable the checkbox 2021-12-22 19:31:05 -07:00