3 ms·
Check out the HTML5 LocalFileSystem APIs. They aren't widely available yet (Chrome 9+, behind a flag) but they are exactly what you want for this kind of thing.
by lilli 16y ago
Check out the HTML5 LocalFileSystem APIs. They aren't widely available yet (Chrome 9+, behind a flag) but they are exactly what you want for this kind of thing. http://www.html5rocks.com/tutorials/file/filesystem/ http://www.html5rocks.com/tutorials/file/filesystem/
- lilli 16y agoAlso, I should mention Application Cache (5MB local storage). Very useful for static game assets: http://www.html5rocks.com/tutorials/appcache/beginner/ http://www.html5rocks.com/tutorials/appcache/beginner/
- chc 16y agoEh, it's moderately useful. 5 MB is nothing these days — that's smaller than the L3 cache on a modern processor. If your game is only 5 MB, you hardly even need caching.