Guest User

Untitled

a guest
Oct 30th, 2014
200
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void statisques(int *recording){
  2.     int scroll=5, min_rec=0, sec_rec=0, h;
  3.     float cent_sec_rec=0.0, record=0.0;
  4.  
  5.     while(IsKeyUp(KEY_CTRL_MENU)){
  6.         record=(float)(recording[0]/100);
  7.         min_rec=(int)(record/60);
  8.         record-=min_rec*60;
  9.         sec_rec=(int)(record);
  10.         cent_sec_rec=(record-sec_rec)*100;
  11.        
  12.      ML_clear_vram();
  13.        
  14.     if(IsKeyDown(KEY_CTRL_DOWN) && scroll>-76)  scroll--;
  15.         if(IsKeyDown(KEY_CTRL_UP) && scroll<5)  scroll++;
  16.        
  17.     Txt_Text("Meilleur score", 0, scroll+10, TXT_7SEGMINI, TXT_OR);
  18.         PrintMini(105, scroll+10, (const unsigned char *)":", 1);
  19.         PrintMini(116, scroll+10, (const unsigned char *)":", 1);
  20.         PrintVariable(101, scroll+10, min_rec, 1);
  21.         PrintVariable(108, scroll+10, sec_rec, 1);
  22.         PrintVariable(119, scroll+10, cent_sec_rec, 1);
  23.        
  24.         ML_rectangle(0, 0, 128, 10, 0, 0,0);
  25.         ML_rectangle(32, 0, 106, 10, 1, 1, 0);       //ici on creer un cadre vide pour afficher statistiques
  26.         Txt_Text("Statistiques", 34, 2, TXT_7SEG, TXT_OR);
  27.         ML_display_vram();
  28.     }
  29. }
RAW Paste Data