3 ms·
If there's one thing I've learned in a half year of JS game development, it's that there are usually good libraries to solve most low-level problems. Compactly
by fenomas 11y ago
If there's one thing I've learned in a half year of JS game development, it's that there are usually good libraries to solve most low-level problems. Compactly storing a 512x512 array of binary values can be as simple as:
var vegetation = require('ndarray-bit')([512, 512])
vegetation.set(23, 42, true)
vegetation.get(23, 42) // true
- yoklov 11y agoIf there's one thing i've learned in ~5 years of game development (and ~1 of JS game development), it's that generic libraries are almost always inferior to a custom solution when you're performance tuning.