Added enemy damage

This commit is contained in:
jancoow
2016-06-22 01:37:47 +02:00
parent 5f31b2e602
commit 5b6e7b54c7
6 changed files with 13 additions and 118 deletions
+3
View File
@@ -125,6 +125,9 @@ void CrystalPoint::update()
leftcontroller->lastButton = leftcontroller->button;
controller.rumble(leftcontroller->controllerId, 100, 200);
player->NextLeftWeapon();
}else if(!leftcontroller->lastJoystickButton && leftcontroller->joystickButton){
leftcontroller->lastJoystickButton = leftcontroller->joystickButton;
player->hit = true;
}
}