User Tools

Site Tools


super:technical_information:data_structures

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
super:technical_information:data_structures [2020/06/16 20:51] – [Level data] Update to BTS list p.jboysuper:technical_information:data_structures [2024/03/22 16:09] (current) – [Door header] p.jboy
Line 36: Line 36:
   * The **room index** is almost unused, aside from some specific checks to do with atmospheric graphics in some areas.   * The **room index** is almost unused, aside from some specific checks to do with atmospheric graphics in some areas.
   * The **room width** may not exceed 15 due to the way block collision calculations are implemented   * The **room width** may not exceed 15 due to the way block collision calculations are implemented
-  * **Room width** * **room height** may not exceed 0x50 due to memory constraints+  * **Room width** * **room height** may not exceed 50 due to memory constraints
   * The **up scroller** defines the threshold Y position that Samus needs to exceed (relative to the screen) for the screen to start scrolling downwards when the camera is at the top of the room   * The **up scroller** defines the threshold Y position that Samus needs to exceed (relative to the screen) for the screen to start scrolling downwards when the camera is at the top of the room
   * The **down scroller** defines the threshold Y position that Samus needs to exceed (relative to the screen) for the screen to start scrolling upwards when the camera is at the bottom of the room   * The **down scroller** defines the threshold Y position that Samus needs to exceed (relative to the screen) for the screen to start scrolling upwards when the camera is at the bottom of the room
Line 106: Line 106:
    _________________ First door pointer (door BTS 0)    _________________ First door pointer (door BTS 0)
   |     ____________ Second door pointer (door BTS 1)   |     ____________ Second door pointer (door BTS 1)
-  |    |     _______ Other door pointerd (door BTS 2+)+  |    |     _______ Other door pointers (door BTS 2+)
   |    |    |   |    |    |
   aaaa bbbb [...]   aaaa bbbb [...]
Line 119: Line 119:
    _____________________________ Destination room header pointer (bank $8F)    _____________________________ Destination room header pointer (bank $8F)
   |     ________________________ Elevator properties   |     ________________________ Elevator properties
-  |    |   _____________________ Orientation +  |    |   _____________________ Direction 
-  |    |  |   __________________ X position low byte +  |    |  |   __________________ Doorcap X position in blocks 
-  |    |  |  |   _______________ Y position low byte +  |    |  |  |   _______________ Doorcap Y position in blocks 
-  |    |  |  |  |   ____________ X position high byte +  |    |  |  |  |   ____________ X screen 
-  |    |  |  |  |  |   _________ Y position high byte+  |    |  |  |  |  |   _________ Y screen
   |    |  |  |  |  |  |   ______ Distance from door to spawn Samus   |    |  |  |  |  |  |   ______ Distance from door to spawn Samus
   |    |  |  |  |  |  |  |     _ Custom door ASM to execute (bank $8F)   |    |  |  |  |  |  |  |     _ Custom door ASM to execute (bank $8F)
Line 137: Line 137:
 | 0x80 | Door is an elevator | | 0x80 | Door is an elevator |
 | 0x40 | Switch map to new area | | 0x40 | Switch map to new area |
-| 0x0i | Marks elevator index i as used |+| 0x0i | Marks elevator index i as used (for debug mode) |
  
 The **orientation** values are as follows: The **orientation** values are as follows:
super/technical_information/data_structures.1592340714.txt.gz · Last modified: 2020/06/16 20:51 by p.jboy