all repos — hyperkaos @ 873c57cb1380927560c549628ff79d3bab8d8ede

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

internal screen dimensions as enum in extern.h, instead of #defines in config.h
Derek Stevens nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEkFh6dA+k/6CXFXU4O3+8IhROY5gFAlw22OkACgkQO3+8IhRO
Y5hNlQ//T0xGieVd0fSxIFbfd+UkvZdYYaWJ+K1jRbr5hzScFYnRNHIcleAxdVD/
fi3qFlY3HE70BiT5ucnetS8sbilImatki32327Uz6npktKvP0yKyazNXYkfwehcP
b/2NEuYFCHh04tyBnDIljohMkAtaPVCp5GzjkXL3hDIm26dJ5XVv3nsaHn2pjyYk
2vYpK0Mc4RPyC94XTK0SyV9dL3gNlyr0alFATW2Kry00wK7GV/Ok57/eFNNEEsPG
47khF0QHQhbhidfjDdBwNJy4jhQjqnrY6ApYD1C6QxzS69PYoL5DvZuYQXbHPHGV
ZVym3YxEfhC4W0TlKWcptv2Zgr7PY31nCoomvQCF6zcqC8W0ADbO4cF4GMkZaAm7
rIvMUcAfv16hdQxsQ1TesTTxutWczsHHCL7azfs1TihTMP46V2jCFd5WfqCraCt8
OTJcuSIWU+eDkIk5+BbvNmyCEX7/IxOmzRpNmqfd2bK6fQsXmFbpqyc4Rs3qs65y
CDUzbctcn+V4/kd6moS8RrRV66F9nPe//Z1W1yEl9pI+fBCqAVGQhdNmBTJfmva8
FMa9ea+14mmZYgLuulA4cAXvq5SV1mIHvuUYdRz8/yabymAwjBt1nCibCuQf4iLb
+VQLHPeVvt7GihuytWWleDP5b4tPbq8yg/dEUHNyKPwVnUuXco0=
=05hi
-----END PGP SIGNATURE-----
commit

873c57cb1380927560c549628ff79d3bab8d8ede

parent

502f45111049bf24d037e04791d400e9acaed18c

2 files changed, 7 insertions(+), 6 deletions(-)

jump to
M config.hconfig.h

@@ -11,12 +11,7 @@ #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 +/* video scaling factor should be a positive integer */ #define SCALE_FACTOR 2 //#define SOUND_ON
M extern.hextern.h

@@ -1,3 +1,9 @@

+ +enum screenDimensions +{ + SCREEN_WIDTH = 320, + SCREEN_HEIGHT = 180 +}; extern int fullscreen; extern int quit;