The second great PATCH: Keen 2 ending sequence

Completed patches for Keen2.
Post Reply
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

The second great PATCH: Keen 2 ending sequence

Post by levellord »

I got shown a small subroutine by my brother, so now I can control Keens rocket with precision. So I patched the entire ending sequence just for the hell of it. [Its a lot simpler, taking only 1/3rd the time.] Here ya go:

Code: Select all

[color=green]####
#The vorticon ship and Earth
###

#Level used for flight to Earth
%patch $5181 $51 $00

#Rocket location use only $00 $xx values
%patch $51A5 $00 $70 #horizontal [careful, easy to push offscreen]
%patch $51AE $00 $30 #vertical
#Rocket sprite used as window text appears
%patch $51B6 $84 $00

#Bottom of 1st space box at
%patch $51CF $18 $00
#Right side of box
%patch $51D3 $24 $00
#Top of box at:
%patch $51D7 $11 $00
#Left side of box at
%patch $51DB $04 $00
#Pause between window and next pahse
%patch $521E $2C $01

#Text is read from;
%patch $51E8 $21 $2A
#Second line from:
%patch $51F1 $42 $2A
#Third line from:
%patch $51FA $62 $2A
#Fourth line from:
%patch $5203 $80 $2A
#Fifth line from:
%patch $520C $9F $2A
#Sixth line from:
%patch $5215 $BA $2A

#Sprite used for rocket going to and landing on Earth
%patch $52C9 $84 $00
#Pause between Keen landing on Earth and next window
%patch $52EB $78 $00

#Frequency of 4-right routine [Bigger Keen flies down less, faster]
%patch $5253 $78 $00
#Magnitude of subroutine to go right [higher Keen moves right more and longer]
%patch $525D $02 $00
#Disable move 4 pixels right subroutine [Rocket moves mostly downwards]
%patch $525F $90 $90 $90 $90 $90 $90 $90 $90 $90 $90

#Magnitude of down subroutine 00 is horizontal, higher = faster, longer
%patch $5285 $01 $00
#Frequency of 4-down routine [Bigger Keen flies down less, real 1337]
%patch $527B $78 $00
#Disable move 4 pixels down subroutine [Rocket moves down less and slower]
%patch $5287 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90

#Bottom of 2nd box at
%patch $533F $18 $00
#Right side of box
%patch $5343 $24 $00
#Top of box at:
%patch $5347 $11 $00
#Left side of box at
%patch $534B $04 $00
#Pause between window and vortiship leaving
%patch $5385 $78 $00

#Text is read from;
%patch $5358 $D3 $2A
#Second line from:
%patch $5361 $F1 $2A
#Third line from:
%patch $536A $12 $2B
#Fourth line from:
%patch $5373 $30 $2B
#Fifth line from:
%patch $537C $4C $2B

#Screen location location [Try to use only $00 $xx values]
%patch $5309 $00 $C0 #horizontal
%patch $530F $00 $00 #vertical?
#Vortiship location [Try to use only $00 $xx values]
%patch $5314 $00 $A0 #314? horizontal position
%patch $531E $00 $10 #vertical
#Sprite used for vortiship while window text is appearing:
%patch $5326 $48 $00
#Sprite used for vortiship limping back to Vorticon VI [AFTER window text]
%patch $53AA $48 $00

####
#Keens house
####

#the program looks here for the filename FINALE.CK2 [Be careful when fiddling]
%patch $53D8 $6C $2B
#The filename at that location:
%patch $1A2EC "finale.ck2"
#Level used for endtext and game over [Yes its picked now; Keens house
#is drawn over top of it.]
%patch $53E4 $51 $00

#Bottom of 1st Keens house box at
%patch $53F0 $16 $00
#Right side of box
%patch $53F4 $1D $00
#Top of box at:
%patch $53F8 $12 $00
#Left side of box at
%patch $53FC $04 $00
#Pause between windows
%patch $5421 $78 $00

#Text is read from;
%patch $5406 $77 $2B
#Second line from:
%patch $5410 $8C $2B
#Third line from:
%patch $5418 $A0 $2B

#Stop first textbox appearing
%patch $53F0 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90
             $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90
             $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90
             $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90

#Bottom of 2nd box at
%patch $542D $18 $00
#Right side of box
%patch $5431 $1D $00
#Top of box at:
%patch $5335 $10 $00
#Left side of box at
%patch $5339 $04 $00
#Pause between windows
%patch $5482 $78 $00

#Text is read from;
%patch $5443 $B3 $2B
#Second line from:
%patch $544C $CD $2B
#Third line from:
%patch $5455 $E7 $2B
#Fourth line from:
%patch $545E $FA $2B
#Fifth line from:
%patch $5467 $0F $2C
#Sixth line from:
%patch $5470 $27 $2C
#Seventh line from:
%patch $5479 $3D $2C

#Stop second textbox appearing [t3h big patch]
%patch $542D $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90
             $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90
             $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90
             $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90
             $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90
             $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90

#Bottom of 3rd box at
%patch $548E $17 $00
#Right side of box
%patch $5492 $1D $00
#Top of box at:
%patch $5496 $10 $00
#Left side of box at
%patch $549A $04 $00
#Pause between windows
%patch $54C8 $78 $00

#Text is read from;
%patch $54A4 $49 $2C
#Second line from:
%patch $54AD $5D $2C
#Third line from:
%patch $54B6 $77 $2C
#Fourth line from:
%patch $54BF $8F $2C

#Stop third textbox appearing
%patch $548E $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90
             $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90
             $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90
             $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90
             $90 $90 $90 $90 $90

#Bottom of 4th box at
%patch $54D4 $14 $00
#Right side of box
%patch $54D8 $10 $00
#Top of box at:
%patch $54DC $12 $00
#Left side of box at
%patch $54E0 $04 $00
#Pause between windows
%patch $54F3 $78 $00

#Text is read from;
%patch $54EA $A9 $2C

#Stop fourth textbox appearing
%patch $54D4 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90
             $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90
             $90 $90 $90 $90 $90 $90 $90 $90 $90 $90

#Bottom of To be continued box at
%patch $54FF $05 $00
#Right side of box
%patch $5503 $20 $00
#Top of box at:
%patch $5507 $03 $00
#Left side of box at
%patch $550B $0C $00
#Pause between windows
%patch $551E $90 $01

#Text is read from;
%patch $5515 $B4 $2C

####
#Endtext and stuff
####

#Endtext window bottom [Window overlies Keens rocket flight level]
%patch $5545 $16 $00 #i.e, no backdrop visible]
#As a reminder, the level used as a backdrop: [See way above]
%patch $53E4 $51 $00
#Endtext sound [max value $40]
%patch $555A $29 $00
#Active [scrolling] copy of endtext window bottom; Is basically
#where the endtext window wil reappear when you scroll
%patch $5566 $16 $00 #I.e right over the 'old' window[/color]
Now the rocket in Keen 1 can also be controlled, but its much harder, I may work on it later.
Kdash
Posts: 405
Joined: Sat Feb 26, 2005 5:45 pm

Post by Kdash »

Any chance those unused pics (keen standing and the flying bwb) can be used?
KeenRush
Patch Maker
Posts: 1988
Joined: Sun Aug 31, 2003 2:52 pm
Location: Sand Yego
Contact:

Post by KeenRush »

Hey, that's great! :) (Your bro's cool.)
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

Any chance those unused pics (keen standing and the flying bwb) can be used?
Its possible if I can overwrite say, a textbox with the window clicking code.
Kdash
Posts: 405
Joined: Sat Feb 26, 2005 5:45 pm

Post by Kdash »

Well, if it'll be too much work, dont bother. I dont need it - i was just wondering. (btw i thought this was for keen 1. this should be in the other topic)
Post Reply