-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
183 additions
and
28 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
pushpc | ||
|
||
org $03B221 | ||
bowling_ball_init_hijack: | ||
jml bowling_ball_load | ||
warnpc $03B226 | ||
org $03B226 | ||
bowling_ball_init_end: | ||
org $03B2A6 | ||
bowling_ball_init_return: | ||
|
||
org $03B23E | ||
bowling_ball_write_hijack: | ||
jml bowling_ball_write | ||
warnpc $03B244 | ||
org $03B244 | ||
bowling_ball_write_end: | ||
|
||
org $03B1ED | ||
bowling_ball_tilemap: | ||
db $00,$04,$00 | ||
db $08,$0C,$08 | ||
db $00,$04,$00 | ||
db $15,$14,$10 | ||
|
||
pullpc | ||
|
||
bowling_ball_load: | ||
lda.b #!dss_id_bowling_ball | ||
jsl find_and_queue_gfx | ||
bcs .loaded | ||
jml bowling_ball_init_return | ||
.loaded | ||
lda #$70 | ||
sta !15EA,x | ||
jml bowling_ball_init_end | ||
|
||
bowling_ball_write: | ||
phx | ||
lda.w bowling_ball_tilemap,x | ||
pha | ||
and #$03 | ||
tax | ||
lda.l .offset,x | ||
sta $0F | ||
pla | ||
lsr #2 | ||
tax | ||
lda.l !dss_tile_buffer,x | ||
ora $0F | ||
plx | ||
sta $0302|!addr,y | ||
jml bowling_ball_write_end | ||
|
||
.offset | ||
db $00,$01,$10,$11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ pushpc | |
|
||
org $02D8A9 | ||
bubble_item_props: | ||
db $85,$85,$05,$08 | ||
db $85,$85,$05,$09 | ||
pullpc | ||
|
||
bubble_item: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
init: | ||
jml dynamic_spriteset_init | ||
%invoke_sa1(dynamic_spriteset_init) | ||
rtl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
;######################################################################### | ||
;# Customization defines | ||
|
||
;# Location of the configuration used in the main patch. | ||
!dss_config = $02D60B | ||
|
||
;# Main RAM define | ||
;# Requires at least 1745 (0x6D1) bytes of consecutive free RAM | ||
;# or you could edit the defines below to make some of them not consecutive | ||
!dss_ram = read3(!dss_config) | ||
|
||
;#################################################################### | ||
;# RAM defines | ||
|
||
;# Holds the maximum amount of tiles used by DSS. | ||
;# Can be modified. Can't be over 64 or bad things will happen. | ||
;# 1 byte | ||
!dss_maximum_tiles #= !dss_ram+64+32+32+32+32+32+1024+1 | ||
|
||
;# Map of possible VRAM destinations for sprite tiles | ||
;# FF is treated as invalid. | ||
;# 64 bytes | ||
!dss_vram_dest #= !dss_ram+64+32+32+32+32+32+1024+1+1+1+256+2+2 | ||
|
||
init: | ||
rep #$30 | ||
ldx.w #bowser_fight_vram_destinations_end-bowser_fight_vram_destinations-2 | ||
- | ||
lda.l bowser_fight_vram_destinations,x | ||
sta.l !dss_vram_dest,x | ||
dex #2 | ||
bpl - | ||
sep #$30 | ||
|
||
lda.b #bowser_fight_vram_destinations_end-bowser_fight_vram_destinations | ||
sta.l !dss_maximum_tiles | ||
rtl | ||
|
||
bowser_fight_vram_destinations: | ||
db $00,$0A,$0C,$0E,$40,$4A,$4C,$60 | ||
db $6A,$6C,$C0,$C2,$C4,$C8,$CA,$CC | ||
db $CE,$E0,$E2,$E4,$E6,$E8,$EA,$EC | ||
db $EE | ||
.end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
;######################################################################### | ||
;# Customization defines | ||
|
||
;# Location of the configuration used in the main patch. | ||
!dss_config = $02D60B | ||
|
||
;# Main RAM define | ||
;# Requires at least 1745 (0x6D1) bytes of consecutive free RAM | ||
;# or you could edit the defines below to make some of them not consecutive | ||
!dss_ram = read3(!dss_config) | ||
|
||
;#################################################################### | ||
;# RAM defines | ||
|
||
;# Holds the maximum amount of tiles used by DSS. | ||
;# Can be modified. Can't be over 64 or bad things will happen. | ||
;# 1 byte | ||
!dss_maximum_tiles #= !dss_ram+64+32+32+32+32+32+1024+1 | ||
|
||
;# Map of possible VRAM destinations for sprite tiles | ||
;# FF is treated as invalid. | ||
;# 64 bytes | ||
!dss_vram_dest #= !dss_ram+64+32+32+32+32+32+1024+1+1+1+256+2+2 | ||
|
||
load: | ||
rep #$30 | ||
ldx.w #lemmy_wendy_fight_vram_destinations_end-lemmy_wendy_fight_vram_destinations-2 | ||
- | ||
lda.l lemmy_wendy_fight_vram_destinations,x | ||
sta.l !dss_vram_dest,x | ||
dex #2 | ||
bpl - | ||
sep #$30 | ||
|
||
lda.b #lemmy_wendy_fight_vram_destinations_end-lemmy_wendy_fight_vram_destinations | ||
sta.l !dss_maximum_tiles | ||
rtl | ||
|
||
lemmy_wendy_fight_vram_destinations: | ||
db $C0,$C2,$C4,$C6,$C8,$CA,$CC,$CE | ||
db $E0,$E2,$E4,$E6,$E8,$EA,$EC,$EE | ||
db $80,$82,$84,$86,$88,$8A,$8C,$8E | ||
db $A0,$A2,$A4,$A6,$A8,$AA | ||
.end |