@al-engine/asset

Asset management for Al-engine, minimalistic game engine, for pixel perfect games

Usage no npm install needed!

<script type="module">
  import alEngineAsset from 'https://cdn.skypack.dev/@al-engine/asset';
</script>

README

Al engine

Asset

This is module for asset management for Al engine.

  const asset = new SpriteAsset(urlToAsset);
  // To start loading you need to call load after creating
  asset.load();
  // You can check if it's still loads
  asset.isLoading();

  // After loading all the asset data will be in [data] field
  asset.data