e12b581fc8
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
20 lines
497 B
C
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;
|
|
|