[Easy] Centering Sonic 1's Title Screen

Discussion in 'Tutorials' started by Iso Kilo, Feb 6, 2020.

  1. Iso Kilo

    Iso Kilo Local Wolf-Fox Member

    Oct 9, 2017
    Small Town in BC, Canada
    While it is difficult to notice without actually comparing the distances, you can find that Sonic 1's title screen is actually off center by 16 or so pixels.
    Off center.png
    Fixing this issue is actually quite easy, it's simply changing about 4 values.
    Fixing the emblem is a bit more difficult than Sonic, the Press Start Button message, and TM, as it is a tilemap instead of an object. To fix it, go to Title_LoadText: and locate
            move.l    #$42060003,d0
            moveq    #$21,d1
            moveq    #$15,d2
    This handles the information relating to the tilemap, including it's X position. Simply change #$42060003 to #$42080003. That will center the "Sonic the Hedgehog" emblem, and Sega copyright.
    Oh dear, now all the objects are off-centered by a great amount. Fixing these will be a lot easier

    Compared to the emblem, getting Sonic's position down will be a lot easier. This is because the X position value isn't bunched together with other information. Simply go to Obj0E: and find this
            move.w    #$F0,8(a0)

    $F0 is the position of the object, and 8(a0) is the X-position variable. All you need to do is add 8 to the position. This will shift Sonic to the right by, obviously, 8 pixels.
    Press Start Button & TM
    Just like Sonic, this is just adding 8 pixels to the X position.
    Find Obj0F: and this time, find 2 lines.

            move.w    #$D0,8(a0)

            move.w    #$170,8(a0)
    As described, add 8 to the position values. (That's $D8 and $178 for those of you who can't count.)

    With everything done, it should result in this!