GoogleChromeLabs / performance-game

Apache License 2.0
56 stars 15 forks source link

Add web share for highscores #2

Closed martinschierle closed 5 years ago

martinschierle commented 6 years ago

Add sharing functionality for highscore screen, and make sure highscore screen works well standalone. Let's use webshare for this, to demo new APIs (no fallback sharing if webshare is not supported for now). Maybe even do two sharing options - share highscores with link to highscore screen, and share the game itself.

martinschierle commented 6 years ago

I added this in, but didn't really test yet. If someone happens to try with real mobile device (desktop chrome doesn't have this API yet) check if this works and feel free to close out. Right now sharing doesn't take an image though, would be nicer to share with image (not sure if API can do that right now).

martinschierle commented 5 years ago

Given it's probably easier to play this on desktop, we should also add a share option for desktop probably

martinschierle commented 5 years ago

We'll skip desktop share for now. Mobile share works well, just tested.