Oliver Akins
628ce29dad
Upgrade packages so I can use @const
2022-07-20 21:07:40 -06:00
Oliver Akins
599a4140a3
Add a basic movement phase screen with a board.
2022-07-19 22:54:49 -06:00
Oliver Akins
378e4315ba
Tweak the hexagon component to use the SVG background image
2022-07-19 22:54:13 -06:00
Oliver Akins
6f7477eecf
Move the onMount function call
2022-07-19 22:53:49 -06:00
Oliver Akins
4ab85924a9
Add a custom hexagon SVG
2022-07-19 22:53:20 -06:00
Oliver Akins
57135c4fad
Optimize the SVGs
2022-07-19 22:53:06 -06:00
Oliver Akins
ed715b14e4
Make it so that the game link gets added to the browser URL when joining a game
2022-03-15 23:25:56 -06:00
Oliver Akins
7d39b41b6d
Add functionality to the Copy Game Link button
2022-03-15 23:25:27 -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
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
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