Player character now moves.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 **);
|
||||
|
||||
Reference in New Issue
Block a user