Add ChunkMap for better debugging

This commit is contained in:
Joscha 2017-04-07 19:35:05 +00:00
parent 42d72422c6
commit 68c50f894b
5 changed files with 153 additions and 33 deletions

View file

@ -2,8 +2,8 @@ from collections import namedtuple
Position = namedtuple("Position", "x y")
CHUNK_WIDTH = 16
CHUNK_HEIGHT = 8
CHUNK_WIDTH = 64
CHUNK_HEIGHT = 32
def chunkx(value):
return value//CHUNK_WIDTH