foxostro / GutsyStorm

Game with voxel graphics similar to Minecraft. (Restart GutsyStorm with Objective-C/Cocoa)
Other
12 stars 4 forks source link

Infinite world. Chunk Store can query chunks at any point in space. #7

Closed foxostro closed 12 years ago

foxostro commented 12 years ago

ChunkStore can query chunks at any point in space. If the requested chunk is in the internal cache then retrieve it directly. Otherwise, the ChunkStore should do what it needs to do to generate the chunk procedurally and add it to the cache.

At first, don't worry about chunk saving/loading to disk or moving work off the main thread. Don't worry about cache eviction or synchronization with the on-disk store. Just have ChunkStore be able to get the chunk at any point in space.

foxostro commented 12 years ago

Most of the work is done in aba1b7b62eb4b21e4fa1bc507493214eb3dca834, but there is still a bug with the terrain generator which prevents correct voxel data from being generated for points with x<0 or z<0.

foxostro commented 12 years ago

02b2894bb7f1a259833d29dbc14025337e4b8357