Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // the remainder of this method is dedicated to moving the overworld ghost sprites to the locations
- // where the ghost houses have been moved. shoutouts to Nintendo for being kinda shitty at programming
- rom.set(
- [
- 0x00, 0x00, 0x01, 0xE0, 0x00,
- 0x03, 0x00, 0x00, 0x00, 0x00,
- 0x06, 0x70, 0x01, 0x20, 0x00,
- 0x07, 0x38, 0x00, 0x8A, 0x01,
- 0x00, 0x58, 0x00, 0x7A, 0x00,
- 0x08, 0x88, 0x01, 0x18, 0x00,
- 0x09, 0x48, 0x01, 0xFC, 0xFF
- ],
- 0x27625);
- var ghostspritebase = 0x27625 + 35, ghostsubmapbase = 0x27666;
- for (var i = 0; i < stages.length; ++i)
- if (stages[i].copyfrom.ghost)
- {
- var x = stages[i].tile[0] * 2 - 0x10;
- var y = stages[i].tile[1] * 2 - 0x08;
- rom.set([0x0A, x & 0xFF, (x >> 8) & 0xFF, y & 0xFF, (y >> 8) & 0xFF], ghostspritebase);
- ghostspritebase += 5;
- rom[ghostsubmapbase] = (stages[i].tile[1] >= 0x20);
- ghostsubmapbase += 1;
- }
- rom.set([0x01, 0x20, 0x40, 0x60, 0x80, 0xA0], 0x2766F);
- rom.set(
- [
- 0xAD, 0x11, 0x1F, 0x29, 0x01, 0x5D, 0x5C, 0xF6, 0xD0, 0x2E, 0xA9, 0x34, 0xBC, 0x95, 0x0E,
- 0x30, 0x02, 0xA9, 0x44, 0xEB, 0xA9, 0x60, 0x20, 0x06, 0xFB, 0x80, 0x1D
- ],
- 0x27D7C);
- rom[0x276B0] = 0x0A;
- rom[0x27802] = 0x0A;
- rom.set([0x22, 0x97, 0xFD, 0x04], 0x01AA4);
- rom.set([0x22, 0x77, 0xF6, 0x04, 0x5C, 0x00, 0x80, 0x7F], 0x27D97);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement