Skip to main content

AssetType

The AssetType type represents the types of assets that can be loaded and used in the game.


Definition

type AssetType = HTMLImageElement | HTMLAudioElement;

Allowed Types

  • HTMLImageElement: Represents an image asset.
  • HTMLAudioElement: Represents an audio asset.