2024-07-08 00:44:20 +00:00
|
|
|
/* include this header in game code to get the usable parts of the engine */
|
|
|
|
#ifndef GAME_API_H
|
|
|
|
#define GAME_API_H
|
|
|
|
|
|
|
|
|
2024-09-16 06:07:01 +00:00
|
|
|
#include "twn_context.h"
|
2024-10-07 14:53:09 +00:00
|
|
|
#include "twn_draw.h"
|
2024-09-16 06:07:01 +00:00
|
|
|
#include "twn_audio.h"
|
|
|
|
#include "twn_util.h"
|
|
|
|
#include "twn_input.h"
|
2024-08-26 21:33:37 +00:00
|
|
|
#include "twn_engine_api.h"
|
2024-07-08 00:44:20 +00:00
|
|
|
|
2024-08-21 13:55:34 +00:00
|
|
|
|
|
|
|
/* sole game logic and display function.
|
|
|
|
all state must be used from and saved to supplied state pointer. */
|
2024-08-26 21:33:37 +00:00
|
|
|
TWN_API extern void game_tick(void);
|
2024-08-21 13:55:34 +00:00
|
|
|
|
|
|
|
/* called when application is closing. */
|
2024-08-26 21:33:37 +00:00
|
|
|
TWN_API extern void game_end(void);
|
|
|
|
|
2024-07-08 00:44:20 +00:00
|
|
|
|
|
|
|
#endif
|