New answers tagged

0

You should probably store Pac-Man's position with sub-tile precision, either using a float, or using a tile-subdivision as your unit of distance (which is basically fixed-point). Using floats is conceptually easier and probably a bit faster on modern hardware, but introduces some problems due to the way floating point math works (you can't rely on equality, ...


4

Looks to me like it works like this: You have different biomes: road, rail, river, grass+trees, etc. Randomise a sequence of these like: road, river, road, grass, grass, river, rail, road, grass etc., ad nauseam. Now each of these occupy a width range. It seems to me from the video that the maximum size of the range increases as you travel further on ...



Top 50 recent answers are included