Advertisement
Balda

Main.cpp

May 22nd, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. #include <SFML/Graphics.hpp>
  2. #include <iostream>
  3. #include "Level.h"
  4.  
  5. using namespace std;
  6. using namespace sf;
  7.  
  8. int main()
  9. {
  10.     RenderWindow window(VideoMode(200, 200), "App");
  11.     Level AppLevel;
  12.     AppLevel.LoadFromFile("Resources/map.tmx");
  13.  
  14.     while (window.isOpen())
  15.     {
  16.         Event event;
  17.         while (window.pollEvent(event))
  18.         {
  19.             if (event.type == Event::Closed)
  20.                 window.close();
  21.         }
  22.         AppLevel.Draw(window);
  23.         window.display();
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement