Patch:Vorticon (Keen 3)
Vorticons are dangerous grunt enemies found in Keen 3. This page lists patches relating to Vorticon sprites. It is divided into sections relating to the various sprite properties the patches involve. Being fluent with various sprite patch pages will help when working with these patches.
Contents |
Sprite Type
Vorticons use sprite type 2 which means they kill Keen on contact. They do not otherwise interact with other sprites.
| Patch: Keen 3 |
|
Sprite Behavior
The Vorticon has three behaviors. They can walk\jump, slide along the ground or just walk towards Keen. They chase Keen and can be hard to evade. This is actually achieved in a very simple manner, the Vorticon starts out walking randomly\towards Keen and will randomly jump either normal or 'high' After jumping high it will land and animate so it appears as if it is 'looking' for Keen. After that it will return to walking about randomly.
The first behavior seeks Keen and jumps, the second is jumping\falling\sliding on the ground (In that order) after a jump has started. The third is just standing still and animating, and appears to be the cause of Vorticons sticking into walls.
Behaviors: $414AW #Walk, jump randomly, turn when hitting walls $4227W #Vorticon fall or slide along ground $4275W 'Look for Keen' $42D0W #Vorticon collision
| Patch: When spawned |
%patch $3C4E $414AW |
| Patch: In level |
%patch $419D $4227W |
Complete Vorticon search for Keen code
This is the complete code for the Vorticon while searching. On the first line the speed is set to 0. On the second line the animations frames and animation are set. On the third the time the Vorticon searches for and the speed after searching are set. On the last line is the Vorticon's behavior after searching and calls to tile collision and gravity.
| Patch: Vorticon look for Keen code |
|
Speed and Jump Height
The default speed of Vorticons is +-250 when jumping. They will head towards Keen when spawned by default. It is notable that one speed was given the wrong value, the 'quick left' speed should have been $FF88 but instead was given the 'slow left' speed value.
| Patch: Starting speeds |
%patch $3C78 $005AW |
| Patch: In level |
|
Sprite Collision
Vorticons interact with Keen's and the enemy shots (Including the Vortimom's and enemy shooter shots. This produces a shot Vorticon. (See behavior section.) The shot Vorticon also resets its collision and behavior, the new collision, used for most dead sprites ignores all other sprites, the new behavior likewise is just 'fall an animate'
Vorticons have a 'strength' of 1 that is not readily apparent, but this can be altered. It pays to have some knowledge of Patch:Jump conditions when working with these patches.
Basic patches
These are the bare bones patches relating to the Vorticon's collision.
| Patch: Keen 3 |
%patch $3C53 $42D0W |
Complete collision code
This is the complete collision code for the Vorticon. it contains (and is thus incompatible with) many of the patches above. It pays to have some knowledge of Patch:Vorticons Sprite Parameters when working with these patches.
The check for Keen's shot appears on the first line, if the colliding sprite is Keen's shot type, the next check is skipped. On the second line the game checks for the enemy shot type, if it is not present, the rest of the code is skipped. Now a third check is performed, apparently this checks if the colliding sprite has a strength of 2, and if so, skips over a jump to the end of the code. (The point of this is not known, and it is very inelegant.)
The end of the second line is where the death code begins. First sound $0027 is played. (Replacing $E8 $8676W $59 with $90 $90 $90 $90 will stop it being played.) On the third line the animation speed is set to 0 and the misc variable B set to 2. On line 3 the animation is set to $4B. These three changes are used when the 'dead sprite' behavior is run, to make the sprite animate as it dies, then stop. ($0002 is the number of frames to animate in this special case.) Finally on the third line the sprite's collision is set to $6A00 (Dead sprite collision) and its behavior to $7EC0 (Dead sprite behavior.)
| Patch: Keen 3 |
|
Animations
| Patch: When spawned |
%patch $3C7D $0047W |
| Patch: In level |
%patch $4236 $0049W |
Sounds
These are the sounds the sprite uses.
| Patch: Keen 3 |
%patch $42ED $27 |
Sprite spawning
This is the complete code for the Vorticon's spawning. As it contains many patches elsewhere on this page, it is incompatible with them.
The Vorticon has a normal sort of spawn code. its sprite type is set to 2, its behavior to walking Vorticon, its collision to 'make shot Vorticon' with a strength of 1. Finally it looks for keen and moves towards him using a speed of +-250.
| Patch: Vorticon spawn |
|