This repository has been archived on 2025-06-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
LotoStatek/headers/Bullet.h

24 lines
518 B
C++

#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);
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