Commit Graph

46 Commits

Author SHA1 Message Date
Mitchell McCaffrey
e64d715498 Removed debug logs 2020-10-24 00:15:15 +11:00
Mitchell McCaffrey
f8d7f7f19f Updated update map 2020-10-24 00:01:46 +11:00
Mitchell McCaffrey
b70bcdabd2 Updated update map 2020-10-23 23:45:39 +11:00
Mitchell McCaffrey
97c436b5e4 Removed id from map update data 2020-10-23 23:35:43 +11:00
Mitchell McCaffrey
b91d0e4157 more logging 2020-10-23 23:18:57 +11:00
Mitchell McCaffrey
2e5d52b6ac Added more logging to getMapFromDB to test private browsing error 2020-10-23 22:39:01 +11:00
Mitchell McCaffrey
086a7beff3 Added more database sanity checks 2020-10-23 22:16:18 +11:00
Mitchell McCaffrey
6c8833feae Added check that database is available before joining a game
Fixes issue with joining a game already in progress on a browser with indexedDB disabled
2020-10-23 21:11:25 +11:00
Mitchell McCaffrey
3ce6203745 Added check for database in getMapFromDB 2020-10-23 20:50:05 +11:00
Mitchell McCaffrey
539f216cfe Added grid scale and offset to maps and refactored into grid object 2020-10-02 15:19:10 +10:00
Mitchell McCaffrey
f28d1b6690 Added search and groups to token select, refactored map search and group 2020-10-01 22:32:21 +10:00
Mitchell McCaffrey
3215efffa3 Added map group support 2020-10-01 15:05:30 +10:00
Mitchell McCaffrey
99b2bd0240 Added multi map remove to map data context 2020-09-30 15:44:48 +10:00
Mitchell McCaffrey
b7a89a4a4a Refactored keyboard shortcuts to be global and not dependent on map interaction 2020-09-30 13:26:39 +10:00
Mitchell McCaffrey
e92c561a3a Added automatic cache invalidation for maps and tokens 2020-09-11 16:56:40 +10:00
Mitchell McCaffrey
d0002431c5 Added fake storage shim for local and session storage 2020-09-08 12:35:31 +10:00
Mitchell McCaffrey
b4e52ebb23 Fixed 2 bugs with map loading and sending
When a map was sent the receiver didn't save the resolutions tihs meant that if the original map owner left or wasn't the party leader the map would be blank when new users joined. Also if a map sender left when sending a map and rejoined their version of the map would be overriden by a corrupted version.
2020-08-28 17:06:13 +10:00
Mitchell McCaffrey
602631f9b1 Added a saved settings system that uses localstorage and versioning 2020-08-07 17:15:16 +10:00
Mitchell McCaffrey
76cad29f2b Added snap to grid option to map settings 2020-08-07 12:28:50 +10:00
Mitchell McCaffrey
8f9027c69f Fixed bug with map setting changes not being synced over to players 2020-07-17 19:22:12 +10:00
Mitchell McCaffrey
a81031e84e Moved map asset loading progress to use refs to stop re-renders
Moved map loading overlay to use animation frames for a smooth progress bar
2020-06-28 13:37:04 +10:00
Mitchell McCaffrey
bf022e2686 Added progress indicator to map data loading 2020-06-28 12:28:58 +10:00
Mitchell McCaffrey
9a4d047cd5 Moved back to drag events for map and fog drawing
Moved to an event driven model for dragging
2020-06-24 09:27:20 +10:00
Mitchell McCaffrey
235dad9dbf Added await to token and map loading 2020-06-07 11:40:14 +10:00
Mitchell McCaffrey
73aec132e7 Fixed bug with large map sizes 2020-06-07 11:19:32 +10:00
Mitchell McCaffrey
faddf03ecf Added show map grid option to maps 2020-05-31 16:25:05 +10:00
Mitchell McCaffrey
7f0b4e32af Separated dice loading and dice instance creation and added loading spinner for dice 2020-05-27 14:47:51 +10:00
Mitchell McCaffrey
33d7d972be Added map loading provider to fix bugs with multiple asset loading 2020-05-25 15:34:22 +10:00
Mitchell McCaffrey
b0c1dcf9dd Changed map drag position to use a ref value to avoid re-renders
Added a useMapBrush helper
2020-05-25 15:07:12 +10:00
Mitchell McCaffrey
8932ceb1e3 Make map translation smoother by removing it from the state 2020-05-25 14:09:45 +10:00
Mitchell McCaffrey
b3b84d889b Added new members to state db upgrade removed duplicated field from token state
Matched token default id with map default id as map can't be changed
2020-05-24 15:18:30 +10:00
Mitchell McCaffrey
a8bd5ab672 Added is vehicle checkbox and vehicle type tokens 2020-05-22 20:43:07 +10:00
Mitchell McCaffrey
5b70f69fb7 Moved map and map tokens to Konva 2020-05-21 16:46:50 +10:00
Mitchell McCaffrey
3f959fd3a3 Added unknown token for when a token in use is deleted 2020-05-20 11:35:14 +10:00
Mitchell McCaffrey
887bce81d1 Refactored peer sync logic to use the data providers 2020-05-19 22:15:08 +10:00
Mitchell McCaffrey
0f5f90faa6 Added custom token loading and replication 2020-05-19 19:03:36 +10:00
Mitchell McCaffrey
7b98370e4c Added token edit modal, refactored map and token data providers
Refactored image drop code into reusable component as well
2020-05-19 16:21:01 +10:00
Mitchell McCaffrey
17c82861f6 Added database upgrade for blob map files and refactored back to database file 2020-05-03 19:52:01 +10:00
Mitchell McCaffrey
60059ff447 Added database faker for when indexedb is disabled
Database is now in a context with a status
New FAQ for indexdb errors
2020-05-03 18:22:09 +10:00
Mitchell McCaffrey
9975f564fa Added map context to scale simplification by map scale
Added distance to quadratic functions to vector
2020-04-29 18:21:44 +10:00
Mitchell McCaffrey
7baf808079 Moved nickname into auth and user data into db 2020-04-26 17:59:46 +10:00
Mitchell McCaffrey
65478d555b Added user id and owner model for map state and tokens db table 2020-04-24 17:53:42 +10:00
Mitchell McCaffrey
2ceec9cfec Added authentication handling 2020-04-14 16:05:44 +10:00
Mitchell McCaffrey
8361d6eb0b Moved to simple peer 2020-04-05 22:20:34 +10:00
Mitchell McCaffrey
fb43cc3fc2 Added video calling 2020-03-19 12:02:31 +11:00
Mitchell McCaffrey
673320988f Added game provider and shared state for the app 2020-03-17 08:21:19 +11:00