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.
25 lines
639 B
C
25 lines
639 B
C
6 years ago
|
#pragma once
|
||
6 years ago
|
#include "line.h"
|
||
6 years ago
|
#include "screen.h"
|
||
|
|
||
6 years ago
|
//Main screen for gameplay
|
||
6 years ago
|
class GameScreen : public Screen {
|
||
|
public:
|
||
|
std::map<std::string, ALLEGRO_BITMAP*> sprites;
|
||
6 years ago
|
std::map<std::string, ALLEGRO_SAMPLE*> samples;
|
||
6 years ago
|
std::vector<Line> lines;
|
||
6 years ago
|
unsigned int selected;
|
||
6 years ago
|
int max_catchers;
|
||
|
int catchers;
|
||
|
int score;
|
||
|
int difficulty;
|
||
6 years ago
|
bool music;
|
||
6 years ago
|
|
||
6 years ago
|
GameScreen(std::map<std::string, ALLEGRO_BITMAP*> _sprites, std::map<std::string, ALLEGRO_SAMPLE*> _samples);
|
||
6 years ago
|
|
||
6 years ago
|
void reset(int _lines, int _max_catchers, int _difficulty);
|
||
6 years ago
|
void run(ALLEGRO_FONT* font);
|
||
|
void redraw(ALLEGRO_FONT* font);
|
||
|
void back();
|
||
|
void cont();
|
||
|
};
|