Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void statisques(int *recording){
- int scroll=5, min_rec=0, sec_rec=0, h;
- float cent_sec_rec=0.0, record=0.0;
- while(IsKeyUp(KEY_CTRL_MENU)){
- record=(float)(recording[0]/100);
- min_rec=(int)(record/60);
- record-=min_rec*60;
- sec_rec=(int)(record);
- cent_sec_rec=(record-sec_rec)*100;
- ML_clear_vram();
- if(IsKeyDown(KEY_CTRL_DOWN) && scroll>-76) scroll--;
- if(IsKeyDown(KEY_CTRL_UP) && scroll<5) scroll++;
- Txt_Text("Meilleur score", 0, scroll+10, TXT_7SEGMINI, TXT_OR);
- PrintMini(105, scroll+10, (const unsigned char *)":", 1);
- PrintMini(116, scroll+10, (const unsigned char *)":", 1);
- PrintVariable(101, scroll+10, min_rec, 1);
- PrintVariable(108, scroll+10, sec_rec, 1);
- PrintVariable(119, scroll+10, cent_sec_rec, 1);
- ML_rectangle(0, 0, 128, 10, 0, 0,0);
- ML_rectangle(32, 0, 106, 10, 1, 1, 0); //ici on creer un cadre vide pour afficher statistiques
- Txt_Text("Statistiques", 34, 2, TXT_7SEG, TXT_OR);
- ML_display_vram();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement