Commit Graph

425 Commits

Author SHA1 Message Date
Mitchell McCaffrey
25d0491374 Actually actually fix dice initial load 2020-05-28 13:56:00 +10:00
Mitchell McCaffrey
df57f09080 Actually fix dice initial load 2020-05-28 13:32:55 +10:00
Mitchell McCaffrey
a229d190e4 Fix bug where dice tray doesn't show after load 2020-05-28 13:24:33 +10:00
Mitchell McCaffrey
b8e5554058 Moved dice folder 2020-05-28 13:06:33 +10:00
Mitchell McCaffrey
1e0f767e73 Fix bug with default dice for select dice modal 2020-05-28 13:02:51 +10:00
Mitchell McCaffrey
fc8c65e525 Removed unnesasary async from createDiceInstace and simplified dice meshes to reduce spawn delay 2020-05-28 12:51:42 +10:00
Mitchell McCaffrey
2775fc6e16 Changed dice scene name and added handlers for pointer cancel and leave 2020-05-28 12:25:20 +10:00
Mitchell McCaffrey
8432176014 Fix map scroll when modal open 2020-05-28 11:52:18 +10:00
Mitchell McCaffrey
5b269fe7d1 Added wood dice mesh variant and moved shared meshes 2020-05-28 11:48:18 +10:00
Mitchell McCaffrey
810366dd00 Updated preview images to be a higher resolution and added glass and gemstone dice 2020-05-28 09:53:52 +10:00
Mitchell McCaffrey
a567cee289 Disabled pointer events for dice tray results text 2020-05-27 18:41:34 +10:00
Mitchell McCaffrey
6f51fd8cbe Fix touch highlight for dice overlay 2020-05-27 16:39:53 +10:00
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