-
Notifications
You must be signed in to change notification settings - Fork 0
/
PantallaJuego.h
50 lines (45 loc) · 1.19 KB
/
PantallaJuego.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
41
42
43
44
45
46
47
48
49
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: PantallaJuego.h
* Author: gabrielascurra
*
* Created on 27 de mayo de 2018, 12:27
*/
#ifndef PANTALLAJUEGO_H
#define PANTALLAJUEGO_H
#include <SFML/Graphics.hpp>
#include "Asteroide.h"
#include <array>
#include <list>
#include <SFML/Audio/Music.hpp>
#include <SFML/Audio/SoundBuffer.hpp>
#include <SFML/Audio/Sound.hpp>
class PantallaJuego {
public:
PantallaJuego();
int Run(sf::RenderWindow &App);
void setRunning(bool run);
private:
sf::Texture texturaAsteroide;
sf::Texture texturaAsteroide2;
sf::Texture texturaAsteroide3;
sf::Texture texturaLuna;
sf::Texture texturaBala;
sf::Texture texturaNaveReal;
sf::Texture fondo; // creo una textura para el fondo
sf::Texture explosion;
//Sonidos
sf::Music musicaFondo;
sf::SoundBuffer explosionNaveBuffer;
sf::Sound explosionNaveSound;
sf::SoundBuffer explosionAstBuffer;
sf::Sound explosionAstSound;
//Texto
sf::Text score;
sf::Text cuentaRegresiva;
};
#endif /* PANTALLAJUEGO_H */