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

View File

@@ -1,11 +1,5 @@
INCLUDE "hardware.inc"
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
INCLUDE "automata.inc"
; automata buffers with 4 cells per byte
; 2x2 bytes per cell, bit ordering: