2021-12-11 21:32:48 +01:00
|
|
|
#ifndef GAME_H_INCLUDED
|
|
|
|
#define GAME_H_INCLUDED
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
/* simulation/game framework
|
|
|
|
*/
|
|
|
|
|
2023-04-21 09:01:35 +02:00
|
|
|
extern double delta; /* simulation time delta in seconds */
|
2021-12-11 21:32:48 +01:00
|
|
|
|
2023-05-19 15:24:11 +02:00
|
|
|
#define DEFAULT_DELTA 0.01
|
2021-12-11 21:32:48 +01:00
|
|
|
|
2023-04-21 09:01:35 +02:00
|
|
|
extern int width; /* game canvas width */
|
|
|
|
extern int height; /* game canvas height */
|
2021-12-11 21:32:48 +01:00
|
|
|
|
2023-08-02 18:05:30 +02:00
|
|
|
#define DEFAULT_WIDTH 1000
|
|
|
|
#define DEFAULT_HEIGHT 1000
|
2021-12-11 21:32:48 +01:00
|
|
|
|
2023-04-21 09:01:35 +02:00
|
|
|
extern GtkWidget* canvas; /* game canvas object */
|
2021-12-11 21:32:48 +01:00
|
|
|
|
|
|
|
#endif
|