High-quality Tennix icon
[tennix.git] / tennix.h
bloba128fd8da7f901d63776a4d2da4c2b650069ba81
1 #ifndef __TENNIX_H
2 #define __TENNIX_H
4 #include <sys/param.h>
6 #include "SDL.h"
8 #define DATADIR "/data/"
9 #ifdef MACOSX
10 #undef DATADIR
11 #define DATADIR "/../Resources/"
12 #endif
14 #define WIDTH 640
15 #define HEIGHT 480
17 #define SPONSOR_BMP "data/sponsor.bmp"
18 #define SPONSOR_COUNT 6
20 #define RACKET_BMP "data/player-racket.bmp"
22 #define M_POS_XPOS(x) (x>170*2 && x<280*2)
24 #define M_POS_START_GAME(x,y) (M_POS_XPOS(x) && y>60*2 && y<70*2)
25 #define M_POS_HIGH_SCORES(x,y) (M_POS_XPOS(x) && y>80*2 && y<90*2)
26 #define M_POS_CREDITS(x,y) (M_POS_XPOS(x) && y>100*2 && y<115*2)
27 #define M_POS_QUIT(x,y) (M_POS_XPOS(x) && y>140*2 && y<150*2)
29 extern SDL_Surface *screen;
31 #endif