home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 5.14 / 2000-11_-_Disc_5.14.iso / Goodies / 3DGameStudio / Mission / debug.wdl < prev    next >
Text File  |  2000-02-08  |  2KB  |  70 lines

  1. /////////////////////////////////////////////////////////
  2. // Debug panel - to display fps*10, nexus and error skill
  3. /////////////////////////////////////////////////////////
  4. IFNDEF debug_font;
  5.     FONT debug_font,<ackfont.pcx>,6,9;
  6. ENDIF;
  7.  
  8. SKILL    fps { VAL 1; }
  9. SKILL    secs { VAL 0; }
  10.  
  11. SKILL d_ang { }
  12. SKILL d_vec { X 1; Y 1; Z 0; }
  13.  
  14. /////////////////////////////////////////////////////////
  15. PANEL debug_panel {
  16.     POS_X        0;
  17.     POS_Y        2;
  18.     LAYER        10;
  19.     DIGITS    0,0,3,debug_font,1,fps;
  20.     DIGITS    20,0,4,debug_font,1,secs;    //FREEZE_MODE;    //CAMERA.PAN;
  21. /*
  22.     DIGITS    50,0,4,debug_font,100,MOUSE_FORCE.X;    //NORMAL.Y;
  23.     DIGITS    90,0,4,debug_font,100,MOUSE_FORCE.Y;    //debug_val;    //CAMERA.X;
  24.     DIGITS    120,0,4,debug_font,100,my_floornormal.Z;    //debug_val;    //CAMERA.X;
  25.     DIGITS    150,0,4,debug_font,1,HIT.Z;
  26.     DIGITS    180,0,4,debug_font,10,absforce.X;
  27.     DIGITS    210,0,4,debug_font,10,absforce.Y;
  28.     DIGITS    240,0,4,debug_font,10,force.X;
  29. */
  30.     DIGITS    60,0,4,debug_font,1,player._DIEFRAMES;    //NORMAL.Y;
  31. //    DIGITS    90,0,4,debug_font,10,KEY_FORCE.Y;    //debug_val;    //CAMERA.X;
  32. //    DIGITS    120,0,4,debug_font,10,MY_SPEED.Z;    //debug_val;    //CAMERA.X;
  33. //    DIGITS    60,0,4,debug_font,10,my_floornormal.X;    //NORMAL.Y;
  34. //    DIGITS    90,0,4,debug_font,10,my_floornormal.Y;    //debug_val;    //CAMERA.X;
  35. //    DIGITS    120,0,4,debug_font,10,my_floornormal.Z;    //debug_val;    //CAMERA.X;
  36.     DIGITS    160,0,4,debug_font,1,test_actor._HEALTH;    //TIME_RENDER;
  37. //    DIGITS    190,0,4,debug_font,1,SOUND_VOL;
  38. //    DIGITS    220,0,4,debug_font,1,TIME_CLIENT;
  39.  
  40. #    DIGITS    130,0,4,debug_font,10,NORMAL.Y;    //debug_val;    //CAMERA.X;
  41. #    DIGITS    170,0,4,debug_font,10,NORMAL.Z;    //debug_val;    //CAMERA.X;
  42.  
  43.     # Zeitmessung
  44. #    DIGITS    275,0,2,standard_font,1,CD_TRACK;
  45.  
  46.     FLAGS    TRANSPARENT,REFRESH;
  47. }
  48.  
  49. STRING    debug_labels_1,
  50.     "fps  secs";    // res_x res_y x   y";
  51. #    "fps nx mdist  vx cl slc drw buf ob ac  clp  max  m";
  52.  
  53. TEXT    debug_text {
  54.     POS_X        0;
  55.     POS_Y        2;
  56.     FONT        standard_font;
  57.     STRING    debug_labels_1;
  58. }
  59. ///////////////////////////////////////////////
  60. ACTION set_debug {
  61.     SET    debug_panel.VISIBLE,1;
  62.     SET    debug_text.VISIBLE,1;
  63.     WHILE (1) {    // forever
  64.         debug_panel.POS_Y = SCREEN_SIZE.Y - 15;
  65.         debug_text.POS_Y = SCREEN_SIZE.Y - 29;
  66.         fps = 0.8*fps + 0.2*16/TIME;
  67.         secs += time/16;
  68.         WAIT    1;
  69.     }
  70. }