coconut-platformer / game

2 stars 0 forks source link

Upgraded asset manager #23

Closed mrozbarry closed 5 years ago

mrozbarry commented 5 years ago

Tasks

Tickets

Changes:

New asset loading API:

// old
assetManager.loadImages([{ name: 'cloud-1', image: someImportedImage }]);

// new
assetManager.selectImages(['cloud-1']).load()

Advantages:

Also, check out the new asset loaders in src/assets/*.js - we should be able to rapidly build new loaders, and implement them in AssetManager.