Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef MENU_STATE_H
- #define MENU_STATE_H
- #include <SFML/Graphics.hpp>
- enum Menu_States{Play, Help, Quit};
- class Menu_State
- {
- sf::CircleShape triangle; //shows which one option u are currently hovering over
- sf::Text play_game, quit_game, help;
- sf::Font font;
- sf::Clock clock; //clock for restarting time while choosing states
- int state; //checking if it is play, help, or quit
- public:
- Menu_State(sf::Font &c_font);
- void moveInMenu();
- void check(); //checks what option is selected and highlights it
- int checkIfClicked() const;
- void draw_options(sf::RenderWindow *window) const;
- };
- #endif MENU_STATE_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement