Instead upload a folder called layer, just change the refrence for this folder inside index.js:
var op = new OpWorld({
viewport : {
w : 800,
h : 600
},
root : "../../../layers",
ctx : ctx
});
the next commit must cover groundmap, but in order to draw the ground, first we need to reproduce double-buffering. There are some options to do it, a hidden canvas included.
Instead upload a folder called layer, just change the refrence for this folder inside index.js:
var op = new OpWorld({ viewport : { w : 800, h : 600 }, root : "../../../layers", ctx : ctx });
the next commit must cover groundmap, but in order to draw the ground, first we need to reproduce double-buffering. There are some options to do it, a hidden canvas included.