Exit level by going offscreen on top

Request patches for Keens 4-6.
Post Reply
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Exit level by going offscreen on top

Post by Nisaba »

questions, questions, questions...

is it possible to exit a level by leaving the screen not on the right or left but on the top?
bye, bye and up to the sky.
I wouldn't even mind to fiddle a door usage, which catapults Keen to a left or right offscreen location.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

This should be possible yes, meaning you'd need to block the tops of your levels if you didn't want Keen to be able to simply jump right out of them. Is there any specific episode you want this for?
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Post by Nisaba »

indeed there is. Keen 4. Well of Wishes to be exact.
cheers
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

For the WOW only? This is a little more tricky. I think this'll need another day's work.
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Post by Nisaba »

well, for my personal needs it only has to be this particular level. but of course it might be interesting for a general usage.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

Righty-o, this patch fiddles the WoW (And map level!) scrolling so Keen can win the level when he goes off of the level top. It's a bit long but I had to shift stuff to make space.

Code: Select all

#W.O.W scrolling code -exit when off level top
%patch $8553 $55 $8B $EC $83 $EC $02 $56 $57 $8B $76 $06 $83 $3E $A7DAW  $00
             $74 $03 $E9 $012FW  $8B $44 $24 $3B $06 $C74BW  $77 $0C $C7 $06
             $7A70W  $0002W  $5F $5E $8B $E5 $5D $CB

                                 $A1 $C753W  $05 $0900W  $39 $44 $22 $73 $11
             $8B $44 $22 $8B $16 $53 $C7 $81 $C2 $0900W  $2B $C2 $8B $F8 $EB
             $21 $A1 $C753W  $05 $0C00W  $39 $44 $26 $76 $14 $8B $44 $26 $05
             $10 $00 $8B $16 $53 $C7 $81 $C2 $0C00W  $2B $C2 $8B $F8 $EB $02
             $33 $FF $A1 $C751W  $05 $00 $05 $39 $44 $24 $73 $12 $8B $44 $24
             $8B $16 $51 $C7 $81 $C2 $00 $05 $2B $C2 $89 $46 $FE $EB $22 $A1
             $C751W  $05 $00 $07 $39 $44 $28 $76 $12 $8B $44 $28 $8B $16 $51
             $C7 $81 $C2 $00 $07 $2B $C2 $89 $46 $FE $EB $05 $C7 $46 $FE $00
             $00 $0B $FF $75 $09 $83 $7E $FE $00 $75 $03 $E9 $0091W  $81 $FF
             $00 $01 $7C $05 $BF $FF $00 $EB $09 $81 $FF $00 $FF $7F $03 $BF
             $01 $FF $81 $7E $FE $00 $01 $7C $07 $C7 $46 $FE $FF $00 $EB $0C
             $81 $7E $FE $00 $FF $7F $05 $C7 $46 $FE $01 $FF $FF $76 $FE $57
             $9A $165413DDRL     $83 $C4 $04 $E9 $02B9W
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Post by Nisaba »

    • הַלְּלוּיָהּ
thank you so much!
gonna try that code out as soon as I have fixed my total-hardware-crash...
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Post by Nisaba »

so it turns out that this patch works beautifully within WOW.
a little side effect to this is, that by now Keen won't get killed if falling down a gap and touching the bottom-offscreen (in a non WOW-Level of course). but that's no problem at all.



Do you provide a non WOW solution as well?
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

This extension works for regular levels (As well as letting Keen win by going off of the sides.) It will need to be used with the first patch, it's not standalone.

Code: Select all

#Exit off top in normal levels too
%patch $869D $55 $8B $EC $83 $EC $08 $56 $57 $8B $76 $06 $83 $3E $DA $A7 $00
             $74 $03 $E9 $02B6W  $8B $44 $24 $3B $06 $C74BW  $72 $14
                         $8B $44 $22 $3B $06 $C74BW  $72 $0B $A1 $C749W
             $05 $1400W  $39 $44 $26 $76 $03 $E9 $FE9FW
Post Reply