You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
780 B
C

6 years ago
#pragma once
#include <allegro5/allegro.h>
#include <allegro5/allegro_audio.h>
6 years ago
#include "screen.h"
#include "ship.h"
#include "bullet.h"
#include "object_manager.h"
6 years ago
//Main screen for gameplay
class GameScreen : public Screen {
public:
std::map<std::string, ALLEGRO_BITMAP*> sprites;
std::map<std::string, ALLEGRO_SAMPLE*> samples;
6 years ago
int score;
int level;
6 years ago
bool music;
bool win;
int map_y;
ObjectManager objects;
unsigned int max_bullets;
std::vector<NewEnemy> enemy_q;
6 years ago
GameScreen(std::map<std::string, ALLEGRO_BITMAP*> _sprites, std::map<std::string, ALLEGRO_SAMPLE*> _samples);
void reset();
6 years ago
void run(ALLEGRO_FONT* font);
void redraw(ALLEGRO_FONT* font);
void back();
void cont();
private:
void play(ALLEGRO_SAMPLE_INSTANCE* x);
void build_enemy_queue();
6 years ago
};