all repos — katbug @ main

side-scrolling infinite arcade game in C with SDL 1.2

Engine.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SDL_Surface* loadImage(char* filename);
void applySurface(int x, int y, SDL_Surface* source, SDL_Surface* destination, SDL_Rect* clip);
void scaleScreen();

void renderBG();
void drawHP();

void checkHP();
void updateScore();

void title();
void resetGame();
void pauseGame();
void scoreSummary();

void interact();

int init(int argc, char* args[]);
void cleanup();
void toggleFullscreen();
void timeDilation();
void frameAdvance();