emmmm, strzal niby jest w bullecie, ale chujowo to dziala

This commit is contained in:
2024-12-04 23:33:21 +01:00
parent 9d4af21d4d
commit 8db6b8572d
3 changed files with 27 additions and 5 deletions

View File

@@ -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