-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenu.h
40 lines (35 loc) · 863 Bytes
/
Menu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef MENU_H
#define MENU_H
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_ttf.h"
#include <fstream>
#include "CreaMapas.h"
using namespace std;
//seleccion 1 jugar
//seleccion 2 score
//seleccion 3 instrucciones
class Menu
{
public:
int seleccion;
bool terminar, instr, score;
string names[3];
int scores[3];
SDL_Surface *background;
SDL_Surface *instrucciones;
SDL_Surface *botones;
SDL_Surface *screen;
TTF_Font *font = NULL;
CreaMapas *creador;
Menu(SDL_Surface* sc);
virtual ~Menu();
void render();
void eventos(SDL_Event* evento);
protected:
private:
void applySurface(int x, int y, SDL_Surface* imagen, SDL_Rect *clip=NULL);
void leerScore();
SDL_Rect clips[8];
};
#endif // MENU_H