Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - peter_zof

Pages: [1]
1
General / Re: First game
« on: March 25, 2013, 10:00:48 am »
I read some SFML tutorials, but I don't know how to load map for example. I have very simple program:

CODE:

#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow oknoAplikacji( sf::VideoMode( 800, 600, 32 ), "Kurs SFML - http://cpp0x.pl" );
    while( oknoAplikacji.isOpen() )
    {
        sf::Event zdarzenie;
        while( oknoAplikacji.pollEvent( zdarzenie ) )
        {
            if( zdarzenie.type == sf::Event::Closed )
                 oknoAplikacji.close();
           
            if( zdarzenie.type == sf::Event::KeyPressed && zdarzenie.key.code == sf::Keyboard::Escape )
                 oknoAplikacji.close();
           
            if( zdarzenie.type == sf::Event::MouseButtonPressed && zdarzenie.mouseButton.button == sf::Mouse::Middle )
                 oknoAplikacji.close();
           
        }
        oknoAplikacji.clear( sf::Color( 255, 0, 0 ) );
        oknoAplikacji.display();
    }
    return 0;
}


However I don't know what to do next?

2
General / First game
« on: March 25, 2013, 08:20:04 am »
Hey!

I want to write my first game in SFML and i need some advice. I have a solid bases in C++ language, but i never uses graphic libraries :)

Pages: [1]
anything