Implementacja naliczania punktów za zabicie wrogów
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "../headers/Bomber.h"
|
||||
#include "../headers/Bullet.h"
|
||||
#include "../headers/Plansza.h"
|
||||
#include <random>
|
||||
|
||||
Bomber::Bomber(int x, int y, const sf::Texture& texture, const sf::Texture& bulletTexture) : Actor(x, y, texture) {
|
||||
@@ -121,5 +122,6 @@ bool Bomber::isAlive() const {
|
||||
void Bomber::takeDamage() {
|
||||
if (--hp <= 0) {
|
||||
alive = false;
|
||||
Plansza::score += 15;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user