Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

Tetris DX/RAM map: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
0:C280-C2FF      80      Current BG and OBJ color palettes, taking into account fade transitions
0:C280-C2FF      80      Current BG and OBJ color palettes, taking into account fade transitions


0:AF80          1      X position of current piece (left=1)
0:AF81          1      Y position of current piece (top=0)
0:AF82          1      Rotation state of current piece
0:AF83          1      Piece counter; increments after each piece and ranges from 0-6
0:AF83          1      Piece counter; increments after each piece and ranges from 0-6
0:AF84          1      Next piece
0:AF84          1      Next piece

Revision as of 17:45, 22 October 2022

Chip tiny.png The following article is a RAM map for Tetris DX.

Address          Size    Notes
-------          ----    -----
0:C200-C27F      80      Initial BG and OBJ color palettes
0:C280-C2FF      80      Current BG and OBJ color palettes, taking into account fade transitions

0:AF80           1       X position of current piece (left=1)
0:AF81           1       Y position of current piece (top=0)
0:AF82           1       Rotation state of current piece
0:AF83           1       Piece counter; increments after each piece and ranges from 0-6
0:AF84           1       Next piece
0:AF85           1       Current piece
0:AFB0           1       Previous piece