Patch:Screen

From KeenWiki
Jump to: navigation, search

This page covers patches that affect how the screen moves or appears in Keen games. The screen is also sometimes known as the 'camera' and its setup is a fundamental to how the game is played. Patches here involve both how the camera follows the player as well as any patches that alter scrolling in levels.

Patches that relate to the colors of things onscreen (And their changing, fading in or out, lights off or on, etc) are found at Patch:Palette, the command prompt-like screen that can be made to appear during gameplay is located at Patch:Boss Cheat


Contents

How closely the screen follows Keen

The screen follows the player by moving when the player is a certain distance from the screen boundary. That is, these patches control how close to the edge of the screen the player can get when not at a level edge. The values are in 256ths of a pixel, which is astonishingly precise. (It is best to round values to the nearest pixels, though all default values are rounded to the nearest tile.) Thus the player must be $3000 or $30 pixels (48 pixels, = 3 tiles) from the top of the screen before the screen moves up.

Patch: Keen 1
#How closely the screen follows Keen
%patch $3472 $B000W
#Scroll Right lag
%patch $34C0 $9000W
#Scroll Left lag
%patch $350C $7000W
#Scroll Down lag
%patch $355A $3000W
#Scroll Up lag

Patch: Keen 2
#How closely the screen follows Keen
%patch $62B4 $B000W
#Scroll Right lag
%patch $6302 $9000W
#Scroll Left lag
%patch $634E $7000W
#Scroll Down lag
%patch $639C $3000W
#Scroll Up lag

Patch: Keen 3
#How closely the screen follows Keen
%patch $6B17 $B000W
#Scroll Right lag
%patch $6B65 $9000W
#Scroll Left lag
%patch $6BB1 $7000W
#Scroll Down lag
%patch $6BFF $3000W
#Scroll Up lag


Screen doesn't follow dead Keen

By default the screen does not follow Keen when he has died; instead the level restarts when he moves offscreen. It is possible to make the screen follow Keen even when he is dead and\or not when he is doing other things. See also Patch:Jump conditions.

Patch: Screen doesn't follow dead Keen
#Camera don't follow player if using this behavior: Keen 1
%patch $342F $41F8W $75
#Camera don't follow player if using this behavior: Keen 2
%patch $6271 $703AW $75
#Camera don't follow player if using this behavior: Keen 3
%patch $6AD4 $789EW $75


Screen follows dead Keen

This patch makes the screen always follow Keen, dead or not. When dead Keen will head to the top of the level by default, only exiting to the map when he reaches the level top.

Patch: Screen follows dead Keen
#Screen follows dead Keen: Keen 1
%patch $342B $EB $09
#Screen follows dead Keen: Keen 2
%patch $626D $EB $09
#Screen follows dead Keen: Keen 3
%patch $6AD0 $EB $09


Well of Wishes scrolling

This patch changes the well of wishes scrolling so that it behaves like other levels in Keen 4; this has the side effect of allowing Keen to exit the level by walking off the level edges (just like normal levels.)

Patch: Keen 4
#WoW exits and scrolls normally
%patch $905B $90 $90

This patch allows the modder to change what levels behave as WoW-type levels. By default only level 13 is a WoW level

Patch: Keen 4
#Which levels are WoW levels
%patch $905B $74 $0D


Split screen

This patch puts Keen into split screen mode, dividing the screen vertically into two. Sadly both views are the same so this patch currently has little utility outside of curiosity.

Patch: Primitive splitscreen patch
#Keen 1 spitscreen
%patch $6E47 $0E
#Keen 2 spitscreen
%patch $3046 $0E
#Keen 3 spitscreen
%patch $2FE1 $0E