Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SFML/Graphics.hpp>
- #include <time.h>
- using namespace sf;
- int main()
- {
- RenderWindow window(VideoMode(320, 480), "The Game!"); // window config
- while (window.isOpen()) // game loop
- {
- Event e;
- while (window.pollEvent(e)) // close window
- {
- if (e.type == Event::Closed)
- window.close();
- }
- window.clear(Color::White);
- window.display();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement