home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 5.14
/
2000-11_-_Disc_5.14.iso
/
Goodies
/
3DGameStudio
/
Adeptus
/
debug.wdl
< prev
next >
Wrap
Text File
|
2000-04-25
|
1KB
|
48 lines
/////////////////////////////////////////////////////////
// Debug panel - to display fps*10, nexus and error skill
/////////////////////////////////////////////////////////
SKILL fps {VAL 1;}
///////////////////////////////////////////////
#FONT standard_font,<panfont.bbm>,8,10;
SKILL debug_val {}
STRING debug_labels_1, "fps";
// res_x res_y x y";
# "fps nx mdist vx cl slc drw buf ob ac clp max m";
TEXT debug_text
{
POS_X 0;
POS_Y 2;
FONT standard_font;
STRING debug_labels_1;
LAYER 16;
}
//BMAP panmap,<pan_vga.pcx>;
PANEL debug_panel
{
// PAN_MAP panmap;
POS_X 0;
POS_Y 2;
DIGITS 0, 0, 3, standard_font, 160, fps;
DIGITS 20, 0, 5, standard_font, 1, testvar.X;
DIGITS 50, 0, 5, standard_font, 100, temp_normal.Y;
DIGITS 130, 0, 5, standard_font, 1, intro_counter;
DIGITS 170, 0, 5, standard_font, 1, intro_l_move;
DIGITS 210, 0, 5, standard_font, 1, scantest;
DIGITS 120, -10, 3, standard_font, 1, VIDEO_DEPTH;
LAYER 16;
FLAGS REFRESH;
}
///////////////////////////////////////////////
ACTION set_debug
{
SET debug_panel.VISIBLE, 1;
SET debug_text.VISIBLE, 1;
WHILE (1)
{
// forever
debug_panel.POS_Y = SCREEN_SIZE.Y - 15;
debug_text.POS_Y = SCREEN_SIZE.Y - 29;
fps = 0.9 * fps + 0.1 * TIME_FAC;
WAIT 1;
}
}