/* main.h - Header for main.c */

#ifndef MAIN_H_INC
#define MAIN_H_INC

#include <allegro.h>

//The following definitions are configuration and are safe to change
#define WIDTH 640
#define HEIGHT 480

#define SCR_WIDTH 640
#define SCR_HEIGHT 480

#define COLOUR_DEPTH 16

/*** Nothing past here is configuration-related ***/

#if(COLOUR_DEPTH == 16)
#define mymakecol makecol16
#define myputpixel _putpixel16
#define mygetpixel _getpixel16
#define mygetr getr16
#define mygetg getg16
#define mygetb getb16
#else
#define mymakecol makecol
#define myputpixel putpixel
#define mygetpixel getpixel
#define mygetr getr
#define mygetg getg
#define mygetb getb
#endif

#define STARTGAME 0
#define ROCKETGAME 1
#define QUITGAME 2

//Menu offsets
#define MENU_X ((SCR_WIDTH/2)-160)
#define MENU_Y ((SCR_HEIGHT/2)-120)

//For colours
#define WIDTH_SIZE (255/(WIDTH/8))
#define HEIGHT_SIZE (255/(HEIGHT/8))
#define WIDTH_SIZE_2 ((WIDTH/255)+1)
#define HEIGHT_SIZE_2 ((HEIGHT/255)+1)

#include "draw.h"
#include "player.h"
#include "bullet.h"

extern int spawncount;
extern int gamemode;

#endif
