#ifndef MAIN_H #define MAIN_H #include #include #include #include #include #include enum gamestate_enum { GAMESTATE_LOADING, GAMESTATE_MENU, GAMESTATE_ABOUT, GAMESTATE_INTRO }; struct Menu { ALLEGRO_BITMAP *menu_bitmap, *menu_fade_bitmap, *image; ALLEGRO_BITMAP *cloud_bitmap, *cloud, *cloud2_bitmap, *cloud2, *pie, *pie_bitmap; ALLEGRO_BITMAP *pinkcloud_bitmap, *pinkcloud, *rain; ALLEGRO_BITMAP *mountain_bitmap, *mountain; float cloud_position, cloud2_position; int mountain_position; ALLEGRO_SAMPLE *sample, *rain_sample; ALLEGRO_FONT *font_title, *font_subtitle, *font, *font_selected; int selected; bool options; }; struct Loading { ALLEGRO_BITMAP *loading_bitmap, *image; }; struct Game { ALLEGRO_DISPLAY *display; ALLEGRO_FONT *font, *font_console; enum gamestate_enum gamestate; enum gamestate_enum loadstate; ALLEGRO_EVENT_QUEUE *event_queue; ALLEGRO_TIMER *timer; ALLEGRO_BITMAP *console; bool showconsole; struct Menu menu; struct Loading loading; }; void PreloadGameState(struct Game *game); void UnloadGameState(struct Game *game); void LoadGameState(struct Game *game); void PrintConsole(struct Game *game, char* text); void DrawConsole(struct Game *game); #endif