Refactor color handling in menu and update palette definitions

This commit is contained in:
scawful
2025-01-19 14:11:04 -05:00
parent 63b90e7fc3
commit c8d17dd941
5 changed files with 15 additions and 77 deletions

View File

@@ -30,7 +30,6 @@ base off
; =========================================================
function RGBto555(R,G,B) = ((R/8)<<10)|((G/8)<<5)|(B/8) ; zarby
function hexto555(h) = ((((h&$FF)/8)<<10)|(((h>>8&$FF)/8)<<5)|(((h>>16&$FF)/8)<<0)) ; kan
function menu_offset(y,x) = (y*64)+(x*2)
; Current Dream ID (0x00-0x03)