Basic Questions and Answers Thread

Discussion in 'Discussion & Q&A' started by Malevolence, Jul 7, 2009.

  1. Giovanni

    Giovanni Well-Known Member Member

    Joined:
    Apr 16, 2015
    Messages:
    161
    Location:
    Italy
    Out of curiosity, what makes Labyrinth Zone Act 3 loop vertically? I plan on doing something with this information.
     
  2. Iso Kilo

    Iso Kilo Is it a fox? Is it a wolf? It's Kilo! Member

    Joined:
    Oct 9, 2017
    Messages:
    378
    Location:
    A warm and lovely place~
    I made a guide that answers your question! The TL;DR is that the level's top boundary in most levels are set to $0000, but levels that wrap vertically are set to $FF00
     
    TheInvisibleSun likes this.
  3. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,814
    Location:
    italy
    edit: I'm stupid, please trash.
     
  4. Giovanni

    Giovanni Well-Known Member Member

    Joined:
    Apr 16, 2015
    Messages:
    161
    Location:
    Italy
    I can't locate where in Sonic 1's code it is determined that a level should vertically wrap at the Y position of $7FF. Anyone care to point me to the right direction?
     
  5. Iso Kilo

    Iso Kilo Is it a fox? Is it a wolf? It's Kilo! Member

    Joined:
    Oct 9, 2017
    Messages:
    378
    Location:
    A warm and lovely place~
    From what I can tell, it's just an inherent aspect of the way the game handles boundaries. Seeing as the boundary is set to a negative number, the game just goes ahead and wraps back.
     
  6. RandomName

    RandomName Newcomer Member

    Joined:
    Jun 3, 2020
    Messages:
    16
    Location:
    Russia
    In Sonic 1 label loc_66CC handles wrapping over top of the screen and label loc_6700 handles wrapping under bottom of the screen