mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-01-09 16:28:02 +01:00
43 lines
934 B
C
43 lines
934 B
C
|
#ifndef MAIN_H
|
||
|
#define MAIN_H
|
||
|
|
||
|
#include <allegro5/allegro.h>
|
||
|
#include <allegro5/allegro_audio.h>
|
||
|
#include <allegro5/allegro_acodec.h>
|
||
|
#include <allegro5/allegro_image.h>
|
||
|
#include <allegro5/allegro_font.h>
|
||
|
#include <allegro5/allegro_ttf.h>
|
||
|
|
||
|
enum gamestate_enum {
|
||
|
GAMESTATE_LOADING,
|
||
|
GAMESTATE_MENU
|
||
|
};
|
||
|
|
||
|
struct Menu {
|
||
|
ALLEGRO_BITMAP *menu_bitmap, *menu_fade_bitmap, *image;
|
||
|
ALLEGRO_BITMAP *cloud_bitmap, *cloud;
|
||
|
ALLEGRO_BITMAP *pinkcloud_bitmap, *pinkcloud;
|
||
|
float cloud_position;
|
||
|
ALLEGRO_SAMPLE *sample;
|
||
|
};
|
||
|
|
||
|
struct Loading {
|
||
|
ALLEGRO_BITMAP *loading_bitmap, *image;
|
||
|
};
|
||
|
|
||
|
struct Game {
|
||
|
ALLEGRO_DISPLAY *display;
|
||
|
ALLEGRO_FONT *font;
|
||
|
enum gamestate_enum gamestate;
|
||
|
enum gamestate_enum loadstate;
|
||
|
ALLEGRO_EVENT_QUEUE *event_queue;
|
||
|
ALLEGRO_TIMER *timer;
|
||
|
struct Menu menu;
|
||
|
struct Loading loading;
|
||
|
};
|
||
|
|
||
|
void PreloadGameState(struct Game *game);
|
||
|
void UnloadGameState(struct Game *game);
|
||
|
void LoadGameState(struct Game *game);
|
||
|
|
||
|
#endif
|