Serduszka działają

do zrobienia jeszcze animacja uderzenia się w meteoryt (miganie) i wybuch statku przy uderzeniu się w meteoryt po raz trzeci
This commit is contained in:
2024-12-06 12:24:39 +01:00
parent 3b637508e1
commit 2f9e0ba236
6 changed files with 213 additions and 138 deletions

View File

@@ -1,9 +1,12 @@
#include "../headers/Player.h"
#include "../headers/Bullet.h"
#include <utility>
Player::Player(int x, int y, std::string path) : Actor(x, y, path) {
#include "../headers/Player.h"
Player::Player(int x, int y, std::string path) : Actor(x, y, std::move(path)) {
bulletTexture.loadFromFile("../assets/img/bullets/bullet_pink.png");
rocketTexture.loadFromFile("../assets/img/rockets/Rocket_111.png");
hp = 3;
damageDealClock.restart();
};
void Player::shoot() {