Tested some island and unicode rendering.

This commit is contained in:
2014-03-01 22:43:28 -04:30
parent baa18d56a2
commit 667e1b1691
7 changed files with 258 additions and 51 deletions

22
include/game_state.h Normal file
View File

@@ -0,0 +1,22 @@
/**
* Copyright (c) 2014, Miguel Angel Astor Romero. All rights reserved.
* See the file LICENSE for more details.
*/
#ifndef GAME_STATE_H
#define GAME_STATE_H
static const int NUM_STATES = 4;
typedef enum GAME_STATE_NAMES { INTRO = 0, MENU = 1, IN_GAME = 2, GAME_OVER = 3 } gsname_t;
typedef struct GAME_STATE {
gsname_t name;
void (*input)();
gsname_t (*update)();
void (*render)(int, int);
} gs_t;
extern void initStateArray(gs_t **);
#endif