#include <iostream>
#include <SFML/Graphics.hpp>
int main ()
{
sf::RenderWindow window(sf::VideoMode( 800, 600 ), "C++ Programming Test");
sf::Font arial;
if ( !arial.loadFromFile ( "arial.ttf" ) )
{ }
int gold;
gold = 100;
sf::Text goldtext ( "You have", arial, gold = 12 );
goldtext.setPosition ( 700, 100 );
while (window.isOpen())
{
window.close();
}
window.clear();
window.draw ( goldtext );
window.display();
return 0;
}
I've been looking at some of the books you guys gave me and already it's starting to help a lot, I can even ask questions in a less noobish way!
Right now I'm trying to combine integers with SFML text, so far I haven't got any errors after some tinkering but the screen just opens and closes without doing anything.
Have I missed something out that's obvious?