Commit cdfb147a by Sanya

try to change screen size

parent e90f7b86
......@@ -186,7 +186,13 @@ ctx.imageSmoothingEnabled = false;
var w = 1600;
var h = 1024;
var onResize = function () {
w = c1.width = window.innerWidth;
h = c1.height = window.innerHeight;
};
/*document.addEventListener('resize', onResize);
setTimeout(onResize, 1);*/
var Camera = {
position: [w/2, h/2],
scale: 8,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment