namelessWrench

The Only Rotten Dollhart Webring

A hideous fruit, disgracing itself.

Allo-Aro


You must log in to comment.

in reply to @Qwarq's post:

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.