Advertisement
Kynato

main.cpp

Jan 17th, 2018
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. #include <SFML/Graphics.hpp>
  2. #include <iostream>
  3. #include <time.h>
  4. #include <windows.h>
  5. #include <conio.h>
  6. #include <cstdlib>
  7. #include <cstdio>
  8. #include <queue>
  9.  
  10. using namespace std;
  11.  
  12. bool bGame=true;
  13. sf::RenderWindow window(sf::VideoMode(600, 600), "Snejk!");
  14.  
  15. #define szerokosc 600
  16. #define wysokosc 600
  17.  
  18. #include "struktury.hpp"
  19. #include "plansza.hpp"
  20. #include "funkcje.hpp"
  21.  
  22. int main()
  23. {
  24.     srand(time(NULL));
  25.     reset();
  26.     stolowka();
  27.  
  28.     while(bGame)
  29.     {
  30.         klawiszologia();
  31.         movement();
  32.         wyswietlanie();
  33.         window.display();
  34.         Sleep(300);
  35.     }
  36.  
  37. window.close();
  38. return 0;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement