"git@git.unistra.fr:elpredators-projett4/t4_urbanisation.git" did not exist on "0928a382396ba179afbe160dc4572ad2d76126c9"
Newer
Older
#include <stdio.h>
#include "grid.h"
#include <stdbool.h>
int main(void){
struct Grid* grid = init_level("./level1.txt");
char entry = fgetc(stdin);
switch(entry){
case 'z' :{
move_player(grid, TOP);
break;
}
case 's' :{
move_player(grid, BOTTOM);
break;
}
case 'q' :{
move_player(grid, LEFT);
break;
}
case 'd' :{
move_player(grid, RIGHT);
break;
}