igravitystudios / matchimals.fun

šŸ¦ šŸƒ šŸ“± An animal matching puzzle card gameā€“Ā built with turn-based game engine boardgame.io and React-Native + React-Native-Web
https://www.matchimals.com
MIT License
168 stars 32 forks source link

Pinch-zoom / UI scaling šŸ” #27

Open chrisheninger opened 5 years ago

chrisheninger commented 5 years ago

Game is hard to play on a phoneā€“Ā could benefit from some UI scalingā€“ along with pinch-zoom to adjust the scale.

Started some work here: https://github.com/igravitystudios/matchimals.fun/blob/72781260f81e306f0a7a732df2bf5fd0706035f2/src/Table/index.js#L108-L125

I think I want to rewrite it using translate instead of top/left for positioning the viewportā€“Ā this will require changing a bit of the card drop logic.