Commit Graph

181 Commits

Author SHA1 Message Date
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