fixed imago 565, started on menu
[eradicate] / src / game.c
index 0fc762d..23aa25c 100644 (file)
@@ -1,27 +1,31 @@
 #include "game.h"
+#include "screens.h"
 
 int fb_width, fb_height;
 long fb_size;
-void *fb_pixels, *vmem;
+uint16_t *fb_pixels;
 
 long time_msec;
 
-void (*swap_buffers)(void*);
+void (*draw)(void);
+void (*key_event)(int key, int pressed);
 
 
-int game_init(int argc, char **argv)
+int init(int argc, char **argv)
 {
+       if(intro_init() == -1) {
+               return -1;
+       }
+       if(menu_init() == -1) {
+               return -1;
+       }
+
+       intro_start();
        return 0;
 }
 
-void game_cleanup(void)
-{
-}
-
-void game_draw(void)
-{
-}
-
-void game_keyboard(int key, int press)
+void cleanup(void)
 {
+       intro_cleanup();
+       menu_cleanup();
 }