flying-balls/game.h

22 lines
395 B
C
Raw Normal View History

#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 */
#define DEFAULT_DELTA 0.01
2023-04-21 09:01:35 +02:00
extern int width; /* game canvas width */
extern int height; /* game canvas height */
#define DEFAULT_WIDTH 800
#define DEFAULT_HEIGHT 800
2023-04-21 09:01:35 +02:00
extern GtkWidget* canvas; /* game canvas object */
#endif