-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsfmldicionarioh.txt
94 lines (71 loc) · 1.57 KB
/
sfmldicionarioh.txt
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#pragma once
#include <iostream>
#include <SFML\Graphics.hpp>
#include <SFML\Audio.hpp>
#include <ctime>
#include <string>
#define SCREEN_HEIGHT 600
#define SCREEN_WIDTH 1000
#define Items 3
#define choose 4
#define MENU 0
#define JOGO 1
#define GAMEOVER 2
class Manager
{
private: //AQUI VOCÊ CRIA AS VARIÁVEIS
sf::RenderWindow *app = nullptr;
sf::Vector2i posicaoMouse;
sf::Event eventos;
std::string dicionario[101];
short estadoTela = MENU;
bool quit = false;
int life = 3;
int Menu = 0;
int userInput = 0;
int x = 50, y = 550;
float dx = 0, dy = 0;
bool countkey = false;
int jumps = 0;
sf::Texture textureEnemy, textureStar;
sf::Sprite spriteEnemy, spriteStar1, spriteStar2, spriteStar3;
float enemy_posX = 600;
float enemy_posY = 220;
float step;
float star_posX = 20;
float star_posY = 20;
sf::CircleShape circle;
sf::RectangleShape rect1;
sf::RectangleShape rect2;
sf::RectangleShape rect3;
sf::RectangleShape chao;
sf::Font font;
sf::Text menu[Items];
sf::Text Difi[choose];
int getpresseditem;
int p[3];
public:
Manager();
~Manager();
void Programa();
void Inputs();
void Update();
void Render();
void UpdateMenu();
void Difficulty();
void UpdateJogo();
void UpdateGameOver();
void Easy();
void Normal();
void Hard();
void Extreme();
void RenderMenu();
void RenderDifficulty();
void RenderJogo();
void RenderGameOver();
void InputTeclado();
void MouseClicado();
void MouseMovido();
void PrintarTeclas();
void CriarDicionario();
};