3 ms·
The other day I was working on my wolf 3d game clone when I noticed this cool bug. My maps for the game are defined as an object with width, height and an arra
by atum47 2y ago
The other day I was working on my wolf 3d game clone when I noticed this cool bug.
My maps for the game are defined as an object with width, height and an array of arrays for the data. When working on a map that was supposed to be 14 in width and 16 in height, I forget to update the values (8 x 8) and end up creating a infinite level.
you can look at the error here: https://victorribeiro.com/raycast2/js/map.js https://victorribeiro.com/raycast2/js/map.js
You need a keyboard to walk around the game. Arrow keys walk around, space bar opens doors.