adjustable contrast (day/night) demo

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

adjustable contrast (day/night) demo

Postby feral » Wed Jul 16, 2008 7:02 am

use the slider to adjust the overall contrast of the game.. useful for day fading into night type games or harder levels that get darker.. or rpgs etc etc

note: IT does not work well with some transparency effects, or if your game relies on tricks with r,g,b values, as the contrast function works by adjusting the R,G,B values "all together" which would upset any individual r,g,b values you are using..

although this demo is to only to show the contrast effect...there are also some ideas in here, on how to make slider bars, try sliding the knob, OR clicking anywhere on the bar..

in the near future I will try to make a completely generic slider function().

As it is, this one is close to "generic", and should allow you to put in almost any graphic you want to use as the slider or the slidebar, as it automatically sizes its parameters to the size of the bar.. a smaller or larger bar will still work at the same 0-to-100 percent scale

(also you can move the bar anywhere on the screen before runtime and all components will follow..

but, this one only gives figures of 0->100 percent.. a better version would allow those figures to be modifiable - I may work on that soon if there is a need..?

feral
Attachments
contrast.zip
ged and data files
(268.69 KiB) Downloaded 246 times
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: adjustable contrast (day/night) demo

Postby segwego12 » Wed Jul 16, 2008 7:27 pm

Screenshot?
http://www.freewebs.com/primewaregames/

The Primeware Games website

Projects
Era of Rome: Done
segwego12
 
Posts: 167
Joined: Mon Jul 07, 2008 2:48 am
Location: My Website, please come to my website.
Score: 3 Give a positive score

Re: adjustable contrast (day/night) demo

Postby feral » Wed Jul 16, 2008 10:26 pm

segwego12 wrote:Screenshot?

3 screenshots at different contrasts
contrast.jpg
click to enlarge
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score


Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest

cron