New - Final fantasy Styled Canvas windows

Talk about making games.

New - Final fantasy Styled Canvas windows

Postby Hblade » Tue Mar 23, 2010 8:43 pm

Hey everyone, me again :) I have a new function to give you that can turn a canvas into a window for text, menus, and more without making new images for a different size. :/

Function: IntoWindow();

Code: Select all
void IntoWindow()
{
    int line;
erase(255, 255, 255, .99);
for (line=3;line<height-3;line++)
{
    setpen(0, line, line+124, .30, 1);
    moveto(3, line);
    lineto(width-3, line);
}
setpen(255, 255, 255, 0, 2);
moveto(3, 2);
lineto(width-3, 2);
setpen(255, 255, 255, 0, 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);
}


Screenshots
Screenshot 1.JPG

Screenshot 2.JPG

Screenshot 3.JPG

Screenshot 4.JPG


To use this, simply put IntoWindow(); inside of Create Actor.
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

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest