Skip to content

Instantly share code, notes, and snippets.

@prettymuchbryce
Created January 7, 2013 22:32
Show Gist options
  • Save prettymuchbryce/4479158 to your computer and use it in GitHub Desktop.
Save prettymuchbryce/4479158 to your computer and use it in GitHub Desktop.
if (chunkX < _centerChunkX - MAX_WORLD_SIZE/2 || chunkX > _centerChunkX + MAX_WORLD_SIZE/2 || chunkY < _centerChunkY - MAX_WORLD_SIZE/2 || chunkY > _centerChunkY + MAX_WORLD_SIZE/2) {
worldChunks[chunkX + "_" + chunkY] = _waterChunk;
return _waterChunk;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment