I am still working on the Allegro version of “Run_Away.” Right now there is no collision detection in the game. My big concerns for now is blitting and maybe loading the bitmap files. I am not sure what the problem is but when I run the game the images seem to flicker on the screen. It’s hard to tell that it is flickering from the image below but as you can see, some of the images are cut in half.
My other problem is that the other frames for my cat and dog sprites seem to be messed up. I’m not sure where the error is for that. The sprite grabber function seems to be ok, but when I draw the sprite on screen it appears as a gray square blob except for frame 0 when they are facing north.
Here are my source codes:
game.h, setup.c, input.c, cleanup.c, main.c
You can download the zip file here.