fix debug display
This commit is contained in:
parent
9f4e31aa01
commit
2901afc3d0
1 changed files with 9 additions and 6 deletions
7
window.c
7
window.c
|
@ -194,7 +194,8 @@ void idle(void) {
|
||||||
|
|
||||||
/* Affichage Debug */
|
/* Affichage Debug */
|
||||||
if(_debug) {
|
if(_debug) {
|
||||||
printf("\n==== Héros A ====\n li = %d, col = %d, pos = %d\n", (int)(zA + .5f), (int)(xA + .5f), _herosA.position);
|
printf("\n========= Héros A =========\n");
|
||||||
|
printf(" li = %d, col = %d, idx = %d\n", (int)(zA + .5f), (int)(xA + .5f), _herosA.position);
|
||||||
printf(" zA=%f xA=%f\n", zA, xA);
|
printf(" zA=%f xA=%f\n", zA, xA);
|
||||||
printf(" d=%d h=%d g=%d b=%d\n", coorDroiteA, coorHautA, coorGaucheA, coorBasA);
|
printf(" d=%d h=%d g=%d b=%d\n", coorDroiteA, coorHautA, coorGaucheA, coorBasA);
|
||||||
}
|
}
|
||||||
|
@ -240,9 +241,11 @@ void idle(void) {
|
||||||
|
|
||||||
/* Affichage Debug */
|
/* Affichage Debug */
|
||||||
if(_debug) {
|
if(_debug) {
|
||||||
printf("==== Héros B ====\n li = %d, col = %d, pos = %d\n=================\n", (int)(zB + .5f), (int)(xB + .5f), _herosB.position);
|
printf("========= Héros B =========\n");
|
||||||
|
printf(" li = %d, col = %d, idx = %d\n", (int)(zB + .5f), (int)(xB + .5f), _herosB.position);
|
||||||
printf(" zA=%f xA=%f\n", zB, xB);
|
printf(" zA=%f xA=%f\n", zB, xB);
|
||||||
printf(" d=%d h=%d g=%d b=%d\n", coorDroiteB, coorHautB, coorGaucheB, coorBasB);
|
printf(" d=%d h=%d g=%d b=%d\n", coorDroiteB, coorHautB, coorGaucheB, coorBasB);
|
||||||
|
printf("===========================\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Anti-collision entre joueurs */
|
/* Anti-collision entre joueurs */
|
||||||
|
|
Reference in a new issue