fix debug display
This commit is contained in:
parent
9f4e31aa01
commit
2901afc3d0
1 changed files with 9 additions and 6 deletions
15
window.c
15
window.c
|
@ -194,9 +194,10 @@ 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("zA=%f xA=%f\n", zA, xA);
|
printf(" li = %d, col = %d, idx = %d\n", (int)(zA + .5f), (int)(xA + .5f), _herosA.position);
|
||||||
printf("d=%d h=%d g=%d b=%d\n", coorDroiteA, coorHautA, coorGaucheA, coorBasA);
|
printf(" zA=%f xA=%f\n", zA, xA);
|
||||||
|
printf(" d=%d h=%d g=%d b=%d\n", coorDroiteA, coorHautA, coorGaucheA, coorBasA);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Anti-collision entre joueurs */
|
/* Anti-collision entre joueurs */
|
||||||
|
@ -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("zA=%f xA=%f\n", zB, xB);
|
printf(" li = %d, col = %d, idx = %d\n", (int)(zB + .5f), (int)(xB + .5f), _herosB.position);
|
||||||
printf("d=%d h=%d g=%d b=%d\n", coorDroiteB, coorHautB, coorGaucheB, coorBasB);
|
printf(" zA=%f xA=%f\n", zB, xB);
|
||||||
|
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