Preloading and rendering image sprites in 2d js/canvas games · HackerTrans