Patch:Map (Keen 5)

From KeenWiki
Jump to navigation Jump to search

This page contains patches that relate to the map in Keen 5, that is, things that can only be done on the map. See also Patch:Keen on map (Galaxy).

What level is the map

These patches alter what level the map is. There are several aspects to this which potentially allows multiple map levels.

Level game starts in

This patch causes the player to start the game in a different level than the map. (Level 0) The values of the level variable given here will start the game in the default High Scores level.

There is one minor side effect to this patch; the high word of the Extra Keen At score is not set to 0. What this means is that the game cannot start with an Extra Keen At score of more than 65'000 or so without a slightly more complicated patch being used.

Keen 5

#Keen starts game in the BWB
%patch $5C8F {$6F68W} [$000FW]

No flags\signs on map

In Keen 5 the flags or 'K signs' appear on a level's holder when that level is successfully beaten. The patch given here makes it so nothing is spawned when levels are first completed.

Keen 6: No flipping flags

#No flags - Keen 5
%patch $60EA $EB $11

Keen can also die on map

This is a tweak to the game's code that creates a third death action that appears only on the map. It does this by repurposing an (apparently) unused door entering action and flag-flipping sprite. The special level here is shown in blue. (If it is not the map level than some other sprite must be used for the death action since the flag is only cached on the map.)

This patch works with the default death code and changes the two default death actions, so is incompatible with any patch that alters or limits them.

Keen 5

#Keen can die on map
%patch $3103C $010CW $010CW $0002W $0000W $0000W $0064W $0000W $0000W
              $0AAF14E7RL   $00000000L    $090B17B5RL   $0CFCW
%patch $C048 $05 $B8 $0BB2W  $EB $03 $B8 $0BD0W  $83 $3E {$9E55W}  [$00] {$75} $03
             $B8 $0CFCW  $50 $90 $90 $90

Win game on entering a specific level from map

This patch causes the game to automatically be won when the player attempts to enter a certain level from the map. Instead of playing the level entry sound the player is taken directly to the ending sequence. As a side effect this moves the level entry sound, which becomes the final blue value in the patch.

The specific level is the first blue value, on line 1. Here it is level 13, $0D. The value $000FW is what wins the game and is the level state the game is set to.

Keen 5

#Automatically win game when entering level 13:
%patch $D2E6 $0F920545RL
%patch $FE65 $55 $8B $EC $56 $8B $76 $06 $83 $3E $6F68W  [$0D] {$75} $06 $C7 $06
             $6F70W [$000FW]   $EB $0C $B8 [$000CW]  $50 $9A $196E09EFRL     $83
             $C4 $02 $5E $5D $CB