use automata and hardware constants in render

This commit is contained in:
2021-11-29 17:20:29 +01:00
parent a2c8c40aaf
commit fde5c95442
3 changed files with 13 additions and 12 deletions

6
Code/automata.inc Normal file
View File

@@ -0,0 +1,6 @@
CELLS_WIDTH = 40
CELLS_HEIGHT = 36
CELLS_PER_TILE = 2
TILE_WIDTH = CELLS_WIDTH / CELLS_PER_TILE
TILE_HEIGHT = CELLS_HEIGHT / CELLS_PER_TILE
BUFFER_SIZE = TILE_WIDTH * TILE_HEIGHT