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/wave.hpp
marti.lloveras f986d6cb2d wave files
2017-01-21 18:23:57 +01:00

26 lines
549 B
C++

#ifndef WAVE_HPP
#define WAVE_HPP
#include "commons.hpp"
class Wave : public sf::Sprite{
private:
//CONFIG
const std::string spriteFile = WORK_DIR+"Resources/pulsation.png";
//POSICIO PLAYER 1
float posX1 = W_WIDTH*0.05f, posY1 = W_HEIGHT*0.6f;
//POSICIO PLAYER 2
float posX2 = W_WIDTH*0.65f, posY2 = W_HEIGHT*0.6f;
//END CONFIG
bool direction; //TRUE => CAP A LA DRETA
sf::Texture texture;
float timestamp;
public:
Wave();
Wave(bool dir);
void update(float deltaTime);
};
#endif // WAVE_HPP