-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gloomthing.h
35 lines (33 loc) · 891 Bytes
/
Gloomthing.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
#pragma once
#include <SFML\Graphics.hpp>
#include "Animation.h"
class Gloomthing
{
public:
enum Action { Generate,LGenerate,Crunch,LCrunch,Idle,LIdle,Die,LDie};
Gloomthing(Texture *Gloomthing_Texture, Vector2u Size, float Switch_Time, Vector2f Position);
~Gloomthing();
void Gloomthing_Update(float Difference, Vector2f Player_Position, RenderWindow &window);
Sprite& Get_Body()
{
return Gloomthing_Body;
}
void Draw(RenderWindow &window)
{
window.draw(Gloomthing_Body);
}
int Score = 10;
bool isDying = false;
int Gloomthing_Health = 50;
bool Gloomthing_Visible = false,Gloomthing_Dying = false;
std::string name = "Gloomthing";
private:
float Count_Time = 0, Total_Time = 0, GenerateT_Time = 0, Generate_Time = 0;
Sprite Gloomthing_Body;
Animation Gloomthing_Animation;
int Row;
bool isGenerating = true;
RectangleShape HP_Bar;
Text Name;
Font Title_Font;
};