Commit Graph

92 Commits

Author SHA1 Message Date
Andrio Celos
5dfd7b6a44 Rework deck editor page and allow drag/drop of decks and cards 2023-08-31 12:26:03 +10:00
Andrio Celos
252b326262 Add a sort button to the deck editor 2023-08-30 19:21:30 +10:00
Andrio Celos
ede0ebd3c9 Fix a renamed deck not being updated in the deck list 2023-08-30 15:08:58 +10:00
Andrio Celos
7e7f4e7015 Fix cards remaining disabled after exiting test and starting another 2023-08-30 15:06:13 +10:00
Andrio Celos
a839ac99b0 Improve card rotation
Previously, all cards would rotate around the centre of the grid. Now they rotate as they do in the original game. This ensures that the mouse pointer is never outside the card's ink bounds, which was an issue with Splatana Wiper etc.
2023-08-30 14:06:12 +10:00
Andrio Celos
06f929b547 Fix the win counter when rewinding from the results screen in replays 2023-08-18 21:41:40 +10:00
Andrio Celos
d366d955af Add upcoming cards
Upcoming cards are identified by a negative number. The pre-release number will be preserved as an alt number after release to avoid breaking saved deck and replay data that references it.
2023-08-18 21:36:19 +10:00
Andrio Celos
235d3ac25a Show win counts in the lobby too 2023-08-13 22:49:27 +10:00
Andrio Celos
dcb669490c Multiple-game sets
This allows any number of games to be played in a room.
Each player bar will show the number of games that player has won. If a goal win count is selected in More Options, the set will end when someone reaches that many wins. Otherwise, players can start a new game after the game ends.
2023-08-13 22:20:23 +10:00
Andrio Celos
91044db4c1 Visual enhancements
Includes making the background better.
2023-08-13 16:45:12 +10:00
Andrio Celos
9cd4538f67 Fix error and inconsistent UI when the opponent runs out of time 2023-08-12 18:46:55 +10:00
Andrio Celos
86ca6feb66 Refine game page hints 2023-07-13 10:31:34 +10:00
Andrio Celos
812474f38a Don't close the import dialog if an error occurs 2023-07-12 23:04:07 +10:00
Andrio Celos
50529a4eea Add ink placement and special space animations 2023-07-12 23:03:47 +10:00
Andrio Celos
e417b148c6 Add import from screenshot and import/export multiple decks at once 2023-06-28 15:55:51 +10:00
Andrio Celos
6bab8f8ed6 Button overhaul
Replace all hidden <input> checkboxes and radio buttons with <button> elements. This simplifies the DOM, allows for hints when clicking a disabled button and full control over checked states.
2023-06-24 23:52:28 +10:00
Andrio Celos
4910fa7a88 Fix script errors and back navigation not closing the help dialog 2023-06-23 10:10:04 +10:00
Andrio Celos
e46de3b775 Add more hints to the game page 2023-06-23 10:04:24 +10:00
Andrio Celos
d5dde76a34 Add colour testing controls 2023-06-21 22:38:04 +10:00
Andrio Celos
d042d0e79b Minor fixes and refactoring 2023-06-21 22:35:01 +10:00
Andrio Celos
7a24364c7a Hide the time limit in replays 2023-06-16 23:31:12 +10:00
Andrio Celos
3120e88706 Add a loading message in case config fails to load 2023-06-16 09:52:37 +10:00
Andrio Celos
88789518e6 Close the WebSocket when leaving a game 2023-06-15 23:03:45 +10:00
Andrio Celos
8a9511889b Add confirmation on beforeunload during an ongoing game that you're in 2023-06-15 22:44:52 +10:00
Andrio Celos
0906969365 Implement turn time limits 2023-06-15 15:27:41 +10:00
Andrio Celos
b2f3d8c16f Show projected turf count while choosing a placement 2023-03-14 09:50:03 +11:00
Andrio Celos
878d4e45cd Show a player's hand in replays 2023-03-11 01:26:50 +11:00
Andrio Celos
e735de5bfa Add ability to spectate 2023-03-07 14:15:55 +11:00
Andrio Celos
206b1f988f Improve the communication error message 2023-02-27 14:06:49 +11:00
Andrio Celos
e11497fdfc Fix touch controls on Android Chrome 2023-02-26 12:41:39 +11:00
Andrio Celos
bff38964a7 Add a test button to the deck list page
This allows testing the starter deck.
2023-02-23 11:20:42 +11:00
Andrio Celos
d2712f8e2c Fix closing the help dialog not changing the URL 2023-02-23 11:10:06 +11:00
Andrio Celos
14b1b1a623 Add controls help page 2023-02-23 11:03:37 +11:00
Andrio Celos
22bcc42858 Enable rotating with the right mouse button 2023-02-22 23:59:58 +11:00
Andrio Celos
7cc60b49d1 #7 Clear filter when opening deck editor/test page. Resolves #7. 2023-02-22 15:07:52 +11:00
Andrio Celos
78bd6b1250 #7 Add a filter box to the deck editor and test UI 2023-02-22 15:02:30 +11:00
Andrio Celos
c082077660 Fix CheckButton causing 'cannot read properties of undefined' on Edge 2023-01-10 20:05:17 +11:00
Andrio Celos
c809e19e06 Passing shouldn't count toward 'special points' stats 2022-12-29 20:20:02 +11:00
Andrio Celos
496ac59af4 Fix incorrect start space during deck editor test 2022-12-29 19:28:31 +11:00
Andrio Celos
708ad27356 #1 Implement deck editor test mode. Resolves #1. 2022-12-29 19:20:24 +11:00
Andrio Celos
673eb18aa9 Track inactive games and add a command to lock the server for updates
A game that has had no activity for 5 minutes is considered inactive. There can be a limited number of inactive games before they are deleted. A console command is added that will wait for all games to become inactive before stopping the server, and prevent starting new games.
2022-12-28 00:03:10 +11:00
Andrio Celos
7a7d03d165 Fix mobile controls with flipped board 2022-12-28 00:00:29 +11:00
Andrio Celos
f1fa70ab14 Store 'UI base colour is special colour' flags in replays 2022-12-26 19:15:38 +11:00
Andrio Celos
9dd44b8351 Flip board view for players 2 and 4 2022-12-26 19:13:27 +11:00
Andrio Celos
94739183ac Tell the client where the starting spaces are 2022-12-26 19:13:00 +11:00
Andrio Celos
2daac8b1bc Allow out-of-bounds spaces to be highlighted 2022-12-26 14:49:58 +11:00
Andrio Celos
beec071387 Fix game controls not initialising correctly 2022-12-26 14:49:43 +11:00
Andrio Celos
0cdfc3bbbd #5 Implement replay URLs 2022-12-26 14:36:04 +11:00
Andrio Celos
42956e9e9e Allow rewinding replays 2022-12-26 13:27:25 +11:00
Andrio Celos
bb75c238a8 #5 Basic replay implementation 2022-12-25 12:49:30 +11:00