Add ChunkMap for better debugging
This commit is contained in:
parent
42d72422c6
commit
68c50f894b
5 changed files with 153 additions and 33 deletions
4
utils.py
4
utils.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue