Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef BALL_H
- #define BALL_H
- #include <SFML/Graphics.hpp>
- #include <SFML/Audio.hpp>
- class Ball
- {
- private:
- sf::RenderWindow *App;
- sf::Sprite sprite;
- sf::Sound sBounceWall;
- sf::Sound sBouncePaddle;
- float speed;
- float angle;
- public:
- Ball(sf::RenderWindow *App);
- ~Ball(){};
- bool refresh(sf::Sprite *LeftPaddle, sf::Sprite *RightPaddle);
- sf::Sprite getSprite();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment