Player character now moves.

This commit is contained in:
2014-03-03 21:54:15 -04:30
parent 073407c752
commit fe08d66af4
5 changed files with 303 additions and 185 deletions

View File

@@ -15,21 +15,21 @@
#endif
enum COLORS {
BAR_COLOR = 1,
BSC_COLOR,
HLT_COLOR,
OFF_COLOR,
DIM_COLOR,
LIT_COLOR,
GUI_COLOR,
EMP_COLOR,
DW_COLOR,
SW_COLOR,
SN_COLOR,
GR_COLOR,
FR_COLOR,
HL_COLOR,
MN_COLOR
BAR_COLOR = 1,
BSC_COLOR,
HLT_COLOR,
OFF_COLOR,
DIM_COLOR,
LIT_COLOR,
GUI_COLOR,
EMP_COLOR,
DW_COLOR,
SW_COLOR,
SN_COLOR,
GR_COLOR,
FR_COLOR,
HL_COLOR,
MN_COLOR
};
#endif

View File

@@ -11,10 +11,10 @@ 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);
gsname_t name;
void (*input)();
gsname_t (*update)();
void (*render)(int, int);
} gs_t;
extern void initStateArray(gs_t **);