diff options
Diffstat (limited to 'src/Player.cpp')
| -rw-r--r-- | src/Player.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Player.cpp b/src/Player.cpp new file mode 100644 index 0000000..d73ead1 --- /dev/null +++ b/src/Player.cpp @@ -0,0 +1,13 @@ +#include"includes/Global.hpp" +#include"includes/Player.hpp" +Player::Player(sf::Vector2f pozicija,sf::Vector2f velicina,sf::Color boja):Entity(pozicija,velicina,boja) +{ + health=100; + stomptime=0; + xp=0; +} +void Player::updatest(float dt) +{ + if(stomptime>0) stomptime-=dt; + else stomptime=0; +} |
