Added folder structure and default main layout
This commit is contained in:
parent
a18ea3fd82
commit
27db32f692
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