Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CODE_15804B: A9 10 LDA #$10 ; \ Layer 3 Y pos = #$0010.
- CODE_15804D: 8D 0A 02 STA $020A ; /
- CODE_1583F2: AE 33 05 LDX $0533 ; \ Get room + level number into index.
- CODE_1583F5: BF 98 D0 11 LDA DATA_11D098,x ; |
- CODE_1583F9: 18 CLC ; |
- CODE_1583FA: 6D 34 05 ADC $0534 ; |
- CODE_1583FD: AA TAX ; |
- CODE_1583FE: BF 6B 91 15 LDA DATA_15916B,x ; | Load which set of Layer 3 Map16 tiles to use (the cloud tiles or the light beams of the shining door)
- CODE_158402: 0A ASL A ; | Multiply by 2.
- CODE_158403: AA TAX ; |
- CODE_158404: BF 33 92 15 LDA POINTER_159233,x ; | Get low byte of Map16 table.
- CODE_158408: 8D 44 07 STA $0744 ; |
- CODE_15840B: E8 INX ; |
- CODE_15840C: BF 33 92 15 LDA POINTER_159233,x ; | Get high byte of Map16 table.
- CODE_158410: 8D 45 07 STA $0745 ; |
- CODE_158413: A9 15 LDA #$15 ; | Bank number = $15.
- CODE_158415: 8D 46 07 STA $0746 ; /
- CODE_158418: 60 RTS ; Return.
- CODE_1587AB: AD 44 07 LDA $0744 ; \ Map16 table into [$00]
- CODE_1587AE: 85 00 STA $00 ; |
- CODE_1587B0: AD 45 07 LDA $0745 ; |
- CODE_1587B3: 85 01 STA $01 ; |
- CODE_1587B5: AD 46 07 LDA $0746 ; |
- CODE_1587B8: 85 02 STA $02 ; /
- CODE_1587BA: AC 42 07 LDY $0742
- CODE_1587BD: C2 30 REP #$30 ; Accumulator and Index = 16-bit.
- CODE_1587BF: B7 C4 LDA [$C4],y ; \ Check if tile in Layer 3 Map16 table is #$FF...
- CODE_1587C1: 29 FF 00 AND #$00FF ; |
- CODE_1587C4: C9 FF 00 CMP #$00FF ; |
- CODE_1587C7: D0 10 BNE CODE_1587D9 ; / If not, branch.
- CODE_1587C9: AF 4F 93 15 LDA DATA_15934F ; \ Load value for empty tile.
- CODE_1587CD: 85 00 STA $00 ; | ($159351 is empty tile)
- CODE_1587CF: A9 15 00 LDA #$0015 ; |
- CODE_1587D2: 85 02 STA $02 ; /
- CODE_1587D4: A0 00 00 LDY #$0000 ; Y = #$0000.
- CODE_1587D7: 80 04 BRA CODE_1587DD
- DATA_158900: db $00,$01,$02,$03,$00,$01,$03,$02 ; \ This table here...
- db $02,$00,$01,$03,$02,$03,$00,$01 ; | ...serves as index...
- db $03,$00,$01,$02,$03,$02,$00,$01 ; | ... for the pointer below.
- db $01,$02,$03,$00,$01,$03,$02,$00 ; | Note that the following pointer only determines the clouds right at the start of the level.
- db $04,$05,$06,$07,$08,$09,$00,$00 ; /
- POINTER_158928: dw DATA_15893C ; Cloud 0 (horizontal level cloud part #1)
- dw DATA_1589C0 ; Cloud 1 (horizontal level cloud part #2)
- dw DATA_158A5C ; Cloud 2 (horizontal level cloud part #3)
- dw DATA_158AED ; Cloud 3 (horizontal level cloud part #4)
- dw DATA_158BBF ; Cloud 4 (upper part of vertical level cloud)
- dw DATA_158CB1 ; Cloud 5 (cloud specifically for the first room of 7-1, also used as part of regular vertical level cloud)
- dw DATA_158DA3 ; Cloud 6 (part #3 of regular vertical level cloud)
- dw DATA_158E95 ; Cloud 7 (part #4 of regular vertical level cloud)
- dw DATA_158F87 ; Cloud 8 (part #5 of regular vertical level cloud)
- dw DATA_159079 ; Cloud 9 (part #6 of regular vertical level cloud. This one is so far down that only really long vertical levels feature it, such as in 6-3)
- DATA_15893C: db $53,$9C,$00,$00,$00,$00,$00,$00 ; \ First two bytes of each image are header.
- db $00,$00,$00,$00,$00,$00,$00,$00 ; | Their format is as such:
- db $00,$00,$00,$00,$00,$00,$00,$00 ; | YYYYXXXX yyyyxxxx.
- db $00,$00,$01,$04,$00,$00,$00,$01 ; | YYYY holds the Y-coordinate at which each image starts.
- db $00,$00,$00,$01,$07,$09,$04,$00 ; | XXXX holds the X-coordinate.
- db $01,$07,$00,$00,$00,$03,$08,$15 ; | yyyy holds the value to determine the height of each image, minus 1.
- db $09,$04,$02,$15,$00,$01,$04,$01 ; | xxxx holds the value to determine the width of each image, minus 1.
- db $07,$15,$15,$09,$07,$15,$01,$07 ; | The length of each table's tilemap can be calculated with a simple product.
- db $09,$07,$15,$15,$15,$15,$15,$15 ; | Multiply xxxx+1 with yyyy+1 and you will get that length.
- db $02,$15,$15,$15,$15,$15,$15,$15 ; | In this case: xxxx+1 = $D (or: 13), yyyy+1 = $A (or: 10).
- db $15,$15,$03,$12,$08,$15,$15,$15 ; | 130 tiles to be uploaded. 1 byte per Map16 tile.
- db $15,$15,$15,$15,$00,$01,$07,$15 ; | The header is always 2 bytes, so the entire size here is 132 bytes.
- db $15,$15,$15,$15,$15,$15,$01,$07 ; |
- db $15,$15,$15,$15,$15,$15,$15,$15 ; | This here is the first part of the horizontal cloud images.
- db $02,$15,$15,$15,$15,$15,$15,$15 ; | Starts at Y pos 5, X pos 3. A height of $A/10 blocks, a width of $D/13 blocks.
- db $15,$15,$03,$08,$15,$15,$15,$15 ; |
- db $15,$15,$15,$15 ; /
- DATA_1589C0: db $40,$AD,$00,$00,$03,$08,$15,$15 ; \ This here is the second part...
- db $15,$15,$15,$15,$15,$00,$00,$01 ; | ...of the cloud images that are used in horizontal levels...
- db $07,$15,$15,$15,$15,$15,$15,$15 ; | ...and vary seemingly randomly depending on when you enter the level.
- db $00,$01,$07,$15,$15,$15,$15,$15 ; | Starts at Y pos: 4
- db $15,$15,$15,$00,$02,$15,$15,$15 ; | Starts at X pos: 0
- db $15,$15,$15,$15,$15,$15,$01,$07 ; | Height: $B/11
- db $15,$15,$15,$15,$15,$15,$15,$15 ; | Width: $E/14
- db $15,$02,$15,$15,$15,$15,$15,$15 ; | Total length of tilemap data: 154.
- db $15,$15,$15,$15,$03,$12,$08,$15 ; |
- db $15,$15,$15,$15,$15,$15,$15,$00 ; |
- db $00,$03,$08,$15,$15,$15,$15,$15 ; |
- db $15,$15,$00,$00,$00,$03,$08,$0A ; |
- db $08,$15,$15,$15,$15,$00,$00,$00 ; |
- db $00,$03,$06,$03,$12,$08,$15,$15 ; |
- db $00,$00,$00,$00,$00,$00,$00,$00 ; |
- db $03,$08,$15,$00,$00,$00,$00,$00 ; |
- db $00,$00,$00,$00,$03,$08,$00,$00 ; |
- db $00,$00,$00,$00,$00,$00,$00,$00 ; |
- db $02,$00,$00,$00,$00,$00,$00,$00 ; |
- db $00,$00,$00,$03 ; /
- DATA_158A5C: db $41,$AC,$00,$00,$00,$00,$00,$00 ; \ The third part of these horizontal level cloud images.
- db $01,$04,$00,$00,$00,$00,$00,$00 ; | Starts at Y pos: 4
- db $00,$00,$00,$02,$15,$04,$01,$04 ; | Starts at X pos: 1
- db $01,$04,$01,$11,$04,$01,$07,$15 ; | Height: $B/11
- db $09,$07,$09,$03,$09,$07,$15,$09 ; | Width: $D/13
- db $07,$15,$15,$15,$15,$15,$00,$03 ; | Total length of tilemap data: 143
- db $08,$15,$15,$15,$15,$15,$15,$15 ; |
- db $15,$00,$01,$07,$15,$15,$15,$15 ; |
- db $15,$15,$15,$15,$00,$02,$0A,$08 ; |
- db $15,$15,$15,$15,$15,$15,$15,$00 ; |
- db $03,$06,$02,$15,$15,$15,$15,$0A ; |
- db $08,$15,$00,$00,$00,$03,$08,$0A ; |
- db $08,$0A,$06,$02,$15,$00,$00,$00 ; |
- db $00,$03,$06,$03,$06,$00,$03,$08 ; |
- db $00,$00,$00,$00,$00,$00,$00,$00 ; |
- db $00,$00,$02,$00,$00,$00,$00,$00 ; |
- db $00,$00,$00,$00,$00,$03,$00,$00 ; |
- db $00,$00,$00,$00,$00,$00,$00,$00 ; |
- db $00 ; /
- DATA_158AED: db $20,$CF,$00,$00,$00,$00,$00,$00 ; \ The fourth part and last of these regular horizontal level cloud images.
- db $00,$00,$00,$00,$00,$00,$00,$00 ; | Starts at Y pos: 2
- db $00,$00,$00,$00,$00,$00,$00,$00 ; | Starts at X pos: 0
- db $00,$00,$00,$01,$00,$00,$01,$11 ; | Height: $D/13
- db $04,$00,$00,$00,$00,$01,$04,$01 ; | Width: $10/16
- db $07,$00,$00,$02,$15,$09,$04,$01 ; | Total length of tilemap data: 208
- db $04,$01,$07,$09,$07,$15,$00,$01 ; |
- db $07,$15,$15,$09,$07,$09,$07,$15 ; |
- db $15,$15,$15,$01,$07,$15,$15,$15 ; |
- db $15,$15,$15,$15,$15,$15,$15,$15 ; |
- db $03,$08,$0A,$08,$15,$15,$15,$15 ; |
- db $15,$15,$15,$15,$15,$00,$03,$06 ; |
- db $03,$08,$15,$15,$15,$15,$15,$15 ; |
- db $15,$15,$00,$00,$00,$00,$03,$08 ; |
- db $15,$15,$15,$15,$15,$15,$15,$00 ; |
- db $00,$00,$00,$01,$07,$15,$15,$15 ; |
- db $15,$15,$15,$15,$00,$00,$00,$00 ; |
- db $02,$15,$15,$15,$15,$15,$15,$15 ; |
- db $15,$00,$00,$00,$01,$07,$15,$15 ; |
- db $15,$15,$15,$15,$15,$15,$00,$00 ; |
- db $00,$02,$15,$15,$15,$15,$0A,$08 ; |
- db $15,$15,$15,$00,$00,$00,$03,$08 ; |
- db $0A,$08,$0A,$06,$03,$08,$15,$15 ; |
- db $00,$00,$00,$00,$03,$06,$03,$06 ; |
- db $00,$00,$03,$08,$0A,$00,$00,$00 ; |
- db $00,$00,$00,$00,$00,$00,$00,$00 ; |
- db $03,$06 ; /
- DATA_158BBF: db $00,$EF,$00,$00,$00,$00,$00,$00 ; \ Upper part of the vertical level cloud image.
- db $00,$00,$03,$08,$15,$15,$15,$15 ; | Starts at Y pos: 0
- db $15,$00,$00,$00,$00,$00,$00,$00 ; | Starts at X pos: 0
- db $00,$00,$03,$08,$15,$15,$15,$0B ; | Height: $F/15
- db $00,$00,$00,$00,$00,$00,$00,$00 ; | Width: $10/16
- db $00,$00,$02,$15,$15,$15,$0C,$00 ; | Total length of tilemap data: 240
- db $00,$00,$00,$00,$00,$00,$00,$00 ; |
- db $01,$07,$15,$15,$15,$0D,$00,$00 ; |
- db $00,$00,$00,$00,$00,$00,$00,$02 ; |
- db $15,$15,$15,$15,$15,$00,$00,$00 ; |
- db $00,$00,$00,$00,$01,$11,$07,$15 ; |
- db $0B,$13,$0E,$0B,$00,$00,$00,$00 ; |
- db $00,$00,$00,$02,$15,$15,$15,$0C ; |
- db $15,$09,$07,$00,$00,$00,$00,$00 ; |
- db $00,$00,$03,$08,$15,$0B,$07,$15 ; |
- db $15,$15,$00,$00,$00,$00,$00,$00 ; |
- db $00,$00,$03,$0B,$07,$15,$15,$15 ; |
- db $15,$00,$00,$00,$00,$00,$00,$00 ; |
- db $00,$00,$02,$15,$15,$15,$15,$15 ; |
- db $00,$00,$00,$00,$00,$00,$00,$00 ; |
- db $00,$03,$08,$15,$15,$15,$15,$00 ; |
- db $00,$00,$00,$00,$00,$00,$00,$00 ; |
- db $00,$03,$12,$08,$15,$15,$00,$00 ; |
- db $00,$00,$00,$00,$00,$00,$00,$00 ; |
- db $00,$01,$0D,$08,$15,$00,$00,$00 ; |
- db $00,$00,$00,$00,$00,$01,$04,$01 ; |
- db $07,$15,$0C,$15,$00,$00,$00,$00 ; |
- db $00,$00,$01,$11,$07,$09,$07,$15 ; |
- db $15,$0C,$15,$00,$00,$00,$00,$00 ; |
- db $00,$02,$15,$15,$15,$15,$15,$0B ; |
- db $07,$15 ; /
- DATA_158CB1: db $00,$EF,$0B,$0E,$15,$15,$0B,$15 ; \ Second part of the vertical level cloud image.
- db $15,$0B,$15,$15,$15,$15,$0C,$15 ; | This is also used as the starting image of...
- db $15,$07,$09,$0E,$0B,$07,$15,$0B ; | ... the very first room in 7-1.
- db $07,$15,$15,$15,$15,$0D,$15,$15 ; | Starts at Y pos: 0
- db $15,$15,$09,$07,$15,$15,$0C,$15 ; | Starts at X pos: 0
- db $15,$15,$15,$15,$15,$0D,$15,$08 ; | Height: $F/15
- db $15,$15,$15,$15,$15,$0D,$08,$15 ; | Width: $10/16
- db $15,$15,$15,$15,$15,$0C,$0C,$15 ; | Total length of tilemap data: 240
- db $15,$15,$15,$15,$15,$0C,$15,$15 ; |
- db $15,$15,$15,$0B,$07,$07,$15,$15 ; |
- db $0B,$13,$0E,$0B,$07,$15,$15,$15 ; |
- db $15,$15,$0C,$15,$15,$15,$15,$0C ; |
- db $15,$09,$07,$15,$15,$15,$15,$15 ; |
- db $0B,$15,$15,$15,$15,$15,$0D,$08 ; |
- db $15,$15,$15,$15,$15,$15,$0B,$07 ; |
- db $15,$15,$15,$15,$15,$15,$0C,$15 ; |
- db $15,$15,$15,$15,$0B,$07,$15,$15 ; |
- db $0B,$15,$15,$15,$0B,$15,$15,$15 ; |
- db $15,$15,$15,$0C,$15,$15,$15,$0C ; |
- db $15,$15,$15,$0C,$15,$15,$15,$15 ; |
- db $15,$15,$0D,$08,$15,$0B,$0D,$15 ; |
- db $15,$15,$0D,$08,$0A,$08,$15,$15 ; |
- db $15,$15,$0D,$0B,$15,$15,$15,$15 ; |
- db $15,$15,$0D,$10,$0D,$08,$15,$15 ; |
- db $15,$0B,$07,$15,$15,$15,$15,$15 ; |
- db $15,$15,$0C,$15,$07,$15,$15,$0B ; |
- db $07,$15,$15,$15,$15,$15,$15,$15 ; |
- db $15,$0C,$15,$15,$15,$15,$0C,$15 ; |
- db $15,$15,$15,$15,$15,$15,$15,$0B ; |
- db $07,$15,$15,$15,$0B,$07,$15,$15 ; |
- db $15,$15 ; /
- DATA_158DA3: db $00,$EF,$15,$0B,$0E,$15,$15,$15 ; \ Third part of the vertical level cloud image.
- db $15,$15,$15,$15,$0D,$08,$15,$15 ; | Starts at Y pos: 0
- db $15,$0B,$07,$09,$0E,$15,$15,$15 ; | Starts at X pos: 0
- db $15,$15,$15,$0B,$0D,$08,$15,$15 ; | Height: $F/15
- db $0C,$15,$15,$0F,$15,$15,$15,$0B ; | Width: $10/16
- db $0E,$0B,$07,$15,$0C,$15,$15,$0D ; | Total length of tilemap data: 240
- db $08,$15,$09,$0E,$15,$0B,$07,$09 ; |
- db $15,$15,$0B,$07,$15,$15,$15,$0C ; |
- db $15,$15,$0B,$13,$07,$15,$15,$15 ; |
- db $15,$0C,$15,$15,$15,$0B,$07,$15 ; |
- db $15,$0C,$15,$15,$15,$15,$0B,$13 ; |
- db $07,$15,$0B,$13,$0D,$15,$15,$15 ; |
- db $0D,$08,$15,$15,$15,$0C,$15,$15 ; |
- db $15,$0C,$15,$0B,$15,$15,$15,$15 ; |
- db $0D,$15,$15,$15,$0D,$08,$15,$0B ; |
- db $07,$15,$07,$15,$15,$15,$15,$15 ; |
- db $0C,$15,$15,$15,$0D,$0B,$07,$15 ; |
- db $15,$15,$15,$15,$15,$15,$0B,$15 ; |
- db $15,$15,$15,$15,$0C,$15,$15,$15 ; |
- db $08,$15,$15,$15,$15,$0C,$15,$15 ; |
- db $15,$15,$15,$0D,$08,$15,$15,$07 ; |
- db $15,$15,$15,$15,$0D,$08,$0A,$08 ; |
- db $15,$15,$15,$0D,$14,$08,$15,$15 ; |
- db $15,$15,$15,$15,$0D,$10,$0D,$08 ; |
- db $15,$15,$0B,$07,$0D,$15,$15,$15 ; |
- db $15,$15,$15,$15,$15,$15,$0C,$15 ; |
- db $0B,$07,$15,$15,$15,$15,$15,$15 ; |
- db $15,$0B,$0E,$15,$15,$0C,$15,$0C ; |
- db $15,$15,$15,$15,$15,$15,$15,$15 ; |
- db $0C,$0F,$15,$0B,$07,$0B,$07,$15 ; |
- db $15,$0B ; /
- DATA_158E95: db $00,$EF,$15,$15,$0B,$0E,$15,$15 ; \ Fourth part of the vertical level cloud image.
- db $0D,$08,$15,$15,$15,$15,$15,$0A ; | Starts at Y pos: 0
- db $10,$15,$0B,$07,$09,$0E,$15,$15 ; | Starts at X pos: 0
- db $0D,$08,$15,$15,$15,$0A,$10,$0D ; | Height: $F/15
- db $15,$0C,$15,$15,$0F,$15,$15,$15 ; | Width: $10/16
- db $0C,$15,$15,$15,$0F,$15,$15,$15 ; | Total length of tilemap data: 240
- db $0D,$08,$15,$09,$0E,$15,$0B,$0D ; |
- db $08,$15,$15,$09,$0E,$15,$15,$15 ; |
- db $0C,$15,$15,$0B,$13,$15,$15,$0D ; |
- db $08,$15,$15,$0F,$15,$0E,$0B,$07 ; |
- db $15,$0B,$07,$15,$15,$15,$15,$0D ; |
- db $08,$0A,$10,$15,$09,$07,$15,$15 ; |
- db $0C,$15,$15,$15,$15,$15,$15,$0D ; |
- db $10,$15,$0B,$15,$15,$15,$0B,$07 ; |
- db $15,$15,$15,$15,$15,$15,$15,$15 ; |
- db $0B,$07,$15,$15,$15,$0D,$08,$15 ; |
- db $15,$15,$0B,$0E,$15,$15,$0B,$07 ; |
- db $15,$15,$15,$15,$15,$0D,$08,$15 ; |
- db $15,$0C,$0F,$15,$15,$0C,$15,$15 ; |
- db $15,$15,$15,$15,$15,$0C,$15,$15 ; |
- db $0D,$10,$15,$15,$0D,$08,$15,$15 ; |
- db $15,$15,$15,$15,$0D,$0B,$0E,$15 ; |
- db $15,$15,$15,$15,$0D,$08,$08,$15 ; |
- db $15,$15,$15,$0B,$15,$09,$0E,$15 ; |
- db $15,$15,$15,$0B,$0D,$0C,$15,$15 ; |
- db $15,$15,$0C,$15,$15,$0F,$15,$15 ; |
- db $15,$0B,$07,$15,$0C,$15,$15,$15 ; |
- db $15,$0C,$15,$15,$09,$0E,$15,$15 ; |
- db $0C,$15,$0B,$07,$15,$15,$15,$0B ; |
- db $07,$15,$15,$0A,$10,$15,$0B,$07 ; |
- db $15,$0C ; /
- DATA_158F87: db $00,$EF,$15,$15,$15,$0B,$0E,$15 ; \ Fifth part of the vertical level cloud image.
- db $15,$0B,$15,$15,$0B,$15,$15,$15 ; | Starts at Y pos: 0
- db $15,$15,$15,$15,$0C,$09,$0E,$0B ; | Starts at X pos: 0
- db $07,$15,$0B,$07,$15,$15,$15,$15 ; | Height: $F/15
- db $0D,$15,$0B,$07,$15,$09,$07,$15 ; | Width: $10/16
- db $15,$0C,$15,$15,$15,$15,$15,$15 ; | Total length of tilemap data: 240
- db $0C,$0C,$15,$15,$15,$15,$15,$15 ; |
- db $0D,$08,$15,$15,$15,$15,$0B,$15 ; |
- db $0D,$08,$15,$15,$15,$15,$15,$15 ; |
- db $0C,$15,$15,$15,$15,$0C,$15,$0B ; |
- db $07,$15,$15,$0B,$13,$0E,$0B,$07 ; |
- db $15,$15,$15,$15,$15,$15,$0C,$15 ; |
- db $15,$15,$0C,$15,$09,$07,$15,$15 ; |
- db $15,$15,$15,$15,$0B,$07,$15,$15 ; |
- db $15,$0D,$08,$15,$15,$15,$15,$15 ; |
- db $15,$0B,$15,$0C,$15,$15,$15,$15 ; |
- db $15,$0C,$15,$15,$15,$15,$15,$0B ; |
- db $07,$15,$0D,$08,$15,$15,$15,$0B ; |
- db $15,$15,$15,$15,$15,$15,$0C,$15 ; |
- db $15,$15,$0D,$08,$15,$15,$0C,$15 ; |
- db $15,$15,$15,$15,$15,$0D,$08,$15 ; |
- db $15,$0B,$15,$15,$15,$0D,$08,$0A ; |
- db $08,$15,$15,$15,$15,$0D,$08,$0B ; |
- db $07,$15,$15,$15,$15,$0D,$10,$0D ; |
- db $08,$15,$15,$15,$0B,$0B,$0C,$15 ; |
- db $15,$15,$15,$15,$15,$0C,$15,$07 ; |
- db $15,$15,$0B,$07,$07,$0D,$08,$15 ; |
- db $15,$15,$15,$15,$0C,$15,$15,$15 ; |
- db $15,$0C,$15,$15,$0B,$07,$15,$15 ; |
- db $15,$15,$0B,$07,$15,$15,$15,$0B ; |
- db $07,$15 ; /
- DATA_159079: db $00,$EF,$0C,$15,$15,$15,$0B,$0E ; \ Sixth, last and bottom-most part of the vertical level cloud image.
- db $15,$15,$15,$15,$15,$15,$15,$0D ; | This image is so deep down that few rooms feature it at all.
- db $08,$0D,$15,$15,$0B,$07,$09,$0E ; | One of the rooms (if more than one) that do feature it...
- db $15,$15,$15,$15,$15,$15,$0B,$0D ; | ...include the big vertical room in 6-3, as you climb up your way to the pyramid high in the sky.
- db $15,$0D,$15,$0C,$15,$15,$0F,$15 ; | However, even in a room this big, only the upper part of this image is visible.
- db $15,$15,$0B,$0E,$0B,$07,$15,$15 ; | Starts at Y pos: 0
- db $15,$0C,$0D,$08,$15,$09,$0E,$15 ; | Starts at X pos: 0
- db $0B,$07,$09,$15,$15,$0B,$15,$0B ; | Height: $F/15
- db $07,$15,$0C,$15,$15,$0B,$13,$07 ; | Width: $10/16
- db $15,$15,$15,$15,$0C,$15,$0C,$15 ; | Total length of tilemap data: 240
- db $0B,$07,$15,$15,$0C,$15,$15,$15 ; |
- db $15,$0B,$13,$07,$0B,$15,$15,$0D ; |
- db $15,$15,$15,$0D,$08,$15,$15,$15 ; |
- db $0C,$15,$15,$07,$15,$15,$0B,$15 ; |
- db $15,$15,$15,$0D,$15,$15,$15,$0D ; |
- db $08,$15,$15,$15,$0B,$07,$15,$15 ; |
- db $15,$15,$15,$0C,$15,$15,$15,$0D ; |
- db $0B,$15,$15,$0C,$15,$15,$15,$15 ; |
- db $15,$0B,$15,$15,$15,$15,$15,$0C ; |
- db $15,$0B,$0D,$08,$15,$15,$15,$15 ; |
- db $0C,$15,$15,$15,$15,$15,$0D,$0B ; |
- db $15,$15,$07,$15,$15,$15,$15,$0D ; |
- db $08,$0A,$08,$15,$15,$15,$07,$15 ; |
- db $15,$15,$15,$15,$15,$15,$15,$0D ; |
- db $10,$0D,$08,$15,$15,$15,$15,$15 ; |
- db $15,$15,$15,$15,$15,$15,$15,$15 ; |
- db $15,$0C,$15,$0B,$15,$15,$15,$15 ; |
- db $15,$15,$15,$15,$0B,$0E,$15,$15 ; |
- db $0C,$15,$0C,$15,$15,$15,$15,$15 ; |
- db $15,$15,$15,$0C,$0F,$15,$0B,$07 ; |
- db $0B,$07 ; /
- DATA_15916B: db $00,$00,$00,$01,$01,$00,$00,$00 ; \
- db $00,$00,$00,$01,$00,$00,$00,$00 ; | This table here determines...
- db $00,$00,$00,$00,$00,$00,$01,$01 ; | ...per room in each level (10 rooms in 20 levels)...
- db $01,$00,$00,$00,$00,$00,$00,$01 ; | ...if the Layer 3 Map16 table should hold cloud tiles...
- db $00,$00,$00,$00,$00,$00,$00,$00 ; | ...or door-tiles.
- db $01,$00,$01,$00,$00,$00,$00,$00 ; | The former set can technically make use of the door tiles by using tiles 1A-22...
- db $00,$00,$00,$00,$01,$01,$00,$00 ; | ..., even though it never seems to have been done in the original SMB2,...
- db $01,$00,$00,$00,$00,$00,$01,$00 ; | ... but the latter set cannot make use of the cloud tiles.
- db $01,$00,$00,$00,$00,$00,$00,$00 ; | As a result, where the door tiles are situated at 1A-22 in the first set...
- db $00,$00,$00,$00,$00,$00,$00,$00 ; | ... these tiles are 00-08 in the second set.
- db $01,$00,$01,$00,$00,$00,$00,$00 ; |
- db $01,$00,$00,$00,$00,$00,$00,$00 ; |
- db $00,$00,$00,$00,$00,$00,$00,$00 ; |
- db $01,$00,$00,$00,$00,$00,$01,$00 ; |
- db $00,$00,$00,$00,$00,$01,$00,$00 ; |
- db $00,$01,$00,$00,$00,$00,$00,$00 ; |
- db $00,$00,$00,$00,$00,$00,$00,$00 ; |
- db $00,$00,$00,$00,$00,$00,$00,$01 ; |
- db $00,$01,$00,$00,$00,$00,$00,$01 ; |
- db $01,$00,$00,$00,$00,$00,$00,$00 ; |
- db $01,$00,$01,$00,$00,$00,$00,$00 ; |
- db $00,$00,$00,$00,$01,$00,$00,$01 ; |
- db $01,$00,$00,$00,$00,$00,$00,$00 ; |
- db $00,$00,$00,$00,$00,$00,$00,$01 ; |
- db $00,$00,$00,$01,$00,$00,$00,$00 ; /
- POINTER_159233: dw DATA_159237 ; \ "Cloud" Map16 table (1A-22 are overlap with 00-08 of the following table)
- dw DATA_159307 ; / "Door" Map16 table (used for door light effects)
- DATA_159237: db $3F,$01,$3F,$01,$3F,$01,$3F,$01 ; Tile 00. (Layer 3 Map16 table).
- db $00,$05,$01,$05,$10,$05,$13,$05 ; Tile 01.
- db $02,$05,$03,$05,$13,$05,$13,$05 ; Tile 02
- db $04,$05,$05,$05,$13,$05,$15,$05 ; Tile 03
- db $20,$05,$13,$05,$30,$05,$31,$05 ; Tile 04
- db $13,$05,$13,$05,$32,$05,$33,$05 ; Tile 05
- db $13,$05,$25,$05,$34,$05,$35,$05 ; Tile 06
- db $21,$05,$13,$05,$13,$05,$13,$05 ; Tile 07
- db $13,$05,$11,$05,$13,$05,$13,$05 ; Tile 08
- db $13,$05,$13,$05,$22,$05,$13,$05 ; Tile 09
- db $13,$05,$13,$05,$13,$05,$12,$05 ; Tile 0A
- db $06,$05,$07,$05,$16,$05,$13,$05 ; Tile 0B
- db $08,$05,$09,$05,$13,$05,$13,$05 ; Tile 0C
- db $0A,$05,$0B,$05,$13,$05,$1B,$05 ; Tile 0D
- db $26,$05,$13,$05,$36,$05,$37,$05 ; Tile 0E
- db $13,$05,$13,$05,$38,$05,$39,$05 ; Tile 0F
- db $13,$05,$2B,$05,$3A,$05,$3B,$05 ; Tile 10
- db $14,$05,$13,$05,$24,$05,$13,$05 ; Tile 11
- db $13,$05,$17,$05,$13,$05,$27,$05 ; Tile 12
- db $18,$05,$13,$05,$28,$05,$13,$05 ; Tile 13
- db $13,$05,$19,$05,$13,$05,$29,$05 ; Tile 14
- db $13,$05,$13,$05,$13,$05,$13,$05 ; Tile 15
- db $0C,$1D,$3F,$01,$3F,$01,$3F,$01 ; Tile 16
- db $3F,$01,$3F,$01,$0D,$1D,$3F,$01 ; Tile 17
- db $3F,$01,$3F,$01,$3F,$01,$0E,$1D ; Tile 18
- db $3F,$01,$0F,$1D,$3F,$01,$3F,$01 ; Tile 19
- DATA_159307: db $3C,$21,$3C,$21,$3C,$21,$3C,$21 ; Tile 1A/00
- db $2C,$21,$3F,$21,$3C,$21,$2C,$21 ; Tile 1B/01
- db $3C,$21,$3C,$21,$3C,$21,$3C,$21 ; Tile 1C/02
- db $3C,$21,$3C,$21,$3C,$21,$3C,$21 ; Tile 1D/03
- db $3C,$21,$3C,$21,$3C,$21,$3C,$21 ; Tile 1E/04
- db $3F,$21,$2C,$61,$2C,$61,$3C,$61 ; Tile 1F/05
- db $3C,$61,$3C,$21,$3C,$21,$3C,$21 ; Tile 20/06
- db $1C,$21,$3C,$21,$3C,$21,$3C,$21 ; Tile 21/07
- db $3C,$21,$1D,$21,$3C,$21,$3C,$21 ; Tile 22/08
- POINTER_159371: dw DATA_15937B ; Layer 3 stars placement 0
- dw DATA_159394 ; Layer 3 stars placement 1
- dw DATA_1593A9 ; Layer 3 stars placement 2
- dw DATA_1593C6 ; Layer 3 stars placement 3
- dw DATA_1593DF ; Layer 3 stars placement 4
- DATA_15937B: db $10,$19,$1B,$19,$1E,$19,$24,$16 ; \ The format is simple.
- db $2E,$18,$38,$18,$3E,$16,$52,$17 ; | Every star = 2 bytes. First byte: yyyyxxxx, denotes position.
- db $55,$19,$5C,$17,$70,$19,$A2,$18 ; | Second byte - tile num in Layer 3 Map16. Table is terminated with an $FF byte.
- db $FF ; / This table here places 12 stars on screen.
- DATA_159394: db $13,$17,$2A,$16,$31,$18,$4D,$19 ; \
- db $68,$19,$6B,$17,$6D,$18,$8C,$16 ; | This table here places 10 stars on screen.
- db $BC,$19,$CE,$17,$FF ; /
- DATA_1593A9: db $0D,$16,$23,$19,$30,$17,$35,$18 ; \
- db $38,$16,$5C,$17,$72,$16,$7B,$16 ; | This table here places 14 stars on screen.
- db $80,$19,$8B,$19,$BC,$18,$BF,$19 ; |
- db $D0,$17,$EE,$19,$FF ; /
- DATA_1593C6: db $04,$19,$1E,$18,$20,$19,$2A,$16 ; \
- db $39,$17,$3C,$18,$3E,$19,$71,$18 ; | This table here places 12 stars on screen.
- db $90,$16,$AF,$18,$BE,$17,$E0,$17 ; |
- db $FF ; /
- DATA_1593DF: db $20,$19,$71,$18,$43,$16,$14,$19 ; \
- db $56,$17,$39,$17,$2A,$16,$5B,$18 ; | This table here places 10 stars on screen.
- db $8C,$16,$4E,$19,$FF ; /
- DATA_15EF00: dl DATA_15EF15 ; World 1, grassy image. (Images during 'World x-x' screen.)
- dl DATA_15F0A5 ; World 2, desert image.
- dl DATA_15EF15 ; World 3, grassy image.
- dl DATA_15F235 ; World 4, ice image.
- dl DATA_15EF15 ; World 5, grassy image.
- dl DATA_15F0A5 ; World 6, desert image.
- dl DATA_15F3C5 ; World 7, air image.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement