If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working soon.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
Motocross Maniacs/Notes: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
}} | }} | ||
== | == Level data == | ||
=== General idea === | === General idea === | ||
A <b>track</b> is simply a sequence of <b>objects</b>: floor, small triangular ramp, floor, etc. | ==== Track definitions ==== | ||
A <b>track</b> is simply a sequence of <b>objects</b>, such as ramps, bumps, etc. | |||
Below is the level 1 track: floor, small triangular ramp, floor, etc. | |||
[[Image:Motocross_Maniacs_ScreenData.png|600px]] | |||
In the ROM data, a <b>track</b> is a sequence of 3-byte words | In the ROM data, a <b>track</b> is a sequence of 3-byte words <b>YY XX ZZ</b>: | ||
[[Image: | * <b>ZZ</b> = objectID | ||
* <b>YY XX</b> = coordinates from top left of the level | |||
Below is level 1 data, with each 3-byte word highlighted. | |||
[[Image:Motocross_Maniacs_Level1Data.png|600px]] | |||
The first floor object (ID=x0F) is at (x00,x00), the second small triangular ramp object (ID=x0E) is at (x0A,x01), etc. | |||
==== Object definitions ==== | |||
An <b>object</b> is an array of <b>metatiles</b>, where each <b>metatile</b> is itself a 2x2 array of regular 8x8px tiles. | |||
Below is a small triangular ramp object: it's made of 4 metatiles (each in a different color), and each metatile is made of 4 tiles. | |||
[[Image:Motocross_Maniacs_TriangularRamp.png|200px]] | |||
In the ROM data, a track <b>object</b> is a sequence of bytes <b>XX YY AA BB...</b>. | |||
* <b>XX YY</b> define the <b>metatile</b> array's dimensions, <b>XX</b> rows, <b>YY</b> columns. | |||
* <b>AA BB...</b> are the metatileIDs that will fill the array, one line at a time. | |||
Below are the first two objects of level 1: a floor object, followed by a small triangular ramp object. | |||
[[Image:Motocross_Maniacs_ObjectDefinition.png|600px]] | |||
* The floor object is a row of <b>x0A</b> metatiles with ID <b>x09</b>. | |||
* The small triangular ramp object is a 2x2 array of metatiles <b>x0A</b>, <b>x0B</b>, <b>xC</b> and <b>x0D</b>. |
Revision as of 20:25, 20 April 2023
Motocross Maniacs | |
Internal Name | xxx |
Region Code | xxx |
Type | Grayscale Game |
SGB Support | xxx |
Cartridge Type | xxx |
License Code | xxx |
ROM Size | xxx |
ROM Checksum | xxx |
SRAM Size | xxx |
Header Checksum | xxx |
Level data
General idea
Track definitions
A track is simply a sequence of objects, such as ramps, bumps, etc. Below is the level 1 track: floor, small triangular ramp, floor, etc. In the ROM data, a track is a sequence of 3-byte words YY XX ZZ: * ZZ = objectID * YY XX = coordinates from top left of the level Below is level 1 data, with each 3-byte word highlighted. The first floor object (ID=x0F) is at (x00,x00), the second small triangular ramp object (ID=x0E) is at (x0A,x01), etc.
Object definitions
An object is an array of metatiles, where each metatile is itself a 2x2 array of regular 8x8px tiles. Below is a small triangular ramp object: it's made of 4 metatiles (each in a different color), and each metatile is made of 4 tiles. In the ROM data, a track object is a sequence of bytes XX YY AA BB.... * XX YY define the metatile array's dimensions, XX rows, YY columns. * AA BB... are the metatileIDs that will fill the array, one line at a time. Below are the first two objects of level 1: a floor object, followed by a small triangular ramp object. * The floor object is a row of x0A metatiles with ID x09. * The small triangular ramp object is a 2x2 array of metatiles x0A, x0B, xC and x0D.