Have you ever wanted to Put different music for your Titlescreen, but didnt know how to edit the time it shows up? Well now you can! start by opening you sonic1.asm
Go to Title_LoadText You will see this:
On this Line:
Modify 178 to how many frames you want, Example:
The Code above is how long you need it too be if you modify the music to 8B
Now, to edit the music being played:
in the same area look for:
Modify 8A to any sound you wish.
And thats how to edit the time the Title screen is displayed and how to edit the music it plays.
Go to Title_LoadText You will see this:
- Code:
Title_LoadText:
move.w (a5)+,(a6)
dbf d1,Title_LoadText ; load uncompressed text patterns
move.b #0,($FFFFFE30).w ; clear lamppost counter
move.w #0,($FFFFFE08).w ; disable debug item placement mode
move.w #0,($FFFFFFF0).w ; disable debug mode
move.w #0,($FFFFFFEA).w
move.w #0,($FFFFFE10).w ; set level to GHZ (00)
move.w #0,($FFFFF634).w ; disable pallet cycling
bsr.w LevelSizeLoad
bsr.w DeformBgLayer
lea ($FFFFB000).w,a1
lea (Blk16_GHZ).l,a0 ; load GHZ 16x16 mappings
move.w #0,d0
bsr.w EniDec
lea (Blk256_GHZ).l,a0 ; load GHZ 256x256 mappings
lea ($FF0000).l,a1
bsr.w KosDec
bsr.w LevelLayoutLoad
bsr.w Pal_FadeFrom
move #$2700,sr
bsr.w ClearScreen
lea ($C00004).l,a5
lea ($C00000).l,a6
lea ($FFFFF708).w,a3
lea ($FFFFA440).w,a4
move.w #$6000,d2
bsr.w LoadTilesFromStart2
lea ($FF0000).l,a1
lea (Eni_Title).l,a0 ; load title screen mappings
move.w #0,d0
bsr.w EniDec
lea ($FF0000).l,a1
move.l #$42060003,d0
moveq #$21,d1
moveq #$15,d2
bsr.w ShowVDPGraphics
move.l #$40000000,($C00004).l
lea (Nem_GHZ_1st).l,a0 ; load GHZ patterns
bsr.w NemDec
moveq #1,d0 ; load title screen pallet
bsr.w PalLoad1
move.b #$8B,d0 ; play title screen music
bsr.w PlaySound_Special
move.b #0,($FFFFFFFA).w ; disable debug mode
move.w #$178,($FFFFF614).w ; run title screen for $178 frames
lea ($FFFFD080).w,a1
jsr DeleteObject2
move.b #$E,($FFFFD040).w ; load big Sonic object
move.b #$F,($FFFFD080).w ; load "PRESS START BUTTON" object
move.b #$F,($FFFFD0C0).w ; load "TM" object
move.b #3,($FFFFD0DA).w
move.b #$F,($FFFFD100).w
move.b #2,($FFFFD11A).w
jsr ObjectsLoad
bsr.w DeformBgLayer
jsr BuildSprites
moveq #0,d0
bsr.w LoadPLC2
move.w #0,($FFFFFFE4).w
move.w #0,($FFFFFFE6).w
move.w ($FFFFF60C).w,d0
ori.b #$40,d0
move.w d0,($C00004).l
bsr.w Pal_FadeTo
On this Line:
- Code:
move.w #$178,($FFFFF614).w ; run title screen for $178 frames
Modify 178 to how many frames you want, Example:
- Code:
move.w #$365,($FFFFF614).w ; run title screen for $365 frames
The Code above is how long you need it too be if you modify the music to 8B
Now, to edit the music being played:
in the same area look for:
- Code:
move.b #$8A,d0 ; play title screen music
Modify 8A to any sound you wish.
And thats how to edit the time the Title screen is displayed and how to edit the music it plays.