Game Asset Loader
Game asset loader for HTML5 games with gracefull fallbacks.
Install
npm install --save game-asset-loader
Usage
Load an image
Load a sound
Load a font
Load List
;
Fallbacks
Images (optional): transparent image placeholder (game code can remain unchanged)
Images (required): image not found image (visual feedback that an image is missing)
Sound: silent sound & console warning
Develop
Run npm start
and open localhost:1234 in a browser.
tape + tape-dom are used for easy testing on various mobile devices.