adventskalender-2009/src/config.h
Aaron Mueller e12b581fc8 Build a initial structure to build the game
This includes:
  * Change the Makefile so we can build the source with SDL
  * Create a config file for all global variables
  * Initialize a simple game loop to see something on the screen
  * Stub for building a drawing lib
  * Modify the README a little bit
2009-12-07 16:57:30 +01:00

20 lines
497 B
C

#include <stdbool.h>
#include "SDL.h"
// In this file we define all global variables for the whole project. All
// variables definied here can be accessed from all other source files.
// Global variables and definitions
extern SDL_Surface *screen; // Screen to paint on
extern SDL_Event event; // Event storage
extern bool gameRunning; // Set this variable to false to shutdown the game
// Constants
// Screen size
static const int SCREEN_WIDTH = 800;
static const int SCREEN_HEIGHT = 600;