Archived
Strzelanie Lewym i Prawym przyciskiem myszy.
Dodanie tekstury strzału alternatywnego
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user