Better location display

This commit is contained in:
Mylloon 2021-12-31 11:12:54 +01:00
parent 5a992d49bd
commit 45bb8065da
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -159,7 +159,7 @@ void idle(void) {
if(_vkeyboard[VK_DOWN]) // collision en bas du plateau
if(zA < (_grilleH - 2))
_herosA.z += 10.f * dt;
printf("\n==Héros A==\nli = %f, col = %f\n===========\n", zA, xA);
printf("\n========== Héros A ==========\nli = %f, col = %f\n", zA, xA);
/* Mouvements du héros B */
float zB = (float)((_herosB.z + _cubeSize * _grilleH / 2) / _cubeSize);
@ -176,7 +176,7 @@ void idle(void) {
if(_vkeyboard[VK_s]) // collision en bas du plateau
if(zB < (_grilleH - 2))
_herosB.z += 10.f * dt;
printf("==Héros B==\nli = %f, col = %f\n===========\n", zB, xB);
printf("========== Héros B ==========\nli = %f, col = %f\n=============================\n", zB, xB);
}
/*!\brief la fonction appelée à chaque display. */