MAZES
Code Explanation
curwall = new
Wall(sx,sy,fx,fy,wallwidth,wallstyle);
walls.push(curwall);^
everything.push(curwall);^
}^
drawall();^
}^
else {^
alert("No data retrieved.");^
}^
window.addEventListener('keydown',
getkeyAndMove,false);
return false;^
}^
</script>
</head>^
<body onLoad="init();" >
<canvas id="canvas" width="900"
height="350">
Your browser doesn't support the HTML5
element canvas.
</canvas>
<br/>
Choose level and click GET MAZE button to
get a maze: