26 lines
435 B
C++
26 lines
435 B
C++
#include "main.h";
|
|
|
|
int main()
|
|
{
|
|
RenderWindow window(VideoMode(SCREEN_WIDTH, SCREEN_HEIGHT), "Space Invader", Style::Titlebar | Style::Close);
|
|
window.setFramerateLimit(60);
|
|
window.setVerticalSyncEnabled(true);
|
|
|
|
while (window.isOpen())
|
|
{
|
|
Event event;
|
|
while (window.pollEvent(event))
|
|
{
|
|
if (event.type == Event::Closed)
|
|
{
|
|
window.close();
|
|
}
|
|
|
|
window.clear(Color::Black);
|
|
|
|
window.display();
|
|
}
|
|
}
|
|
|
|
return 0;
|
|
} |