Changing the number of flying floor tiles
Page 1 of 1
20150426
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:
$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
}
Founder- Since : 2012-06-19
Similar topics
» The flying floor tiles enemy to be less annoying!
» Room number in RAM?
» spike floor damage
» Question: Overworld Tiles
» Peg switch tiles like CHRT?
» Room number in RAM?
» spike floor damage
» Question: Overworld Tiles
» Peg switch tiles like CHRT?
Permissions in this forum:
You cannot reply to topics in this forum