Page 1 of 1

Auto Scrolling Levels

Posted: Thu Mar 11, 2010 10:29 am
by lemm
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

Posted: Thu Mar 11, 2010 10:53 am
by Tulip
Hahaa, awesome, makes way for new Mario style levels!

Posted: Thu Mar 11, 2010 5:56 pm
by shikadi
seems like an awesome thing to build around.

Posted: Fri Mar 12, 2010 3:34 am
by Kdash
Is it possible to only use it in some levels?

Posted: Fri Mar 12, 2010 5:14 am
by lemm
genius314 wrote:Is it possible to only use it in some levels?
No. Also, a related version which adds a breeze to keen's movement.

Code: Select all

%ext ck1
%version 1.31

%patch $1259 $E8 $F896W

%end

#set right x boundary to tile 22
%patch $800 $B8 $16 $00

#add boundary checking to pogo ground
%patch $40E7 $E8 $7B $F2

#update keen movement boundaries
%patch $3367                             $00 $66 $A1 $2C $82 $66 $3B $06 $4A
             $56 $7F $21 $C7 $06 $3C $82 $10 $02 $C7 $06 $40 $82 $30 $00 $E8
             $15 $F9 $A9 $04 $00 $74 $0D $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 $1E $68 $20 $82 $1E $68 $DA $6E
             $B9 $36 $00 $E8 $15 $AE $C7 $06 $3C $82 $00 $02 $E8 $08 $F8 $A9
             $04 $00 $74 $06 $C7 $06 $3C $82 $00 $FE $A1 $3C $82 $66 $98 $66
             $01 $06 $24 $82 $E8 $94 $F5 $66 $A1 $2C $82 $66 $05 $80 $00 $00
             $00 $66 $3B $06 $D0 $6E $7D $0B $33 $C0 $A3 $40 $82 $A3 $42 $82
             $E8 $E9 $0D $1E $68 $DA $6E $1E $68 $20 $82 $B9 $36 $00 $E8 $CA
             $AD $EB $1F
             
%end

Posted: Fri Apr 23, 2010 3:24 pm
by KeenRush
You're a machine, lemm. Damn, this is too cool not to be used, I have to do something with this.

Posted: Sat Apr 24, 2010 11:18 am
by levellass
You're a machine, lemm.
WHO TOLD YOU- Oh. You were kidding. Right. :p


Can we have no scrolling, but still the wrap-around level effect?

Posted: Sat Apr 24, 2010 9:38 pm
by lemm
probably...

Posted: Wed Jun 16, 2010 11:29 pm
by Stealthy71088
I'm been trying to simulate a believable wraparound effect for a long time with teleporters.

This patch--- Levellord helped me turn some elevators into a group of enemies that would chase keen through a level similarly to this. It was a very messy business, and created a number of problems, but I loved the effect.

Posted: Wed Aug 18, 2010 3:31 am
by Paramultart
Oh wow... I will be certainly utilizing this patch in my next mod project.

Has anyone made a mod with this patch yet?