4 ms·
Show HN: I accidentally crated a infinite level for a wolf 3D clone
- atum47 2y agoThe 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.