Moved seed creation from main.py to controllers, made it save
Also added G.SEED
Added TerrainGeneratorSimple, using (Simplex) Perlin Noise
Replaces the "flat dirt" with a flowing heightmap.
Should improve performance over the previous commit, as full-air sectors are no
longer continuously trying to regenerate themselves
Adds perlin.py from https://pypi.python.org/pypi/noise/
Made OrderedDict sector_queue, should speed up chunk loading
Dequeues are not good at searching through (with world.delete_opposite_task)
or for removing entries midqueue.
OrderedDicts are dicts that remember their insertion order during iteration
Also, by having a custom queue for sectors we don't need to use *args, **kwargs
and move the function around. We change sectors 100's of times a second, so...
Run through the queues multiple times per tick when possible
Small bugfix (It was causing problems on Windows 7 x64, Python 2.7.3 when creating new world)
Small performance fix (See: https://github.com/boskee/Minecraft/issues/47#issuecomment-16379689 (last line))
Fixed world.pxd
Further world.pxd changes.
Further world.pxd changes (2).
Further world.pxd changes (3).
Fixes pyglet compilation.
Added terrain generator interface
Merge pull request #63 from ronmurphy/Minecraft
Closes #63, Commits were too untidy to directly merge, please keep commits small
and without other people's commits, it causes conflicts and ruins history
Changes: Disabled initial nonperlin generated spawn area; added dirt layer;
added stone/ores layer; added roses inv icon
Players now initially spawn on top of terrain
TerrainGen: Optimizations, random ores are now based on seed
TerrainGen: Extended height to 64, 32 being "sealevel"
TerrainGen: Now generates single sectors, but queues regions
If you attempt to load sector (2,0,0) and it hasn't been generated yet, it
immediately generates (2,0,0), then puts the other 63 sectors into a generation
queue that is processed before other sectors are shown
Result: Smoother FPS when generating sectors
Added BiomeGenerator
Merge branch 'master' of github.com:boskee/Minecraft
Cythonized most important perlin.py functions.