[Maintenance] Move the playfield constants to a separate .inc file

With both 16- and 32-bit build parts soon having full dependency
tracking, having more small includes wins out over having fewer, larger
ones – and also, over having to fix tons of macro conflicts that stem
from most .inc files assuming the context of the big .asm files.

Case in point, including ReC98.inc doesn't work right now without
defining a .MODEL, which is counter-productive for ASM compilation
units.

Part of P0035, funded by zorg.
This commit is contained in:
nmlgc 2019-09-24 21:53:54 +02:00
parent e65cf0d05d
commit 7887f53ea8
2 changed files with 16 additions and 16 deletions

View File

@ -26,6 +26,7 @@ include libs/master.lib/clip.inc
include libs/master.lib/macros.inc
include libs/kaja/kaja.inc
include th01/hardware/egc.inc
include th02/playfld.inc
include th02/formats/pi_slots.inc
include th03/formats/cdg.inc
@ -71,22 +72,6 @@ RES_Y = 400
GAIJI_TRAM_W = 2
PLAYFIELD_X = 32
PLAYFIELD_Y = 16
PLAYFIELD_W = 384
PLAYFIELD_H = 368
PLAYFIELD_LEFT = PLAYFIELD_X
PLAYFIELD_TOP = PLAYFIELD_Y
PLAYFIELD_RIGHT = PLAYFIELD_X + PLAYFIELD_W
PLAYFIELD_BOTTOM = PLAYFIELD_Y + PLAYFIELD_H
PLAYFIELD_VRAM_X = PLAYFIELD_X / 8
PLAYFIELD_VRAM_W = PLAYFIELD_W / 8
PLAYFIELD_TRAM_X = PLAYFIELD_X / 8
PLAYFIELD_TRAM_W = PLAYFIELD_W / 8
ROW_SIZE = (RES_X / 8)
TILE_W = 16

15
th02/playfld.inc Normal file
View File

@ -0,0 +1,15 @@
PLAYFIELD_X = 32
PLAYFIELD_Y = 16
PLAYFIELD_W = 384
PLAYFIELD_H = 368
PLAYFIELD_LEFT = PLAYFIELD_X
PLAYFIELD_TOP = PLAYFIELD_Y
PLAYFIELD_RIGHT = PLAYFIELD_X + PLAYFIELD_W
PLAYFIELD_BOTTOM = PLAYFIELD_Y + PLAYFIELD_H
PLAYFIELD_VRAM_X = PLAYFIELD_X / 8
PLAYFIELD_VRAM_W = PLAYFIELD_W / 8
PLAYFIELD_TRAM_X = PLAYFIELD_X / 8
PLAYFIELD_TRAM_W = PLAYFIELD_W / 8