z3r-patch
Version:
A JS module for patching ALTTPR seeds
38 lines (35 loc) • 1.24 kB
JavaScript
export const charBytes = {
" ": [0x9F, 0x9F], "0": [0x53, 0x79], "1": [0x54, 0x7A],
"2": [0x55, 0x7B], "3": [0x56, 0x7C], "4": [0x57, 0x7D],
"5": [0x58, 0x7E], "6": [0x59, 0x7F], "7": [0x5A, 0x80],
"8": [0x5B, 0x81], "9": [0x5C, 0x82], "A": [0x5D, 0x83],
"B": [0x5E, 0x84], "C": [0x5F, 0x85], "D": [0x60, 0x86],
"E": [0x61, 0x87], "F": [0x62, 0x88], "G": [0x63, 0x89],
"H": [0x64, 0x8A], "I": [0x65, 0x8B], "J": [0x66, 0x8C],
"K": [0x67, 0x8D], "L": [0x68, 0x8E], "M": [0x69, 0x8F],
"N": [0x6A, 0x90], "O": [0x6B, 0x91], "P": [0x6C, 0x92],
"Q": [0x6D, 0x93], "R": [0x6E, 0x94], "S": [0x6F, 0x95],
"T": [0x70, 0x96], "U": [0x71, 0x97], "V": [0x72, 0x98],
"W": [0x73, 0x99], "X": [0x74, 0x9A], "Y": [0x75, 0x9B],
"Z": [0x76, 0x9C], "'": [0xD9, 0xEC], ".": [0xDC, 0xEF],
"/": [0xDB, 0xEE], ":": [0xDD, 0xF0], "_": [0xDE, 0xF1],
};
export const heartColorBytes = {
red: 0x00,
blue: 0x01,
green: 0x02,
yellow: 0x03,
};
export const heartSpeedBytes = {
off: 0,
double: 16,
normal: 32,
half: 64,
quarter: 128,
};
export const menuSpeedBytes = {
slow: 0x04,
normal: 0x08,
fast: 0x10,
instant: 0xe8,
};