This repository has been archived on 2022-12-14. You can view files and clone it, but cannot push or open issues or pull requests.
WaveGGJ17/VaporWaveWars/character.hpp
marti.lloveras 7f79a87e7f Bazzinga
2017-01-21 04:35:46 +01:00

26 lines
582 B
C++

#ifndef CHARACTER_HPP
#define CHARACTER_HPP
#include "commons.hpp"
class Character : public sf::Sprite{
private:
//CONFIG
const double frameTime = 0.2;
const int numFrames = 4;
const std::string spriteFile = "./Resources/spreadsheet.png";
//END CONFIG
sf::Texture texture;
int indexX, indexY, width, height;
int posX, posY;
PlayerState::playerState actualState, previousState;
float timestamp, next;
public:
Character();
void update(float deltaTime);
void setState(PlayerState::playerState state);
};
#endif // CHARACTER_HPP