Merge pull request #1 from TriantaTV/master
Added folder structure and default main layout Branch mistake
This commit is contained in:
commit
4295a5cd22
22
app/main.cpp
Normal file
22
app/main.cpp
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#include <iostream>
|
||||||
|
#include <SFML\Main.hpp>
|
||||||
|
#include <SFML\Graphics.hpp>
|
||||||
|
#include <SFML\Window.hpp>
|
||||||
|
#include <SFML\System.hpp>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int videoSizeHorizontal, videoSizeVertical;
|
||||||
|
videoSizeHorizontal = 1280;
|
||||||
|
videoSizeVertical = 720;
|
||||||
|
sf::RenderWindow window(sf::VideoMode(videoSizeHorizontal, videoSizeVertical), "SnakePlusPlus");
|
||||||
|
while (window.isOpen())
|
||||||
|
{
|
||||||
|
while (window.pollEvent(event))
|
||||||
|
{
|
||||||
|
if ((event.type == sf::Event::Closed) || (sf::Keyboard::isKeyPressed(sf::Keyboard::Escape)))
|
||||||
|
window.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
22
src/main.cpp
Normal file
22
src/main.cpp
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#include <iostream>
|
||||||
|
#include <SFML\Main.hpp>
|
||||||
|
#include <SFML\Graphics.hpp>
|
||||||
|
#include <SFML\Window.hpp>
|
||||||
|
#include <SFML\System.hpp>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int videoSizeHorizontal, videoSizeVertical;
|
||||||
|
videoSizeHorizontal = 1280;
|
||||||
|
videoSizeVertical = 720;
|
||||||
|
sf::RenderWindow window(sf::VideoMode(videoSizeHorizontal, videoSizeVertical), "SnakePlusPlus");
|
||||||
|
while (window.isOpen())
|
||||||
|
{
|
||||||
|
while (window.pollEvent(event))
|
||||||
|
{
|
||||||
|
if ((event.type == sf::Event::Closed) || (sf::Keyboard::isKeyPressed(sf::Keyboard::Escape)))
|
||||||
|
window.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user