Global code - how to start?
Posted: Wed Sep 16, 2009 11:29 am
Hi all. I want to learn to make scripts in global code, but I dont know how to begin..
can anyone explain me how to use global code please? Thank you.
Camper...
Game Editor discussion board
http://game-editor.com/forum/
void PlaceText(char *msg) // Place texts
{
strcpy(text, msg); // Changes the original text into the msg's text
}
setpen(WHITE,0,1); /*equal to*/ setpen(255,255,255,0,1);
setcolor(&youractorname,WHITE); /*equal to*/ youractorname.r = 255; youractorname.g = 255; youractorname.b = 255;
#define MAGENTA_R 201
#define MAGENTA_G 21
#define MAGENTA_B 123
#define CYAN_R 0
#define CYAN_G 183
#define CYAN_B 235
#define GRAY_R 128
#define GRAY_G 128
#define GRAY_B 128
#define BLACK_R 0
#define BLACK_G 0
#define BLACK_B 0
#define WHITE_R 255
#define WHITE_G 255
#define WHITE_B 255
#define MAGENTA MAGENTA_R, MAGENTA_G, MAGENTA_B
#define WHITE WHITE_R, WHITE_G, WHITE_B
#define BLACK BLACK_R, BLACK_G, BLACK_B
#define CYAN CYAN_R, CYAN_G, CYAN_B
#define GRAY GRAY_R, GRAY_G, GRAY_B
void setcolor( Actor *actor, int c_r, int c_g, int c_b)
{
if(actor)
{
actor->r = c_r;
actor->g = c_g;
actor->b = c_b;
}
else
{
r = c_r;
g = c_g;
b = c_b;
}
}
setpen(BLACK, 0 ,1); setpen(GRAY, 0 ,1); setpen(MAGENTA, 0 ,1);
setcolor(&A, BLACK); setcolor(&A, GRAY); setcolor(&A, MAGENTA);
setcolor(0, BLACK); setcolor(0, GRAY); setcolor(0, MAGENTA);