Skip to content

Commit f57be98

Browse files
authored
Replace hardware_constants.asm with the community-standard hardware.inc 5.0 (#130)
1 parent 7c3ac3e commit f57be98

File tree

103 files changed

+2540
-1667
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+2540
-1667
lines changed

audio/engine.asm

Lines changed: 110 additions & 110 deletions
Large diffs are not rendered by default.

constants/gfx_constants.asm

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
1-
DEF TILE_WIDTH EQU 8 ; pixels
2-
DEF LEN_1BPP_TILE EQU 1 * TILE_WIDTH ; bytes
3-
DEF LEN_2BPP_TILE EQU 2 * TILE_WIDTH ; bytes
4-
5-
DEF NUM_PAL_COLORS EQU 4
6-
DEF PAL_COLOR_SIZE EQU 2
7-
DEF PALETTE_SIZE EQU NUM_PAL_COLORS * PAL_COLOR_SIZE
1+
DEF TILE_1BPP_SIZE EQU TILE_SIZE / 2 ; bytes
82

93
DEF PALRGB_WHITE EQU palred 31 + palgreen 31 + palblue 31 ; $7fff
104

11-
DEF SCREEN_WIDTH EQU 20 ; tiles
12-
DEF SCREEN_HEIGHT EQU 18 ; tiles
13-
DEF SCREEN_WIDTH_PX EQU SCREEN_WIDTH * TILE_WIDTH ; pixels
14-
DEF SCREEN_HEIGHT_PX EQU SCREEN_HEIGHT * TILE_WIDTH ; pixels
15-
16-
DEF BG_MAP_WIDTH EQU 32 ; tiles
17-
DEF BG_MAP_HEIGHT EQU 32 ; tiles
18-
195
DEF METATILE_WIDTH EQU 4 ; tiles
206
DEF SCREEN_META_WIDTH EQU 6 ; metatiles
217
DEF SCREEN_META_HEIGHT EQU 5 ; metatiles
@@ -33,15 +19,6 @@ DEF HP_GREEN EQU 0
3319
DEF HP_YELLOW EQU 1
3420
DEF HP_RED EQU 2
3521

36-
; sprite_oam_struct members (see macros/ram.asm)
37-
rsreset
38-
DEF SPRITEOAMSTRUCT_YCOORD rb ; 0
39-
DEF SPRITEOAMSTRUCT_XCOORD rb ; 1
40-
DEF SPRITEOAMSTRUCT_TILE_ID rb ; 2
41-
DEF SPRITEOAMSTRUCT_ATTRIBUTES rb ; 3
42-
DEF SPRITEOAMSTRUCT_LENGTH EQU _RS
43-
DEF NUM_SPRITE_OAM_STRUCTS EQU 40 ; see wShadowOAM
44-
4522
DEF SPRITE_GFX_LIST_CAPACITY EQU 12 ; see wUsedSprites
4623

4724
DEF OAM_YCOORD_HIDDEN EQU 160 ; hides an OAM offscreen

0 commit comments

Comments
 (0)