Hacker News new | ask | show | jobs
by babuskov 4698 days ago
Buildings of similar height all look the same. I guess adding some variation like 2 or 3 different building textures would make it look like a real city.
1 comments

There's any number of ways this could be improved. Better layout, better textures, different building types, stochastic city planning/zoning. But this is a nice starting place that shows off a few easy techniques. Probably good enough to use in a JS1K demo.
Well, it uses Three.js (too heavily to easily remove the dependency, I think), so it wouldn't work for js1k.
Well not literally no, but the algorithm is certainly applicable.