0 Members and 2 Guests are viewing this topic.
//Actualisation de la position de l'utilisateur pUserx += (key == KEY_RIGHT) - (key == KEY_LEFT); pUsery += (key == KEY_DOWN) - (key == KEY_UP); //Verification de sa position if (map1[pUsery][pUserx] == 1 || map1[pUsery][pUserx] == 3 || (map1[pUsery][pUserx] > 4 && map1[pUsery][pUserx] != 14 && map1[pUsery][pUserx] < 21) || pUserx == 21 || pUserx == -1 || pUsery == -1 || pUsery == 13) { pUserx -= (key == KEY_RIGHT) - (key == KEY_LEFT); pUsery -= (key == KEY_DOWN) - (key == KEY_UP); }
If he want, why not! Even if I learn C with this program, it can be a serious project if it works but now it's still a test game.