don't click here

Water, Water Everywhere II

Discussion in 'Engineering & Reverse Engineering' started by Quickman, Feb 21, 2004.

Thread Status:
Not open for further replies.
  1. Quickman

    Quickman

    be attitude for gains Tech Member
    5,595
    18
    18
    :x
    omg porjcet
    Could anyone explain to me how water works in Sonic 2 and Sonic 3? I would like to attempt to fix the age-old 2-player bug in Sonic 2.
     
  2. AeonicB

    AeonicB

    Oldbie
    814
    12
    18
    Freelance
    What water bug of Sonic 2? o.o?

    (Sorry, just curious ^^; )
     
  3. Quickman

    Quickman

    be attitude for gains Tech Member
    5,595
    18
    18
    :x
    omg porjcet
    In Sonic 2 if you try and load a level with water in two-player mode it glitches rather nastily.
     
  4. Hayate

    Hayate

    Tech Member
    The water has a different palette, and the game tells the Genesis to switch palettes when it gets to the y position of the water level. That's two palette switches. In 2-player mode, it would have to switch it 4 times, and since it can't do that, it glitches. ;)
     
  5. Qjimbo

    Qjimbo

    Your friendly neighbourhood lemming. Oldbie
    I like the sound of Sonic 2 with water in each level, could be fun! :D But I think you'll have to forget the idea of 2 player water zones because if the bug could be fixed, Sonic Team surely would have fixed it. Good luck on your hack ;)
     
  6. LOst

    LOst

    Tech Member
    4,891
    8
    18
    The 2 player split screen uses the hblank interrupt to draw two screens. The water effect uses hblank too for switching the palette. Both are using the same technique, and since copying 4 palettes at one vblank is impossible while making the split screen hack, there will be no way for you to fix anything that can't be fixed.
     
  7. ICEknight

    ICEknight

    Researcher Researcher
    ...Unless you make the water completely transparent in the 2 player mode, I guess.
     
Thread Status:
Not open for further replies.