A module for managing resources needed for games. This currently only manages textures, but a future version might add sounds, 3d-meshes etc..
Loads a list of textures from the given urls. PNGs and JPEGs are known to work. For WebGL make sure that your textures have a dimension with a power of two, e.g. 2^n x 2^m
Returns a maybe as the texture might not be loaded yet.
Same as loadTextures, but gives you more controll by being able to react to a texture loading error and by specifying a texture filter.
loadTexturesWithConfig
{ success = Resources
, failed = LoadingTextureFailed
}
[ (linear, "images/blob.png"), (nearest, "images/box.jpeg") ]
The main type of this library