***************************************** 10.) Complex Sprite Patches ***************************************** These patches do complex and interesting things with sprites in Keen 1. Most of these are thanks to Lemm, who figured out the level loop. Good job Lemm! Patches are listed in no proper order enclosed between dashed lines. Patches have been made compact and are thus less 'technical' than when originally posted on Keen:Modding. (See Keen:Modding for more details on these patches) Note that patches may require the latest version of CK1Patch to work. ------------------------------------------------------------------------------- Keen-sprite collision pointers. These are for sprite types (E.g Yorps are type 1) NOT in-level sprite numbers (Keen is 1, not 255 for example.) Simply change one of these to point to whatever code you want. %patch $469E $45E2W #Yorp %patch $46A0 $4662W #Garg %patch $46A2 $4662W #Vort %patch $46A4 $4646W #Butler Bot %patch $46A6 $4646W #Tank %patch $46A8 $4699W #Unused %patch $46AA $4699W #Chain %patch $46AC $4699W #Unused %patch $46AE $4699W #Keen's shot %patch $46B0 $4663W #Tank bot's shots %patch $46B2 $4699W #Icecubettes %patch $46B4 $4699W #Zapzots %patch $46B6 $4699W #Unused %patch $46B8 $4674W #Icecubes EXAMPLE: In the following patch we make the Garg go to new code by changing the third line: #jump to riding code on garg contact: %patch $46A0 $55F1W ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- #Keen can ride sprites: %patch $46A0 $55F1W #Here we make this affect the Garg %patch $55EF $EB $4A #Make space %patch $55F1 $66 $8B $5D $10 $66 $8B $C3 $66 $05 $00 $EE $FF $FF $66 $89 $44 $08 $66 $8B $C3 $66 $05 $00 $EF $FF $FF $66 $89 $44 $10 $66 $8B $C3 $66 $05 $00 $0B $00 $00 $66 $89 $44 $10 $66 $31 $C0 $66 $31 $DB $89 $44 $1E $90 $90 $90 $89 $44 $22 $8B $45 $20 $89 $44 $20 %patch $5631 $E9 $F065W #jump to cs:4699 (end of keen collision routine) ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- #keen rides butler bots %patch $467A $57 $56 $E8 $E9BDW $59 $59 $B8 $0002W #sound on contact #$EB $D #to play sound $EB $13 #to not play sound (must include one of the $EB lines) #Cubes don't interact with any other sprite %patch $213E $2045W ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- #butler/tankbots push keen smoothly (meep style) %patch $4646 $57 $56 $E8 $EB92W $59 $59 $B8 $0002W #sound on contact #$EB $41 #to play sound $EB $47 #to not play sound (must include one of the $EB lines) ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- #Existing ice cubes continue flight even offscreen %patch $3340 $83 $3E $20 $82 $09 $7C $13 $83 $3E $20 $82 $0F $74 $0C $90 #Cannon fires, even offscreen, only makes shooting sound while onscreen %patch $207A $28 #4A %patch $2084 $1E #40 %patch $208F $13 #35 %patch $2099 $09 #2B #Cube doesn't make smash sound %patch $229D $90 $90 $90 -------------------------------------------------------------------------------