Closed flatpickles closed 11 months ago
Two problems with current approach (function-based imports):
A better design will solve both these problems. Maybe a helper class that can be instantiated in the parameter declaration?
assetImport = new ImageImport("/assets/default.png"); update() { ctx?.drawImage(assetImport.image, 0, 0); }
TBD - more thought needed.
Dupe of #234
Two problems with current approach (function-based imports):
A better design will solve both these problems. Maybe a helper class that can be instantiated in the parameter declaration?
TBD - more thought needed.