Search found 12 matches
- Thu Oct 29, 2015 1:25 am
- Forum: Libraries and Tools
- Topic: cargo, a small library for managing assets
- Replies: 6
- Views: 4865
Re: cargo, a small library for managing assets
Currently it will keep assets loaded. Cargo could use weak references but then you'd have to manually keep references to anything you want to keep loaded, which is kind of a pain. You may be able to get away with doing something like: local assets = require('cargo').init('/') assets.some.folder = ni...
- Wed Oct 28, 2015 12:08 am
- Forum: Libraries and Tools
- Topic: cargo, a small library for managing assets
- Replies: 6
- Views: 4865
cargo, a small library for managing assets
Cargo is a simple library I made that automatically loads and caches assets in a LÖVE project. It maps a directory in your project to a Lua table and takes care of loading those assets the first time they are accessed. So if you have an "images" folder with several .png files in it, you ca...