Difference between revisions of "Crystal Beans From Dungeon Explorer:Cutscene sprite data struct"

From Data Crystal
Jump to: navigation, search
m (Forgot to add the table position and length)
m (Fixed ending address and length. Added info.)
 
Line 3: Line 3:
 
|loc=ROM
 
|loc=ROM
 
|start=0x179129
 
|start=0x179129
|end=0x17B8FC
+
|end=0x17B8FB
 
|numentries=?
 
|numentries=?
 
|entrylength=7 (0x7)
 
|entrylength=7 (0x7)
|totallength=10196 bytes (0x27D4)
+
|totallength=10195 bytes (0x27D3)
 
}}
 
}}
The '''Cutscene sprite data struct''' describes the placement, flags and size of the sprites composing the objects used in cutscenes. This data is used to set the OAM. In the ROM each struct list is preceded byte a byte telling the number of structs in the list. There is also pointer tables of 16-bits to these struct lists interspersed between them.
+
The '''Cutscene sprite data struct''' describes the placement, flags and size of the sprites composing the objects used in cutscenes. This data is used to set the OAM. In the ROM each struct list is preceded byte a byte telling the number of structs in the list. There is also 16-bits pointer tables to these struct lists interspersed between them.
  
 
{{clear}}
 
{{clear}}
Line 16: Line 16:
 
===X Coordinate===
 
===X Coordinate===
 
{{table el|len=2 bytes (0x2)|loc=0x0-0x1|valrange=?}}
 
{{table el|len=2 bytes (0x2)|loc=0x0-0x1|valrange=?}}
 +
Control the X position of the sprite. The origin is in the center of the screen meaning that positions at the left of the screen have negative values.
  
 
===Y Coordinate===
 
===Y Coordinate===
 
{{table el|len=2 bytes (0x2)|loc=0x2-0x3|valrange=?}}
 
{{table el|len=2 bytes (0x2)|loc=0x2-0x3|valrange=?}}
 +
Control the Y position of the sprite. The origin is in the center of the screen meaning that positions at the top of the screen have negative values.
  
 
===Flags===
 
===Flags===

Latest revision as of 11:27, 16 January 2012

Cutscene sprite data struct
Game Crystal Beans From Dungeon Explorer
Start Address 0x179129
End Address 0x17B8FB
# of Entries  ?
Entry Length 7 (0x7)
Total Length 10195 bytes (0x27D3)
Back to the ROM map

The Cutscene sprite data struct describes the placement, flags and size of the sprites composing the objects used in cutscenes. This data is used to set the OAM. In the ROM each struct list is preceded byte a byte telling the number of structs in the list. There is also 16-bits pointer tables to these struct lists interspersed between them.

Format

X Coordinate

Control the X position of the sprite. The origin is in the center of the screen meaning that positions at the left of the screen have negative values.

Y Coordinate

Control the Y position of the sprite. The origin is in the center of the screen meaning that positions at the top of the screen have negative values.

Flags

Size