01147c0d35
* Implement a simple state machine to simulate different game stats * Create a generic menu to display different menus * Update the Makefile for TTF support * Draw a simple diagram to show the stats
16 lines
274 B
C
16 lines
274 B
C
|
|
#include "SDL.h"
|
|
#include <stdbool.h>
|
|
#include "config.h"
|
|
|
|
// Initialization for the global variables
|
|
SDL_Surface *screen = NULL;
|
|
SDL_Event event;
|
|
TTF_Font *menuFont;
|
|
bool gameRunning = true;
|
|
int *terrain = NULL;
|
|
|
|
enum states currentState;
|
|
int currentMenuActionState = 0;
|
|
|