There is a race in the game in that images are loaded asynchronously. The result is that before the images have been loaded they draw black and you have to scroll the map to see them. We should be updating after the images have loaded.
Implementation
In dungeon-client.js whenever we construct a new Image we should have an onload handler. We can either detect when all loading images have loaded, or we can redraw after each image has loaded. This will eliminate the occasional black screens that you can see.
Summary.
There is a race in the game in that images are loaded asynchronously. The result is that before the images have been loaded they draw black and you have to scroll the map to see them. We should be updating after the images have loaded.
Implementation
In dungeon-client.js whenever we construct a new Image we should have an onload handler. We can either detect when all loading images have loaded, or we can redraw after each image has loaded. This will eliminate the occasional black screens that you can see.