Light switch effects
Light switch effects
I've been thinking about the light switch in keen 2.
Im not sure my theory is right so ill ask some questions along the way. If the answer to any of these questions wrong then my whole theory is kind of pointless.
First question:
What happens when you switch the lightswitchbutton in keen2, is that the game changes to a different palette, right??
In the game the palette changes to one that has dark colours for bright colours, black for dark colours and light grey, and the original colour for white and bright cyan.
Question two:
Is this palette the game uses when the light is switched off one of the fade in-fade out frames?
When you enter or exit a level, the sreen fades to black. I assume this is done the same way. I hope this doesnt use the same palette, since that would destroy the possibility of all the cool effects i have in mind.
Now from what i've read in this topic, i believe changing that palette is possible (and im not talking about changing it to new colours with the rgb value - just the original ones). Wich is my third question:
Is it possible to change this palette?
So with the new palette, instead of changing the colours to darker colours the game would change the colours to whatever you want, imagine the possibility's.
For example: change the palette to replace all dark colours with bright colours and all bright colours with white, creating an effect that is the oposite of that in the original game. You could also give everything a purple tint, or just make all yellow lamps turn into red (going into red alert:))
get the idea?
Im not sure my theory is right so ill ask some questions along the way. If the answer to any of these questions wrong then my whole theory is kind of pointless.
First question:
What happens when you switch the lightswitchbutton in keen2, is that the game changes to a different palette, right??
In the game the palette changes to one that has dark colours for bright colours, black for dark colours and light grey, and the original colour for white and bright cyan.
Question two:
Is this palette the game uses when the light is switched off one of the fade in-fade out frames?
When you enter or exit a level, the sreen fades to black. I assume this is done the same way. I hope this doesnt use the same palette, since that would destroy the possibility of all the cool effects i have in mind.
Now from what i've read in this topic, i believe changing that palette is possible (and im not talking about changing it to new colours with the rgb value - just the original ones). Wich is my third question:
Is it possible to change this palette?
So with the new palette, instead of changing the colours to darker colours the game would change the colours to whatever you want, imagine the possibility's.
For example: change the palette to replace all dark colours with bright colours and all bright colours with white, creating an effect that is the oposite of that in the original game. You could also give everything a purple tint, or just make all yellow lamps turn into red (going into red alert:))
get the idea?
Yes, dunno about this really. I've thought about this kind of stuff as well, and almost asked it as well but haven't done that since I haven't had use for it yet.
But I agree, that would be really neat. Changing the colours to some dangerous red or something would be really cool, like you said.
But too bad I assume it uses the same function everywhere; or at least part of it.
But I agree, that would be really neat. Changing the colours to some dangerous red or something would be really cool, like you said.
But too bad I assume it uses the same function everywhere; or at least part of it.
If youre modding keen1 there's not much use for a licht switch. Could be a nice extra but you can't force the player to push the button. Altough i have been thinking about some kind of maze that would be easyer with the lights off... something like that maybe, i dunno
I hope your not right about the switch using the fade palette....
I hope your not right about the switch using the fade palette....
re: palletes
No, the pallete does not change when the lightswitch is thrown. It's just color substitution. For example, when you toss the lightswitch...
Light Colors --> Dark Colors
i.e. Lt. Red --> Dk. Red, Lt. Blue --> Dk. Blue, etc.
However...
Both Lt. and Dk. Grey --> Black.
and
White --> White
Other than that, it's all just pallette substitution. At least, that's my observation.
--Xky
Light Colors --> Dark Colors
i.e. Lt. Red --> Dk. Red, Lt. Blue --> Dk. Blue, etc.
However...
Both Lt. and Dk. Grey --> Black.
and
White --> White
Other than that, it's all just pallette substitution. At least, that's my observation.
--Xky
Obviously, that's what i ment. Perhaps colour substitution is a better term though.
This might make things more clear:
this example would give everything a blue tint when the button is switched
This might make things more clear:
Code: Select all
Normal colours
1 black
2 blue
3 green
4 cyan
5 red
6 magenta
7 brown
8 bright gray
9 gray
10 bright blue
11 bright green
12 bright cyan
13 bright red
14 pink
15 yellow
16 white
With the light switched off
1 black
2 black
3 black
4 black
5 black
6 black
7 black
8 black
9 black
10 blue
11 green
12 bright cyan
13 red
14 magenta
15 brown
16 white
Example off what might be possible:
1 blue
2 blue
3 cyan
4 blue
5 blue
6 cyan
7 cyan
8 white
9 blue
10 bright blue
11 bright cyan
12 white
13 bright blue
14 bright grey
15 bright green
16 bright blue
re: substitution
Ahh--sorry I misunderstood you. :-}
This would be a nice expansion to the already-existing palette patch.
--Xky
This would be a nice expansion to the already-existing palette patch.
--Xky
- adurdin
- Site Founder
- Posts: 549
- Joined: Fri Aug 29, 2003 11:27 pm
- Location: Edinburgh, Scotland
- Contact:
Yes, that's correct. There are four different palettes used when fading in/out, and the second one is re-used when the lights are off (the fourth on is for when the lights are on).Is this palette the game uses when the light is switched off one of the fade in-fade out frames?
Here's a patch to let you change these palettes:
Code: Select all
%ext ck1
%version 1.31
# The four palettes used when fading, from darkest to lightest.
# The second one is also used when the light switch is off
%patch $15558 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00
%patch $15569 $00 $00 $00 $00 $00 $00 $00 $00 $00 $01 $02 $03 $04 $05 $06 $07
%patch $1557A $00 $00 $00 $00 $00 $00 $00 $00 $18 $19 $1A $1B $1C $1D $1E $1F
%patch $1558B $00 $01 $02 $03 $04 $05 $06 $07 $18 $19 $1A $1B $1C $1D $1E $1F
%end
Code: Select all
%ext ck2
%version 1.31
# The four palettes used when fading, from darkest to lightest.
# The second one is also used when the light switch is off
%patch $19BE8 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00
%patch $19BF9 $00 $00 $00 $00 $00 $00 $00 $00 $00 $01 $02 $03 $04 $05 $06 $07
%patch $19C0A $00 $00 $00 $00 $00 $00 $00 $00 $18 $19 $1A $1B $1C $1D $1E $1F
%patch $19C1B $00 $01 $02 $03 $04 $05 $06 $07 $18 $19 $1A $1B $1C $1D $1E $1F
%end
Thnx for making that, but:
In keen2, white and bright cyan remain unchanged with the lights off. However, this does not show in the patch (all colours change). Why?
That sucks! It means when i want to do all those effects i mentioned the game won't fade in and out right. A lightswitch that makes everything light combined with fading to white is possible though - but it's not the same. Is it possible to change the lightswitchpalette without affecting the fade palettes?Yes, that's correct. There are four different palettes used when fading in/out, and the second one is re-used when the lights are off (the fourth on is for when the lights are on).
In keen2, white and bright cyan remain unchanged with the lights off. However, this does not show in the patch (all colours change). Why?
All the colors do change, the white changes to light grey and the light cyan changes to dark cyan. The colors around it are just so dark, they look like they're still as bright as they were.In keen2, white and bright cyan remain unchanged with the lights off. However, this does not show in the patch (all colours change). Why?
Here's an experiment. Go into MSPaint, and make a picture where one side is black and one side is white. Then, draw two squares of the same color grey, one on each side. The grey square in the dark half will look brighter than the grey in the light half.
-
- Posts: 78
- Joined: Sun Feb 29, 2004 5:30 pm
- Location: the Netherlands
-
- Posts: 78
- Joined: Sun Feb 29, 2004 5:30 pm
- Location: the Netherlands