123456789101112131415161718 |
- #include <SFML/Graphics.hpp>
- #include <SFML/Audio.hpp>
-
- class Game {
- private:
- sf::Clock AITimer,
- clock;
- sf::Time AITime;
- float paddleSpeed,
- rightPaddleSpeed,
- ballAngle;
- bool isPlaying;
- const int gameWidth = 800, gameHeight = 600;
- public:
- Game();
- void whilePlaying(Paddle leftPaddle, Paddle rightPaddle, Ball ball, sf::Window window);
-
- };
|