Changing the number of flying floor tiles

Go down

20150426

Post 

Changing the number of flying floor tiles Empty Changing the number of flying floor tiles




Well, it's easy enough to change the quantity of tiles that come up.

$4BA1C: C9 16 F0 06

change this to

$4BA1C: C9 XX B0 06

Where XX is between 0 and 0x16, and represents the number of tiles it forces to spawn out of the floor. This will cause the FlyingTileFactory overlord to self terminate earlier than in a vanilla rom.

Code for reference:
Code:

    ; *$4B9E8-$4BA29 JUMP LOCATION
    Overlord_FlyingTileFactory:
    {
       LDA $0B08, X : CMP $E2
       LDA $0B10, X : SBC $E3 : BNE .outOfRange

       LDA $0B18, X : CMP $E8
       LDA $0B20, X : SBC $E9 : BNE .outOfRange

       DEC $0B30, X

       LDA $0B30, X : CMP.b #$80 : BEQ .spawn_flying_tile

       RTS

    .resetTimer

       LDA.b #$81 : STA $0B30, X

       RTS
    
    .spawn_flying_tile
    
       JSR Overlord_SpawnFlyingTile : BMI .resetTimer
        
       INC $0B28, X
        
       LDA $0B28, X : CMP.b #$16 : BEQ .selfTerminate
        
       LDA.b #$E0 : STA $0B30, X
        
       RTS
    
    .selfTerminate
    
       STZ $0B00, X
    
    .outOfRange
    
       RTS
    }
avatar
Founder

Changing the number of flying floor tiles Image212

Since : 2012-06-19

Back to top Go down

Share this post on: reddit
- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum