########## PALETTES AND BORDERS ########## ------------------------------------------------------------------------------- #Change the default colors: #This is the color palette: 16 entries of r, g, b (each 0-63) %patch $13054 00 00 00 #black 00 00 42 #blue 00 42 00 #green 00 42 42 #cyan 42 00 00 #red 42 00 42 #magenta 42 21 00 #brown 42 42 42 #bright gray 21 21 21 #gray 21 21 63 #bright blue 21 63 21 #bright green 21 63 63 #bright cyan 63 21 21 #bright red 63 21 63 #pink 63 63 21 #yellow 63 63 63 #white #Set the palette when we go into graphics mode %patch $6E46 $E8 $D3 $D5 $90 $90 #Code to set graphics mode and set the palette %patch $441C $B8 $0D $00 $CD $10 $B8 $12 $10 $B9 $08 $00 $BB $00 $00 $8C $DA $8E $C2 $BA $04 $00 $CD $10 $BB $18 $00 $BA $1C $00 $CD $10 $C3 #Include this part if the "Change background tiles" patch is not used #It gives us 36 spare bytes for the palette-setting code %patch $4409 $B8 $14 $01 $26 $81 $3F $31 $01 $73 $03 $B8 $8F $00 $26 $89 $07 $E9 $5C $01 ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- #Change the palette colours; there are 4 default palettes, you can create and use #a new pallette for the lights off, or four new palettes for fading in/out #[fade in/out and lights defualt use the same palettes] the last value is the #Border color used with the palette #Compatible with above colorchange patch! #Colors as follows: $1F, white; $1E, yellow; $19, light purple; $1C, light red; # $1B, light teal; $1A, light green; $19, light blue; $19, light green # $07, light grey; $06, brown; $05, dark purple; $04, dark red # $03, dark teal; $02 dark green; $01, dark grey $00, black #Four border colors not found in the palette: %patch $4A62 $03 #Color after killing a vorticon %patch $6F9D $03 #Color after killing vorticon commander #The two colors that the border flashes when a Vorticon dies %patch $4A7D $0E %patch $4A85 $03 #Default palettes: %patch $15558 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $03 #Black %patch $15569 $00 $00 $00 $00 $00 $00 $00 $00 $00 $01 $02 $03 $04 $05 $06 $07 $03 #Fade 2 [Used by lights off] %patch $1557A $00 $00 $00 $00 $00 $00 $00 $00 $18 $19 $1A $1B $1C $1D $1E $1F $03 #Fade 1 %patch $1558B $00 $01 $02 $03 $04 $05 $06 $07 $18 $19 $1A $1B $1C $1D $1E $1F $03 #'Normal' colours ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- #Make a new palette for lights off: %patch $13084 $1F $1F $1F $1F $1F $1F $1F $1F #New Palette $00 $00 $00 $00 $00 $00 $00 $00 $00 %patch $35C9 $34 $00 #Make Lights off use new palette ------------------------------------------------------------------------------- #How fast palettes change: %patch $6C91 $01 $00 #Pause BEFORE palettes change 1 %patch $6C4D $01 $00 #Black screen between light->dark and dark->light %patch $6C77 $08 $00 #Speed palettes change 1 %patch $6CA6 $08 $00 #Speed palettes change 2 %patch $6C62 $08 $00 #Speed palettes change 3 %patch $6CBB $08 $00 #Speed palettes change 4 %patch $6CD0 $08 $00 #Speed palettes change 5 ########## PARTS ########## See ITEMS ########## POGO [KEEN] ########## See also SPRITE PATCHES -> ANIMATIONS -> KEEN #Keen always has a pogo %patch $900E $01 $00 #Remove Keen's pogo after he exits a level %patch $8041 $90 $90 $90 $90 #Keen flies with pogo... %patch $3F4E $EB #NOT even with GOD mode %patch $3F4E $90 $90 #Even without GOD mode #Pogo heights: %patch $3F40 $C8 $00 #Normal %patch $3F3C $FF $FF #High (The smaller, the higher he goes) %patch $3F31 $90 #Always pogo high %patch $3F43 $90 #Never pogo high #Pogo stops when Keen hits the ground. %patch $409B $90 $90 #'Keen Dreams' jump cheat %patch $3F3D $90 #Trying to pogo exits level %patch $3F5D $EB #Keen hovers when alt is pushed and is moving up %patch $3F46 $90 #Keen hovers in the air when pressing alt %patch $3F57 $90 %patch $3F4E $90 $90 #Keen hovers in the air when pressing ctrl %patch $3F39 $90 #Keen floats upward, or downward [jetpack pogo] %patch $3F82 $90 #Keen flies with pogo, but harder to control %patch $3F4E $90 $90 %patch $3F5C $90 #Keen jetpacks, but much easier to control %patch $3F4E $90 $90 %patch $3F5B $90 #Keens pogo becomes a rocket %patch $3F7F $90 #Pogo acts as an antigravity boots %patch $3F50 $90 %patch $3F4E $90 ########## POGO [TILE] ########## #Getting a pogo exits the level and loses a life %patch $4F36 $60 $00 #Pogo kills Keen, but without the death sprite. %patch $44AB $5F $06 $C8 $AA $00 $00 #What the pogo gives INSTEAD of a pogo: %patch $44AB $C7 $06 $C8 $AA $xx $00 #xx shots %patch $44AB $FF $06 $C6 $AA $90 $90 #Extra life %patch $44AB $C9 $06 $C8 $AA $00 $00 #Finnish level, give all keys and the battery %patch $44AB $7E $06 $C8 $AA $00 $00 #NOTHING! %patch $44AB $CE $06 $C8 $AA $00 $00 #Kill Keen, but give him whiskey and a key %patch $44AB $9F $06 $C8 $AA $00 $00 #Two keys, battery and whiskey, exits level ########## POINTS ########## See ITEMS ########## PRESENTING AN ID SOFTWARE... SEQUENCE ########## #Skip: %patch $A262 $01 #Keen goes straight to world map after sequence %patch $A265 $90 #skip sequence, go straight to menu #Positions: (H position in 8x8 blocks, v in pixels) %patch $6FA9 $0F $00 #One moment x position %patch $A1FA $16 $00 #an h pos %patch $A1F6 $10 #an v pos? %patch $A1E0 $10 $00 #Rising apogee h %patch $A20C $10 $00 #Still Apogee h %patch $A221 $12 $00 #Presentation h cordinates %patch $A21D $20 $00 #Presentation v co ordinates. %patch $A22F $63 $00 #'of an' vertical pos %patch $A233 $15 $00 #of an h pos %patch $A241 $72 $00 #Id software v pos %patch $A245 $13 $00 #h pos %patch $A253 $9F $00 #production v pos %patch $A257 $13 $00 #h pos #sprites %patch $6FA1 $14 #One moment %patch $A1EF $01 #An %patch $A1D8 $00 #Apogee rising %patch $A204 $01 #Apogee still %patch $A22B $0E #'of an' %patch $A23D $01 #ID software %patch $A24F $01 #production #Remove %patch $A1FD $90 #An %patch $A224 $90 $90 $90 #No presentation %patch $A248 $90 $90 $90 #No id software bitmap %patch $A25A $90 $90 $90 #No production bitmap #Misc patches %patch $A1F5 $01 #Apogee rises, then vibrates in place, alone %patch $A20A $90 #sign rises, then apogee appears in tl corner, along with everything else %patch $A1E3 $90 #stop Apogee sign rising ########## PRESS F1 FOR HELP ########## #'Press F1 for help' sprite %patch $97C0 $01 #Don't show Press F1 for help sprite %patch $97C9 $90 #Press F1 for help y position %patch $97C4 $01 #Press F1 for help sprite x position %patch $97C8 $01 $00 ########## PREVIEWS ########## #Change the time that the two previews take #Time value is in 64ths of a second (approx) #$012C = 300 = ~4.6 seconds %patch $96F2 $2C $01 %patch $9713 $2C $01 #Stop the previews images showing: %patch $9702 $7E %patch $96E5 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 $90 %patch $9717 $C8 #Stop just image 1: %patch $96EA $96 %patch $96F2 $01 $00 #Or image 2: %patch $9702 $7E %patch $9713 $01 $00