Pretty straightforward, I try to compile this game I'm trying to get running and it gives me these 4 errors:
character.h: In member function 'void character::show()':
character.h:169: error: expected primary-expression before ',' token
character.h:173: error: expected primary-expression before ',' token
character.h:177: error: expected primary-expression before ',' token
character.h:181: error: expected primary-expression before ',' token
For fear of taking up too much room I have pasted my character.h file externally here:
http://pastebin.com/NXpuygHE
All it gets from camera.h is the following:
SDL_Rect camera = {0, 0, SCREEN_WIDTH, SCREEN_HEIGHT};
And all it gets from blit.h is this:
void blitSurface(int x, int y, SDL_Surface* source, SDL_Surface* destination, SDL_Rect* clip)
{
SDL_Rect offset;
offset.x = x;
offset.y = y;
SDL_BlitSurface(source, clip, destination, &offset);
}
This is my first 2D game, I am still learning SDL, and I can't say I'm the best C++ programmer I know. All/any help is appreciated.