"I've written like 50,000 lines of code for this game. Maybe I should make a post about some interesting technical bits."
skims through the code for a few minutes
"Fuck, all of this code is really boring."
Anyway, you should wishlist my game

A hideous fruit, disgracing itself.
Allo-Aro
"I've written like 50,000 lines of code for this game. Maybe I should make a post about some interesting technical bits."
skims through the code for a few minutes
"Fuck, all of this code is really boring."
Anyway, you should wishlist my game
I think this would be my deepest nesting. It's part of the rendering method for a map that has multiple 5x5 grids, with each cell potentially having properties represented by various icons.
for (let node of this.map.nodes) {
// ...
for (let y = 0; y < 5; y++) {
for (let x = 0; x < 5; x++) {
let sector = node.sectors[y][x];
// ...
for (let i of icons) {
context.drawImage(
// ...
);
}
// ...
}
}
}
There's about 130 lines cut out of there. It's a bit janky.