all repos — hyperkaos @ main

lightweight modular puzzle/adventure game engine in C with SDL 1.2

HyperKaos.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
typedef struct kaos Kaos;

typedef struct hyperKaos
{
  int kaosID;
  int eventType;
  int tombStone;

  SDL_Rect domain;
  Kaos* head;
} HyperKaos;

HyperKaos* newHyperKaos(int id, int type, int x, int y, int w, int h);
void deleteHyperKaos(HyperKaos* target);
void cleanHyperKaos(HyperKaos* self);

void run(HyperKaos* self);
void addKaos(HyperKaos* self, Kaos* target);
int hasCompleted(int x);
int notCompleted(int x);