Skip to content

Commit 252b214

Browse files
Update tunnel.html
1 parent 5728b50 commit 252b214

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

effects/tunnel.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h2 id="code">The Code</h2>
5454
canvas.height = 480;
5555
var ctx = canvas.getContext("2d");
5656

57-
var texture = new ImageData(256, 256);
57+
var texture = new ImageData(texWidth, texHeight);
5858
var distanceTable = new Array(canvas.height);
5959
var angleTable = new Array(canvas.height);
6060
var buffer = new ImageData(canvas.width, canvas.height);</code></pre></div>
@@ -241,4 +241,4 @@ <h2 id="moving">Moving Around</h2>
241241
player3.render(document.getElementById("container3"));
242242
</script>
243243
</body>
244-
</html>
244+
</html>

0 commit comments

Comments
 (0)