Patch:Ending sequence (Keen 6)

From KeenWiki
Jump to: navigation, search

The ending sequence in Keen 6 occurs after Keen has saved Molly, the screen goes dark, the ending sequence of text and images plays, followed by the high scores level. The ending sequence is mostly due to a loaded text chunk that allows the game to load images and text in a defined sequence. This chunk is handled completely uniquely, not allowing the player just to scroll through it as fast as they wish, but making them wait until the page is 'ready.'

Keen 6 text chunk

This is the EGAGRAPH chunk used for the ending sequence. Everything that happens after Keen wins the game is dependent on this chunk. Note that when altering this value an associated variable has to be altered by twice the amount. (As an example, changing the chunk to $1286, or one less means changing the variable to $9FF9 or two less.)

Patch: Keen 6
#Ending sequence document
%patch $E31D $15AEW
%patch $E329 $A185W
#Memory variable 1
%patch $E3E2 $A185W
#Memory variable 2

Ready for next page images

When the current page of graphics and text has loaded and is ready for the player to press a key to move to the next page, a flashing animation of two images appears int he lower right of the page indicating this. By default this animation is of a dark\light green arrow. Both of these images and their location can be altered.

Both images must be cached first before being displayed.

Patch: Ending sequence 'page ready' animation
#Cache images for display
%patch $E305 $001CW
#Dark green arrow
%patch $E311 $001BW
#Light green arrow
#Display Dark green arrow at 184,298
%patch $E369 $001BW
%patch $E36D $00B8W
#Vertical location
%patch $E371 $012AW
#Horizontal location
#Display Dark green arrow at 184,298
%patch $E39C $001CW
%patch $E3A0 $00B8W
#Vertical location
%patch $E3A4 $012AW
#Horizontal location

Don't show animation

This patch stops both images being displayed when the page is ready. This can make it difficult for the player to tell when they can press a key, however in some situations it may be desirable. Using just one line of the patch will make only one image appear, which is more subtle.

Patch: Don't show ending sequence 'page ready' animation
#Don't show ending sequence 'page ready' animation
%patch $E374 $90 $90 $90 $90 $90 %patch $E3A7 $90 $90 $90 $90 $90

Music played during ending sequence

This is the song played in the ending sequence. Due to the way music works it is actually the level whose music is played. See Patch:Music.

Patch: Keen 6
#Ending Sequence (Faster)
%patch $E33C $0001W

Don't change music for ending sequence

This patch prevents the ending sequence having its own music.

Patch: Keen 6
#Don't change music for ending sequence
%patch $E33B $EB $0A