Sonic 2 Dynamic Palettes (GitHub/Hg disassembly)

Discussion in 'Showroom Archive' started by Stardust Gear, May 27, 2014.

Thread Status:
Not open for further replies.
  1. Stardust Gear

    Stardust Gear A Programmer Member

    Joined:
    Apr 27, 2014
    Messages:
    134
    Let's see how to use different palettes in act 1 and act 2 of sonic 2.
     
    Search PalLoad1, PalLoad2, PalLoad3_Water, PalLoad4_Water.
    Replace every "lea (PalPointers).l,a1" in this:




    move.b (Current_Act).w,d1 ;Check  Current Act

    cmpi.b #0, d1  ;Is it act 1?

    beq.s @act1      ;Load Act 1 Palettes

    cmpi.b #1, d1  ;Is it act 2?

    beq.s @act2      ;Load Act 2 Palettes

    @act1:

    lea (PalPointers).l,a1

    jmp P* ;Continue

    @act2:

    lea (PalPointers2).l,a2

    jmp P* ;Continue

    P*:

    ;[the continue of PalLoad]



    Now copy and paste the array "PalPointers" and name the copy "PalPointers2".

    Rename every palette in PalPointers2!

    Create palettes for Act 2:




    Pal_EHZ2: BINCLUDE "art/palettes/EHZ2.bin"



    and config SonED2 or SonLVL for act 2 palettes.
     
    Last edited by a moderator: Jul 10, 2014
  2. N30member

    N30member non-pro user btw Member

    Joined:
    Feb 15, 2014
    Messages:
    216
    Location:
    Kazakhstan
    This guide is similar to PsychoSk8r's one... How about Xenowhirl's disassembly? Most people use it. But anyway, tutorial will be useful to some people.
     
Thread Status:
Not open for further replies.