all repos — hyperkaos @ 502f45111049bf24d037e04791d400e9acaed18c

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

config.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* see https://sdl.beuc.net/sdl.wiki/SDLKey for keysyms */

#define DPAD_UP       SDLK_w
#define DPAD_DOWN     SDLK_s
#define DPAD_LEFT     SDLK_a
#define DPAD_RIGHT    SDLK_d
#define A_BUTTON      SDLK_j
#define B_BUTTON      SDLK_k
#define L_BUTTON      SDLK_o
#define R_BUTTON      SDLK_p
#define FS_BUTTON     SDLK_f
#define PAUSE_BUTTON  SDLK_q


// internal game resolution is 320x180 widescreen
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 180

// video scaling factor should be a positive integer
#define SCALE_FACTOR 2

//#define SOUND_ON