Strzelanie Lewym i Prawym przyciskiem myszy.

Dodanie tekstury strzału alternatywnego
This commit is contained in:
2024-11-18 15:45:57 +01:00
parent fcabc0534a
commit a69dc434a9
6 changed files with 24 additions and 8 deletions
+4
View File
@@ -2,12 +2,14 @@
#define LOTOSTATEK_PLAYER_H
#include <chrono>
#include "Actor.h"
class Player : public Actor {
public:
Player(int x, int y, std::string path);
void shoot() override;
void alternate_shoot();
void setFirerate(unsigned int firerate);
void move(float deltaX, float deltaY) override;
void moveLeft() override;
@@ -16,6 +18,8 @@ public:
void moveDown() override;
private:
std::chrono::steady_clock::time_point lastShotTime = std::chrono::steady_clock::now();
std::vector<Bullet> rightBullets;
};