Color change

Completed patches for Keen2.
Post Reply
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Color change

Post by levellord »

Heard that I was needed, so here be the color change patch for Keen 2, complete with compatible lightswitch patch:

Code: Select all

This is the color palette: 16 entries of r, g, b (each 0-63)
%patch $17784
       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 $3045  $E8 $35 $E5 $90 $90

#Cancel 'joysick config' code this gives us 583 bytes spare
#Note: user can no longer configure joystick
%patch $157C $C3

# Code to set graphics mode and set the palette
%patch $157D                  $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
And the modified lightswitch patch if you use this:

Code: Select all

#Make a new palette for lights off:
%patch $177C4  $1F $1F $1F $1F $1F $1F $1F $1F  $00 $00 $00 $00 $00 $00 $00 $00 $00
# Make Lights off use the new palette 
%patch $640B  $44 $00 
Enjoy!
KeenRush
Patch Maker
Posts: 1988
Joined: Sun Aug 31, 2003 2:52 pm
Location: Sand Yego
Contact:

Post by KeenRush »

Hey LL, nice to see you posting patches again. :) Why not return altogether?
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

I have lost my will to Keen.
User avatar
XkyRauh
Posts: 1114
Joined: Sun Aug 31, 2003 9:14 pm
Location: San Diego, California

Post by XkyRauh »

levellord wrote:I have lost my will to Keen.
:( Don't say that.
Benvolio
Posts: 228
Joined: Sun Aug 29, 2004 4:44 pm
Location: Ireland
Contact:

Post by Benvolio »

I think, no matter how far you might drift away from Keen, it will always be a source of comfort (at least until Dos becomes obsolete, an event which i dread, having grown up on Dos)!
Post Reply