Difference between revisions of "Port Sonic 2 Level Select to Sonic 1"
From Sonic Retro
DelayHacks (talk | contribs) |
DelayHacks (talk | contribs) |
||
Line 50: | Line 50: | ||
move.w #$DF,d1 | move.w #$DF,d1 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | ==Other== | ||
+ | To edit music in level select, go to "s2_menu.asm" and find: | ||
+ | <syntaxhighlight lang="asm"> | ||
+ | Level_Select_Menu_snd = $0081 | ||
+ | </syntaxhighlight> | ||
+ | replace "81" with music what you want in level select (# of music + 80). | ||
+ | To edit sound after "all emeralds" code find: | ||
+ | <syntaxhighlight lang="asm"> | ||
+ | Emerald_Snd = $0093 | ||
+ | </syntaxhighlight> | ||
+ | and replace "93" with sound what you want. To edit ring sound after "debug mode" code find: | ||
+ | <syntaxhighlight lang="asm"> | ||
+ | Ring_Snd = $00B5 | ||
+ | </syntaxhighlight> | ||
+ | and replace "B5" with sound what you want. | ||
Thats all. All permissions for this level select code goes to [[Esrael]]. | Thats all. All permissions for this level select code goes to [[Esrael]]. | ||
{{Imagetag | {{Imagetag |
Revision as of 07:30, 28 October 2017
Guide by DelayHacks. This is my first guide. You need to download level select by Esrael:
Download Sonic 2 Level Select in Sonic 1
File: s2menu.rar (29 kB) (info)
|
and extract him to disassembly.
Getting Level select in game
After download and add to disassembly go to "sonic1.asm" and go to end and you see this
; end of 'ROM'
EndOfRom:
END
add this line before "; end of 'ROM'"
include 's2_menu.asm' ; Sonic 2 Level Select
now go to
Title_ChkLevSel:
tst.b ($FFFFFFE0).w ; check if level select code is on
beq.w PlayLevel ; if not, play level
btst #iA,(Joypad|Held).w ; check if A is held
beq.w PlayLevel ; if not, play level
moveq #2,d0
bsr.w PalLoad2 ; load level select pallet
lea ($FFFFCC00).w,a1
moveq #0,d0
move.w #$DF,d1
and replace with this
Title_ChkLevSel:
tst.b ($FFFFFFE0).w ; check if level select code is on
beq.w PlayLevel ; if not, play level
btst #iA,(Joypad|Held).w ; check if A is held
beq.w PlayLevel ; if not, play level
jmp Level_Select_Menu ; if yes, goto Sonic 2 level select
moveq #2,d0
lea ($FFFFCC00).w,a1
moveq #0,d0
move.w #$DF,d1
Other
To edit music in level select, go to "s2_menu.asm" and find:
Level_Select_Menu_snd = $0081
replace "81" with music what you want in level select (# of music + 80). To edit sound after "all emeralds" code find:
Emerald_Snd = $0093
and replace "93" with sound what you want. To edit ring sound after "debug mode" code find:
Ring_Snd = $00B5
and replace "B5" with sound what you want. Thats all. All permissions for this level select code goes to Esrael.
|
Result |
---|