Actions

SCHG

Sonic the Hedgehog CD (prototype 510)/MMD Breakdown

From Sonic Retro

Revision as of 00:25, 3 September 2006 by Ss is testing (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Object layout: The object layout of an *.MMD starts at 7320. The object positioning of a object is formatted as follows:

XXXX YYYY OOSS FFFF

I think this is the same type of positioning as S1. XXXX is 2 bytes long, and is the X location of the object. YYYY is 2 bytes long as well, and is the Y location of the object. OO is a byte long, and is the primary object type. SS is also a byte long, and is the object's subtype. An object's subtype is a value that is used to determine what type of one object it is. For example, take the Orbinaut from LZ in S1. If you changed its subtype to a certain value, it would never fire its spikes like the Orbinaut in SLZ.


Level layout: The level layout of an *.MMD begins at 3AB76. It's basically an array of tile values. An array is just a huge collection of data, to put it simply. The values go left to right for one row, and then after that row is cleared go to the next row. Let's say I wanted to make the following level layout.

00 00 00 00 00 00 00 12 09 09 11 10

Pretend that the 09 is normal ground, 10 is deeper ground, 11 is the first part of a slope going up, and 12 is the second part of a slope going up. This would appear in a grid of tiles as:




This would appear in hex as 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 12 09 09 09 09 09 09 11 10. I hope that you understood this section.


Pallets: The palletes are in the same format as the Genesis; 0BGR. For example, 068A would be blue to 6 lightness, green to 8 lightness, and red to A lightness. Note that the colors can only be in increments of two.

So color 066C would be blue to 6 lightness, green to 6 lightness, and red to C lightness. This would make this color. Hopefully you understand this.


These are the palette locations in the *.MMDs:

5D0: Sonic 1 palette (line 1)

5F0: Sonic 1 palette (line 2)

610: Sonic 1 palette (line 3)

630: Sonic 1 palette (line 4)

650: Sonic 1 level select pallete (line 1)

670: Sonic 1 level select pallete (line 2)

690: Sonic 1 level select pallete (line 3)

6B0: Sonic 1 level select pallete (line 4)

6D0: Sonic's pallete

6F0: Zone Pallete (line 1)

710: Zone Pallete (line 2)

730: Zone Pallete (line 3)

750: Mirror of Zone Pallete (line 1)

770: Mirror of Zone Pallete (line 2)

790: Cycling Pallete of Level

7B0: Mirror

7D0: Mirror

7F0: Mirror

EDE4: Amy's pallete (used to substitute zone pallete line 1)