37 lines
520 B
C
37 lines
520 B
C
//
|
|
// Game-wide stuff
|
|
//
|
|
|
|
#ifndef _GAME_
|
|
#define _GAME_
|
|
|
|
|
|
//
|
|
// Game related variables.
|
|
//
|
|
|
|
#define GAME_TICKS_PER_SECOND 200
|
|
#define GAME_TICKS_PER_PROCESS (1000 / GAME_TICKS_PER_SECOND)
|
|
|
|
extern SLONG GAME_turn; // There is one gameturn every 16th processs.
|
|
extern SLONG GAME_process; // These happen every 5 milliseconds.
|
|
extern SLONG GAME_tick; // The millisecond counter for processing that tries to keep up with
|
|
// OS_ticks().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
// The whole game is inside here!
|
|
//
|
|
|
|
void GAME_do(void);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|