Patch:Ending sequence (Keen 3)
The finale, or ending sequence in Keen 3 covers everything from after Keen destroys the Patch:Mangling Machine to being returned to the main menu This can be divided into two sections, the award level and the end text. This page is divided into sections in a similar manner and also contains a section affecting the whole sequence.
- 1 Disable
- 2 Award level
- 3 Finale screen
- 4 Endtext window
- 5 External links
This patch disables the entire ending sequence. Instead when Keen wins the game he is taken directly to the finale screen with its text wind. ('The end... for now.')
|Patch: No award level, go straight to finale image|
In this part of the ending sequence Keen appears in a level like the main gameplay. Several text boxes appear explaining he will be given an award for saving the Vorticons and not killing them all. There are then several flashes and the level is exited, leading to the next sequence.
The level contains a number of sprite images and has a few tile replacements occur in it. The level used is level 81.
The level itself
This patch dictates what level is used for the ending sequence. It is unlikely you will want to change this, but it may prove unexpectedly useful.
|Patch: Ending level|
Don't change level until later in end sequence
The following patches stop the level changing to the finale level until later on in the ending sequence. this is done by disabling 'clear screen' calls and as a side effect, nothing is erased. (So if a text window appears onscreen any following windows must be the same size or larger.)
As a result the ending sequence will appear over the boss level screen at the point Keen triggers it, complete with Keen and any remaining sprites. When the screen is cleared all changes will appear at once. (So if screen clearing is delayed until the start of a Vorticon press flash the screen will appear with the tiles changed.)
All lines up to the point required are needed, so deleting the first line will render all following lines useless. If the level change is delayed until the finale screen then the high score\game over prompt will appear over the changed level after the finale image has vanished.
|Patch: Keen 3|
Sprites placed in level
These patches govern what sprite images are displayed in the level. The locations of the sprites are in 16ths of a pixel, meaning one tile is $0100. This means no sprite can be placed further down\left than 16,16 in the level. Because Keen's sprite is sprite 0, it cannot be changed. (There is no variable for it.)
Either or both sprites can be removed from the level.
|Patch: Ending level sprites|
These patches control the text boxes that appear in the level. Each box has five variables to it; its height, width, time it remains to be read, where its text is read from and the text itself. (See Patch:Text patches.) The time remaining is in 144ths of a second (The default time, in seconds is displayed on the patch.) The size of the textbox *and* its location are the same, they are references to locations on the screen for the four sides of the text box in 8x8 squares. Thus to make a textbox start at 3,2 its top and left side will need values of $0006 and $0004.
A small utility to make entirely custom conversations can be downloaded here: https://dl.dropboxusercontent.com/u/3940020/FINTEXT3.zip It allows a patcher to avoid this entire section.
|Patch: First textbox|
%patch $5AA9 $0017W
|Patch: Second textbox|
%patch $5AED $0016W
|Patch: Third textbox|
%patch $5B29 $0016W
|Patch: Thanks textbox|
%patch $5B65 $0014W
The Vorticon Press
This sequence involves a number of 'flashes' (Actually palette changes) that result in several tiles being changed. This gives the impression of the Vortipress taking Keen's photograph. There are five Vortipres in the level, they can be numbered 1-5 from left to right. (Which is the scheme used here.) Their head tiles are at 1,6; 3,6; 6,6; 17,3 and 18,3 in the level.
The Vortipress 'flash' in this order, 4,1,2,5,3. Each flash is a section of code with seven alterable (Blue) variables. The first two are the h and v positions of the camera flash tile, the third is the tile to use for the flash, the fourth and fifth are the h and v positions of the 'return to normal' tile, the sixth is the 'return to normal tile' and the seventh is the pause between the flash and the next flash.
As an example, the code at $5B8A for the first flash (Vortipress 4) is as follow; place flash tile 003A at 0005,0013 then return to normal using tile 0048 at 0005,0013, then wait 14/144 of a second (0.14s) before the next flash.
If the flash and return tiles are not at the same place then you will be able to see both tiles in the level. If the return tile is not the same as the tile the flash tile replaced then the Vortipress will look different after the flash. Finally replacing $A1 $34 with $EB $1A in the third line of a flash patch will stop the second tile being placed at all.
Note that if using the following patches each flash patch must be included in its entirety or errors will occur.
|Patch: Vortipress flashes|
Skip one or more flashes
These are patches for reducing the number of flashes, right down to removing them entirely. The patches always start by removing the earliest flashes first, if the remaining flashes are in the wrong position, they can be changed to fit.
|Patch: Skip flashes|
This patch controls what palette all flashes use. The palette is changed twice; first when the flash starts, and then again when it ends, changing the palette back to the 'normal' game palette. See also Patch:Palette.
|Patch: Flash palettes|
Flashes are instant
This patch affects all flashes, and makes it such that they occur much quicker. It eliminates the brief pause they take to occur. This is separate from the pause between flashes which can be patched above.
|Patch: Flashes are instant|
This patch controls what sound is played when all flashes occur. It is also possible to remove the sound entirely.
|Patch: Flash sounds|
This screen appears after the level sequence ends. It is a fullscreen picture. There is a pause before it appears (See last patch above.) When the finale image is loaded there will be another pause before the end textbox appears. The name of the finale file is a text string just like the text in the window patches above. It must be a valid DOS filename to be loaded, it is not case sensitive and must have the extension. (See also Patch:Files and filenames.)
A new level is loaded for the finale and end texts to be displayed over, by default this is the Vortipress level, but it doesn't have to be. It will only really be visible at the game winning 'game over, high score' screen before Keen is returned to the main Menu.
|Patch: Finale screen|
Wait before finale screen
This patch controls the wait after the Vortipress flashes end before the finale screen appears.
|Patch: Finale screen wait|
Pause at finale screen before textbox appears
This is the pause that allows the player to look at the finale screen before the 'The end' textbox appears and fills with text.
|Patch: Pause at finale screen before textbox appears|
The 'The End' text box
This box appears over the finale screen. When Keen presses a key he goes to the end text proper. There is a long pause before it appears (See last patch above.)
|Patch: Tanks textbox|
%patch $5D1E $0018W
This fullscreen window appears after the finale image. By default nothing can be seen behind it and it displays a large amount of story text (See Patch:End text.) If the endtext window is made shorter the finale level can be seen behind it. (Making it more useful.) It also appears with a 'congratulations' sound followed by the same sound as when Keen first meets Mortimer McMire. Both sounds can be blocked.
|Patch: End text textbox|
|Patch: Don't play sounds|
- A small utility for making custom finale conversations: https://dl.dropboxusercontent.com/u/3940020/FINTEXT3.zip