Added rumble on enemy hit, added try for teleport

This commit is contained in:
jancoow
2016-06-22 02:58:45 +02:00
parent c9e5be2573
commit 2230682a85
8 changed files with 42 additions and 2 deletions
+1
View File
@@ -86,6 +86,7 @@ void Player::draw() {
void Player::HpDown(int damage)
{
int newHealth = health - damage;
isHit = true;
if (newHealth <= 0)
{
exit(0);