aboutsummaryrefslogtreecommitdiff
path: root/src/Player.cpp
diff options
context:
space:
mode:
authoraleksav013 <aleksav013@gmail.com>2021-06-01 21:03:32 +0200
committeraleksav013 <aleksav013@gmail.com>2021-06-01 21:03:32 +0200
commitdbe41a2f77774ee716d3ff45db766d6400970f57 (patch)
treeec86f7305bcb2d3eec37bf8e123cb901f80a5a5d /src/Player.cpp
parent82d49a6825af009d950b3a6c18d609da2ef8486c (diff)
Splitting code; Creating Makefile
Diffstat (limited to 'src/Player.cpp')
-rw-r--r--src/Player.cpp13
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;
+}