- I wrote some code to keep track of chunk updates and reuse old data to avoid light-tracing on each frame, and used the wrong position value to index them with. (2/3)
This caused *no updates* to occur, drawing light maps on top of each other and creating this horrible mess:
- I forgot to include a comma when adding arguments to a function, accidentally subtracting two numbers and making random parts of the background disappear. (3/3)
(It's nice having direct visual feedback for all my mistakes - makes these bugs a lot more interesting to find!)
So it turns out programming is kinda hard! (lol)
In good news, though, all these mistakes have actually paid off, and my snake game can now run at about 30fps (that's twice what I had before!) - as long as I avoid any big light sources.
A group of individual developers and enthusiasts with a focus on independent services, software, and technology.