Commit Graph
79 Commits
Author SHA1 Message Date
Mitchell McCaffrey cb8b66e55f Added touch supprt to fog polygon 2020-06-21 16:17:54 +10:00
Mitchell McCaffrey 2f740efd7c Added UI element to allow accepting fog polygon editing 2020-06-21 16:09:37 +10:00
Mitchell McCaffrey f85b379b15 Added grid snapping to fog polygon, added center snapping and fixed fog magnet 2020-06-21 14:55:17 +10:00
Mitchell McCaffrey 3ba7c8809c Moved drawing tools into one section 2020-06-21 11:01:03 +10:00
Mitchell McCaffrey aa4ba33a0b Added fog polygon tool and changed fog interaction method 2020-06-19 18:04:58 +10:00
Mitchell McCaffrey 1554e7ae5f Merge branch 'master' into feature/partial-shape 2020-06-19 13:28:55 +10:00
Mitchell McCaffrey 49787b560d Added automatic party re-join for network error
and fixed bug with connections not being destroyed with network failure
2020-06-16 20:09:24 +10:00
Mitchell McCaffrey f4d71cd6bf Add support for holes in fog subtraction 2020-06-14 12:27:05 +10:00
Mitchell McCaffrey 98543f60eb Added log image helper function 2020-05-31 15:35:03 +10:00
Mitchell McCaffrey 765c84389f Added async / await to dice texture loading
This should fix load issues with the dice tray being blank
Also turnned off the default texture flip so all textures are now unflipped by default
2020-05-28 18:08:26 +10:00
Mitchell McCaffrey c99e5bf5f8 Adjusted dice mass and friction and added velocity window for dice throwing 2020-05-26 10:57:12 +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 8b0013be08 Enable ICE trickling for faster connections 2020-05-22 22:22:22 +10:00
Mitchell McCaffrey 0304236558 Removed unused draw functions 2020-05-22 18:21:21 +10:00
Mitchell McCaffrey d26932d17c Added back map drawing 2020-05-22 13:47:11 +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 dd13208424 Changed blob to buffer fallback 2020-05-08 19:28:15 +10:00
Mitchell McCaffrey 79b46e0b5a Moved urls to environment and turn server retreval 2020-05-03 23:18:45 +10:00
Mitchell McCaffrey d075ab5faa Removed unused code 2020-05-03 18:40:31 +10:00
Mitchell McCaffrey 05d5c76c86 Moved to msgpack instead of js-binarypack 2020-05-03 10:44:26 +10:00
Mitchell McCaffrey ca0240351c Moved to storing maps as uint arrays instead of blobs 2020-05-01 17:37:01 +10:00
Mitchell McCaffrey bf9c87341a Moved to new socket server 2020-04-30 21:58:14 +10:00
Mitchell McCaffrey d066b262fa Implemented own blob to buffer function, fixed permission bug by creating copy of map file 2020-04-30 14:24:03 +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 3e5a80e7d1 Fixed shape drawing on different aspect ratio images 2020-04-29 11:04:33 +10:00
Mitchell McCaffrey abf75f1566 Added smoothing to freehand fog 2020-04-29 09:42:58 +10:00
Mitchell McCaffrey 5e2c178118 Separated map drawing and map fog into separate action lists 2020-04-28 22:05:47 +10:00
Mitchell McCaffrey b34a7df443 Added fog edge snapping 2020-04-28 17:04:31 +10:00
Mitchell McCaffrey cd4573770e Removed old gesture data 2020-04-28 17:02:41 +10:00
Mitchell McCaffrey b3bf3c3598 Made grid snapping have a threshold and removed the option to toggle it on and off 2020-04-28 11:31:01 +10:00
Mitchell McCaffrey 734b966a53 Moved drawing functions into the drawing helper 2020-04-28 11:04:54 +10:00
Mitchell McCaffrey 81f84d8a19 Added shape drawing and more vector helper functions 2020-04-27 21:39:21 +10:00
Mitchell McCaffrey 2cf93ab77f Added UI elements for the new drawing system
Removed old gesture system
Refactored map interaction into separate component
2020-04-27 17:29:46 +10:00
Mitchell McCaffrey 7baf808079 Moved nickname into auth and user data into db 2020-04-26 17:59:46 +10:00
Mitchell McCaffrey a07b95ec2d reload maps every time the select map modal is opened 2020-04-26 17:12:15 +10:00
Mitchell McCaffrey 4c667e9c5f Added name to map and added default props 2020-04-26 12:26:32 +10:00
Mitchell McCaffrey db8e0c14fb Fix bug with map staying live after deletion 2020-04-24 16:18:17 +10:00
Mitchell McCaffrey ed8f3bd283 Moved maps and tokens to a data source model
This will allow for easier custom token support as well as changing default tokens
2020-04-24 15:50:05 +10:00
Mitchell McCaffrey 25b215d4e4 Added map state to the database 2020-04-23 17:23:34 +10:00
Mitchell McCaffrey 8a9c50f44c Fix circle gesture on non square images 2020-04-21 20:06:52 +10:00
Mitchell McCaffrey 3c204377d6 Added a new method for calculating the gesture triangle shape
and moved gesture data to a separate file
2020-04-21 17:05:38 +10:00
Mitchell McCaffrey 8f1bcf3806 Added more training data for gesture recognizer 2020-04-21 13:31:55 +10:00
Mitchell McCaffrey ce1a252b2e Moved to a more compact representation of other gesture shapes in the shape data
Also renamed square to rectangle
2020-04-21 10:04:26 +10:00
Mitchell McCaffrey d2474ae198 Added brush blending and brush gesture options 2020-04-20 23:52:21 +10:00
Mitchell McCaffrey d4f8433bb1 Added brush grid snapping 2020-04-20 15:17:56 +10:00
Mitchell McCaffrey ef369f4866 Added more color options to map colors 2020-04-20 10:40:53 +10:00
Mitchell McCaffrey 3922d1f474 Moved status color helper to general color helper 2020-04-20 10:28:40 +10:00
Mitchell McCaffrey 64f284ebb7 Added nickname to local storage 2020-04-15 20:18:59 +10:00
Mitchell McCaffrey 2ceec9cfec Added authentication handling 2020-04-14 16:05:44 +10:00