Managing text-maps in a 2D array on to be painted on HTML5 Canvas
- by weka
So, I'm making a HTML5 RPG just for fun. The map is a <canvas> (512px width, 352px height | 16 tiles across, 11 tiles top to bottom). I want to know if there's a more efficient way to paint the <canvas>.
Here's how I have it right now.
How tiles are loaded and painted on map
The map is being painted by tiles (32x32) using the Image()…