2021-12-11 21:32:48 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <assert.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
#include <gdk/gdkkeysyms.h>
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
#include "game.h"
|
|
|
|
|
|
|
|
double delta = DEFAULT_DELTA; /* seconds */
|
|
|
|
|
2022-05-30 15:59:45 +02:00
|
|
|
int width = DEFAULT_WIDTH;
|
|
|
|
int height = DEFAULT_HEIGHT;
|
2021-12-11 21:32:48 +01:00
|
|
|
|
|
|
|
/* Graphics System
|
|
|
|
*/
|
|
|
|
GtkWidget * canvas;
|
|
|
|
|