Auto Scrolling Levels
Posted: Thu Mar 11, 2010 10:29 am
This patch makes your levels automatically scroll rightwards in the x direction, until they can scroll no more. Keen is pushed along if he comes in contact with the left screen edge. He is killed if trapped in between the edge and a tile with a blocking left edge. The default scrolling speed is around 1/2 of keen's walk speed. If you wish to change that, modify the last three patches.
Code: Select all
%ext ck1
%version 1.31
#set right x boundary to tile 22
%patch $800 $B8 $16 $00
#add boundary checking to pogo grond
%patch $40E7 $E8 $7B $F2
#update keen movement boundaries
%patch $3368 $66 $A1 $2C $82 $66 $3B $06 $4A
$56 $7F $21 $C7 $06 $3C $82 $10 $02 $C7 $06 $40 $82 $40 $00 $E8
$15 $F9 $A9 $04 $00 $74 $3E $33 $C0 $A3 $40 $82 $A3 $42 $82 $E8
$1A $0F $EB $31 $66 $A1 $34 $82 $66 $3B $06 $AC $5D $7C $26 $C7
$06 $3C $82 $A0 $FF $66 $A1 $AC $5D $66 $A3 $34 $82 $EB $16
#auto screen scroll
%patch $3458 $66 $A1 $D0 $6E $66 $3B $06 $BE
$7F $7D $15 $66 $B8 $00 $02 $00 $00 $66 $01 $06 $D0 $6E $66 $01
$06 $4A $56 $66 $01 $06 $AC $5D $EB $78
#scroll speed
%patch $3465 $00 $02 $00 $00
#keen right screenedge pushback (256ths pixel)
%patch $33A3 $A0 $FF
#keen left screenedge pushback (256ths pixel)
%patch $3377 $10 $02
#keen left screenedge velocity reset
%patch $337D $40 $00
%end