all repos — hyperkaos @ 19968d19bf28307f0566784135ec6844785b27e1

lightweight modular puzzle/adventure game engine 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// graphics primitives

SDL_Surface* loadImage(char* filename);

void applySurface(int x, int y, SDL_Surface* source, SDL_Surface* destination, SDL_Rect* clip);

// SDL sound


#ifdef SOUND_ON
Mix_Music* loadBGM(char* filename);

Mix_Chunk* loadSFX(char* filename);
#endif
// world

void renderBackground();

void renderForeground();

void renderHUD();

void interact();

void kListen();

// system

int init(int argc, char* args[]);

void writeSpellBook();

void toggleFullscreen();

void timeDilation();

void cleanup();

void intro();

void mainmenu();

void pausemenu();