emmmm, strzal niby jest w bullecie, ale chujowo to dziala
This commit is contained in:
@@ -1,14 +1,23 @@
|
||||
|
||||
#ifndef LOTOSTATEK_BULLET_H
|
||||
#define LOTOSTATEK_BULLET_H
|
||||
|
||||
#include "Projectile.h"
|
||||
#include "SFML/Graphics/Texture.hpp"
|
||||
#include "SFML/Audio/Sound.hpp"
|
||||
#include "SFML/Audio/SoundBuffer.hpp"
|
||||
|
||||
class Bullet : public Projectile {
|
||||
public:
|
||||
Bullet(float x, float y, sf::Texture &texture) : Projectile(x,y, texture) {};
|
||||
Bullet(float x, float y, sf::Texture &texture);
|
||||
void update() override;
|
||||
|
||||
// Dodanie metody do odtwarzania dźwięku
|
||||
void playShootSound();
|
||||
|
||||
private:
|
||||
sf::Sound shootSound;
|
||||
sf::SoundBuffer shootBuffer; // Dodanie bufora dźwięku
|
||||
};
|
||||
|
||||
|
||||
#endif //LOTOSTATEK_BULLET_H
|
||||
|
||||
Reference in New Issue
Block a user