Commit Graph

413 Commits

Author SHA1 Message Date
Mitchell McCaffrey
0d37f8c6e3 Changed map interaction to ignore events not on the canvas
This removes the need for calling prevent interaction all over the code also allowed pointer events to go through the empty parts of the dice tray
2020-05-27 15:26:42 +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
da84f923d1 Added per dice physics properties 2020-05-27 14:01:12 +10:00
Mitchell McCaffrey
d4ec013df2 Zoom dice camera 2020-05-27 12:25:20 +10:00
Mitchell McCaffrey
293372a3e0 Change dice roll function to prevent overlaps 2020-05-27 12:17:53 +10:00
Mitchell McCaffrey
cf12ff22ed Added thickness to dice tray collision wall and roof 2020-05-27 12:04:28 +10:00
Mitchell McCaffrey
027fc480e1 Removed flex wrap from dice controls 2020-05-27 11:34:32 +10:00
Mitchell McCaffrey
b786b176b0 Added multiple dice tray sizes 2020-05-27 11:24:17 +10:00
Mitchell McCaffrey
0a5b33a69f Removed outline when dice tray is focused 2020-05-26 17:21:50 +10:00
Mitchell McCaffrey
f8fe7a2f2b Updated dice tray textures 2020-05-26 17:17:46 +10:00
Mitchell McCaffrey
5a2e0a53ed Fix map scroll with modals open 2020-05-26 15:44:41 +10:00
Mitchell McCaffrey
dec8fd3c2e Updated dice tray icon and fixed map interaction with select dice modal open 2020-05-26 15:43:46 +10:00
Mitchell McCaffrey
84b198c851 Added dice style select 2020-05-26 14:47:37 +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
3be729d4a0 Added reset to dice physics when rerolling 2020-05-25 20:52:11 +10:00
Mitchell McCaffrey
70f68a9093 Fix dice momenent conflict on touch devices 2020-05-25 20:46:21 +10:00
Mitchell McCaffrey
fd5998ea17 Added dice tray resizing to match screen size 2020-05-25 20:37:17 +10:00
Mitchell McCaffrey
90e6e43c1d Merge branch 'release/v1.3.0' into feature/dice 2020-05-25 19:29:11 +10:00
Mitchell McCaffrey
43b0ff3e2e Removed double click map reset due to conflicts with other interactions 2020-05-25 18:56:46 +10:00
Mitchell McCaffrey
4b4c88f85c Added back double click to reset map transform 2020-05-25 18:08:39 +10:00
Mitchell McCaffrey
92c14533f1 Updated pinch map gesture to support movement and fix bug with drawing while pinching 2020-05-25 17:26:36 +10:00
Mitchell McCaffrey
012086745f Added more padding to token drag overlay to avoid problems with ios gesture bar 2020-05-25 17:25:45 +10:00
Mitchell McCaffrey
4299467757 Fix token menu open position bug with selecting the same token after movement 2020-05-25 16:35:48 +10:00
Mitchell McCaffrey
ef96f2f7c4 Reversed context menu as it was bugged with map interaction 2020-05-25 16:12:30 +10:00
Mitchell McCaffrey
6bd0cefc14 Added right click support back for token menu 2020-05-25 16:01:15 +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
73c7ca91fa Fix token remove for touch devices 2020-05-25 13:12:30 +10:00
Mitchell McCaffrey
be7d6c5277 Moved to react spring for konva animations 2020-05-25 10:37:28 +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
bbb9279228 Fix undefined error in token state sort 2020-05-24 13:32:49 +10:00
Mitchell McCaffrey
d96ec27c88 Remove console log in game 2020-05-24 13:32:33 +10:00
Mitchell McCaffrey
a91f2c6d39 Added tap events for map interaction 2020-05-22 23:55:50 +10:00
Mitchell McCaffrey
5f2d282df8 Added pinch to zoom for map 2020-05-22 23:43:55 +10:00
Mitchell McCaffrey
312f9a8773 Change broker to dev 2020-05-22 22:24:10 +10:00
Mitchell McCaffrey
f8e4c3bc13 Merge branch 'master' into feature/custom-tokens 2020-05-22 22:22:59 +10:00
Mitchell McCaffrey
8b0013be08 Enable ICE trickling for faster connections 2020-05-22 22:22:22 +10:00
Mitchell McCaffrey
09e423fd56 Added token animations back, edited token change event to support multiple edits
This stopped mounted vehicle animations from lagging
2020-05-22 22:17:30 +10:00
Mitchell McCaffrey
ef1c875088 Added token rotation 2020-05-22 21:10:05 +10:00
Mitchell McCaffrey
a8bd5ab672 Added is vehicle checkbox and vehicle type tokens 2020-05-22 20:43:07 +10:00
Mitchell McCaffrey
00c24c34a4 Added last edited by in default token state 2020-05-22 20:09:02 +10:00
Mitchell McCaffrey
0304236558 Removed unused draw functions 2020-05-22 18:21:21 +10:00
Mitchell McCaffrey
b6d6a16817 Fix capitilisation of default maps and tokens names 2020-05-22 18:11:45 +10:00
Mitchell McCaffrey
e188294aed Fix select token done button bug 2020-05-22 18:04:17 +10:00
Mitchell McCaffrey
6b176db914 Updated list token size to cover fit 2020-05-22 18:00:10 +10:00
Mitchell McCaffrey
a77c4158ca Readded loading spinner for map loading and fixed infinite token size when loading 2020-05-22 17:56:03 +10:00
Mitchell McCaffrey
9f21f895ba Disable map interaction in map selection modal 2020-05-22 17:25:17 +10:00
Mitchell McCaffrey
a6768727fe Readded map fog 2020-05-22 17:22:32 +10:00
Mitchell McCaffrey
a81eed1a48 Added transparency for tokens that can't be dragged 2020-05-22 15:11:18 +10:00