Closed DreadKnight closed 10 years ago
Avoid the "add png extension manually" stuff by using the "download" tag Here's an example from my project https://github.com/FreezingMoon/AncientBeast
<a href="game/AncientBeast.html" download>Click to download</a>
Look at the source code, this isn't an anchor tag. Upon clicking on "Save As PNG" I run some javascript to convert the canvas to a data uri that the user can save.
Avoid the "add png extension manually" stuff by using the "download" tag Here's an example from my project https://github.com/FreezingMoon/AncientBeast