IW3 is here! :D

Talk about making games.

IW3 is here! :D

Postby Hblade » Tue Mar 30, 2010 2:13 pm

Hi everyone! IntoWindow3 is here, now you dont need a silly file telling you what your window color should be! you can completly customize your window color easily!

Try out the new and improved IntoWindow3, here's the code.
Code: Select all
//Draw the window with a custom RGB, not loaded from a file//
void IntoWindow(int RR, int GG, int BB, int BR, int BG, int B_B, float T, float BT)
{
    int line;
    erase(255, 255, 255, 1);
    for (line=3;line<height-3;line++)
    {
        setpen(RR+(line/4), GG+(line/4), BB+(line/4), T, 1);
        moveto(3, line);
        lineto(width-3, line);
    }
    setpen(BR, BG, B_B, BT, 2);
    moveto(3, 2);
    lineto(width-3, 2);
    setpen(BR, BG, B_B, BT, 2);
    moveto(2, 4);
    lineto(2, height-3);
    moveto(3, height-2);
    lineto(width-3, height-2);
    moveto(width-2, height-3);
    lineto(width-2, 3);
}


But wait, there's more. Using the Customizable, Preset colors, you can make windows in half the time.
The code for the customizable quicksets is here
Code: Select all
#define StarOcean 0, 89, 89, 255, 255, 255, .30, 0
#define FF7 0, 0, 90, 255, 255, 255, 0, 0
#define Dusk 88, 38, 0, 255, 255, 255, .30, 0

#define PurpleNight 38, 0, 38, 255, 129, 255, 0, 0
#define GreenGrass 0, 49, 0, 200, 255, 200, 0, 0
#define StarLight 0, 0, 0, 0, 0, 255, 0, 0
#define Ocean 0, 0, 49, 255, 255, 255, .30, .30


To use these, simply type in IntoWindow(StarOcean); to get the Star Ocean look You can also make your own colorsets.

Screenshots
Screen3.JPG

Screen4.JPG

Screen 1.JPG

Screen 2.JPG

Screen 3.JPG




Information & Help

[---- How to use ----]
You can use this code by copy and pasting the code above.
To call this function, simply type

IntoWindow(0, 0, 0, 0, 0, 0, .30, .30);

The first 3 0's are the color of the window.
The second 3 0's are the color of the border.
The first .30 is the transparency of the window.
The second .30 is the transparency of the border.


[---- Quicksets ----]
You can also use Quicksets. Quicksets allow for
1 word color modding, you can make your own or
you can use the built in ones. Try them all out and
see if there's one you like.

[---- Credits ----]
There is no credit needed.





Please reply and let me know what you think, and let me know of ways I can improve it.

Thanks :D
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: IW3 is here! :D

Postby lcl » Thu Jun 24, 2010 8:09 am

This is cool! :D
But I want ask about canvas... Does it shade automatically?
I mean that in top of canvas the color is deeper and as you look down it goes lighter... :|
Is this true??? It seems to me... :D
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: IW3 is here! :D

Postby Game A Gogo » Thu Jun 24, 2010 12:36 pm

in order to have shaded drawings on the canvas, you just need to change the color of the pen when drawing on it, it's not done automatically
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: IW3 is here! :D

Postby lcl » Thu Jun 24, 2010 3:02 pm

Game A Gogo wrote:in order to have shaded drawings on the canvas, you just need to change the color of the pen when drawing on it, it's not done automatically

Ok. :oops:
Then my eyes lie to me, 'cause for example the last of the Hblades posted images
has the dark box in left side and it really seems to me to shade smoothly from top dark to underneath light.
But I don't know... :|
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: IW3 is here! :D

Postby Game A Gogo » Thu Jun 24, 2010 3:26 pm

They all do, HBlade included it in his code to make it that way :)
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: IW3 is here! :D

Postby lcl » Thu Jun 24, 2010 3:49 pm

Oh. :oops: Thanks for explain! :D
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest