Files
  • index.html
  • index.css
  • index.js
  • levelcreate.html
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>Testing Canvas</title>
    <link href="index.css" rel="stylesheet" type="text/css" />
  </head>
  <body onload="setLevel();draw();">
    <script src="index.js"></script>
    <canvas id="tutorial" width=500 height=500></canvas>
  </body>
</html>
result
console