home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 5.14
/
2000-11_-_Disc_5.14.iso
/
Goodies
/
3DGameStudio
/
Mission
/
debug.wdl
< prev
next >
Wrap
Text File
|
2000-02-08
|
2KB
|
70 lines
/////////////////////////////////////////////////////////
// Debug panel - to display fps*10, nexus and error skill
/////////////////////////////////////////////////////////
IFNDEF debug_font;
FONT debug_font,<ackfont.pcx>,6,9;
ENDIF;
SKILL fps { VAL 1; }
SKILL secs { VAL 0; }
SKILL d_ang { }
SKILL d_vec { X 1; Y 1; Z 0; }
/////////////////////////////////////////////////////////
PANEL debug_panel {
POS_X 0;
POS_Y 2;
LAYER 10;
DIGITS 0,0,3,debug_font,1,fps;
DIGITS 20,0,4,debug_font,1,secs; //FREEZE_MODE; //CAMERA.PAN;
/*
DIGITS 50,0,4,debug_font,100,MOUSE_FORCE.X; //NORMAL.Y;
DIGITS 90,0,4,debug_font,100,MOUSE_FORCE.Y; //debug_val; //CAMERA.X;
DIGITS 120,0,4,debug_font,100,my_floornormal.Z; //debug_val; //CAMERA.X;
DIGITS 150,0,4,debug_font,1,HIT.Z;
DIGITS 180,0,4,debug_font,10,absforce.X;
DIGITS 210,0,4,debug_font,10,absforce.Y;
DIGITS 240,0,4,debug_font,10,force.X;
*/
DIGITS 60,0,4,debug_font,1,player._DIEFRAMES; //NORMAL.Y;
// DIGITS 90,0,4,debug_font,10,KEY_FORCE.Y; //debug_val; //CAMERA.X;
// DIGITS 120,0,4,debug_font,10,MY_SPEED.Z; //debug_val; //CAMERA.X;
// DIGITS 60,0,4,debug_font,10,my_floornormal.X; //NORMAL.Y;
// DIGITS 90,0,4,debug_font,10,my_floornormal.Y; //debug_val; //CAMERA.X;
// DIGITS 120,0,4,debug_font,10,my_floornormal.Z; //debug_val; //CAMERA.X;
DIGITS 160,0,4,debug_font,1,test_actor._HEALTH; //TIME_RENDER;
// DIGITS 190,0,4,debug_font,1,SOUND_VOL;
// DIGITS 220,0,4,debug_font,1,TIME_CLIENT;
# DIGITS 130,0,4,debug_font,10,NORMAL.Y; //debug_val; //CAMERA.X;
# DIGITS 170,0,4,debug_font,10,NORMAL.Z; //debug_val; //CAMERA.X;
# Zeitmessung
# DIGITS 275,0,2,standard_font,1,CD_TRACK;
FLAGS TRANSPARENT,REFRESH;
}
STRING debug_labels_1,
"fps secs"; // 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;
}
///////////////////////////////////////////////
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.8*fps + 0.2*16/TIME;
secs += time/16;
WAIT 1;
}
}