Commit 80caf3ee by doszhang

dos

parent ea9150ea
...@@ -91,6 +91,8 @@ function resizeCanvas() { ...@@ -91,6 +91,8 @@ function resizeCanvas() {
} }
function updateWorld() { function updateWorld() {
canvas.width = 641;
canvas.width = 640;
update(); update();
paint(); paint();
window.requestAnimationFrame(updateWorld); window.requestAnimationFrame(updateWorld);
......
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 sign in to comment