correction des collisions

This commit is contained in:
Jean-Paul NOEL 2020-04-19 14:57:15 +02:00
parent 7939f73446
commit 391dcb240b
5 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -107,7 +107,7 @@ int main(void)
break;
case KEY_DOWN:
y++;
if (y > yMap)
if (y > yMap-1)
{
y = yMap-1;
}
@ -121,7 +121,7 @@ int main(void)
break;
case KEY_RIGHT:
x++;
if (x > xMap)
if (x > xMap-1)
{
x = xMap-1;
}