while (SDL_PollEvent(&event)) {
switch (event.type) {
case SDL_KEYDOWN:
- if (event.key.keysym.sym == SDLK_ESCAPE) {
+ if (event.key.keysym.sym == SDLK_ESCAPE || event.key.keysym.sym == SDLK_f) {
done = SDL_TRUE;
}
break;
}
#endif
}
-
int
main(int argc, char **argv)
{
}
/* load the moose images */
- handle = SDL_RWFromFile("moose.dat", "rb");
+ handle = SDL_RWFromFile("res/moose.dat", "rb");
if (handle == NULL) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Can't find the file moose.dat !\n");
quit(2);