townengine/include/twn_game_api.h

23 lines
507 B
C

/* include this header in game code to get the usable parts of the engine */
#ifndef TWN_GAME_API_H
#define TWN_GAME_API_H
#include "twn_context.h"
#include "twn_draw.h"
#include "twn_audio.h"
#include "twn_util.h"
#include "twn_input.h"
#include "twn_engine_api.h"
/* sole game logic and display function.
all state must be used from and saved to supplied state pointer. */
TWN_API extern void game_tick(void);
/* called when application is closing. */
TWN_API extern void game_end(void);
#endif