Gaurav0 / Universal-LPC-Spritesheet-Character-Generator

Character Generator based on Universal-LPC-Spritesheet
http://gaurav.munjal.us/Universal-LPC-Spritesheet-Character-Generator
GNU General Public License v3.0
445 stars 339 forks source link

proper download #10

Closed DreadKnight closed 10 years ago

DreadKnight commented 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>
Gaurav0 commented 10 years ago

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.