I’m building a simple 2D Tile-map HTML5… and I have images to use. Is tehre any way to turn
var imageObj = new Image();
Into an array so I don’t have to do manual variables?
edit: I tried doing Array but I couldn’t find the src. Wait.. I was like.. an Array doesn’t have a src.. Hmmm.
Why don’t you make an array
and push all your Images to that array?