Cleanup collision tables expanded file organization
This commit is contained in:
@@ -4,37 +4,42 @@
|
|||||||
; By Jeimuzu & Zarby
|
; By Jeimuzu & Zarby
|
||||||
; -----------------------------------------------------------------------------------
|
; -----------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
org $0E942A
|
||||||
|
JSL Dungeon_LoadCustomTileAttr
|
||||||
|
RTL
|
||||||
|
|
||||||
; *$7142A-$71458 LONG
|
org $338000
|
||||||
Dungeon_LoadCustomTileAttr:
|
|
||||||
{
|
; *$7142A-$71458 LONG
|
||||||
; Loads tile attributes that are specific to a tileset type.
|
Dungeon_LoadCustomTileAttr:
|
||||||
; The group loaded is dependent on the value of $0AA2.
|
{
|
||||||
PHB : PHK : PLB
|
; Loads tile attributes that are specific to a tileset type.
|
||||||
|
; The group loaded is dependent on the value of $0AA2.
|
||||||
REP #$30
|
PHB : PHK : PLB
|
||||||
|
|
||||||
LDA $0AA2 : AND.w #$00FF : ASL A : TAX
|
|
||||||
|
|
||||||
LDA group_offsets, X : TAY
|
|
||||||
|
|
||||||
LDX.w #$0000
|
|
||||||
|
|
||||||
.load_loop
|
REP #$30
|
||||||
|
|
||||||
LDA.w group00, Y : STA.l $7EFF40, X ; 1st block
|
LDA $0AA2 : AND.w #$00FF : ASL A : TAX
|
||||||
LDA.w group00+$40, Y : STA.l $7EFF80, X ; 2nd block
|
|
||||||
|
LDA group_offsets, X : TAY
|
||||||
INY #2
|
|
||||||
|
LDX.w #$0000
|
||||||
INX #2 : CPX.w #$0040 : BNE .load_loop
|
|
||||||
|
.load_loop
|
||||||
SEP #$30
|
|
||||||
|
LDA.w group00, Y : STA.l $7EFF40, X ; 1st block
|
||||||
PLB
|
LDA.w group00+$40, Y : STA.l $7EFF80, X ; 2nd block
|
||||||
|
|
||||||
RTL
|
INY #2
|
||||||
}
|
|
||||||
|
INX #2 : CPX.w #$0040 : BNE .load_loop
|
||||||
|
|
||||||
|
SEP #$30
|
||||||
|
|
||||||
|
PLB
|
||||||
|
|
||||||
|
RTL
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
; 00 = No collision
|
; 00 = No collision
|
||||||
@@ -138,6 +143,7 @@ group03:
|
|||||||
db $02, $02, $02, $01, $02, $02, $08, $08, $08, $08, $09, $09, $09, $09, $09, $09 ; Animated Tiles
|
db $02, $02, $02, $01, $02, $02, $08, $08, $08, $08, $09, $09, $09, $09, $09, $09 ; Animated Tiles
|
||||||
|
|
||||||
|
|
||||||
|
; Goron Mines
|
||||||
group04:
|
group04:
|
||||||
|
|
||||||
; 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
|
; 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
; -----------------------------------------------------------------------------------
|
|
||||||
; HOOK FOR INDOOR EXPANDED COLLISION TABLES
|
|
||||||
;
|
|
||||||
; By Jeimuzu & Zarby
|
|
||||||
; -----------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
org $0E942A
|
|
||||||
JSL Dungeon_LoadCustomTileAttr
|
|
||||||
RTL
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
incsrc CollisionTablesExpanded_Hook.asm
|
|
||||||
|
|
||||||
org $338000
|
|
||||||
|
|
||||||
incsrc CollisionTablesExpanded.asm
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
; Dungeon Object Handler
|
; Dungeon Object Handler
|
||||||
|
|
||||||
incsrc Collision/main.asm
|
incsrc Collision/CollisionTablesExpanded.asm
|
||||||
|
|
||||||
org $018262 ;object id 0x31
|
org $018262 ;object id 0x31
|
||||||
dw ExpandedObject
|
dw ExpandedObject
|
||||||
@@ -127,7 +127,7 @@ NewObjectsCode:
|
|||||||
CustomDrawConfig:
|
CustomDrawConfig:
|
||||||
{
|
{
|
||||||
PHA
|
PHA
|
||||||
LDA $03 : CMP.w #$000E : BEQ .custom_config
|
LDA $03 : AND #$00FF : CMP.w #$000E : BEQ .custom_config
|
||||||
|
|
||||||
TYA : LSR : AND #$00FF
|
TYA : LSR : AND #$00FF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user