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 - mjtilbrook1

Pages: [1]
1
Window / Re: Poll Events
« on: November 20, 2016, 03:46:43 pm »
thanks i guess that makes sense, thats helped me out a bit, some things are just hard to understand haha  :P

2
Window / Poll Events
« on: November 20, 2016, 02:57:32 pm »
Hi guys, can someone please explain to me as simply as you can how pollEvents work, im struggling to understand them, like, i get the rest of the code, just not the pollEvent part

thanks



while (gameWindow.isOpen())
   {
      sf::Event event;

      while (gameWindow.pollEvent(event))
      {
         if (event.type == sf::Event::Closed)
            gameWindow.close();
      }

   
      gameWindow.display();
   }

3
General / Re: Learning sfml and have a question
« on: November 19, 2016, 05:29:17 pm »
Im watching this



thats just one of the videos in a series

if there is anything you reccomend me watching please let me know anything will help me

4
Rate this book out of 10?
also  do you recommend this over SFML Game Development?

5
General / Learning sfml and have a question
« on: November 19, 2016, 05:26:28 am »
Im currently learning SFML and im reading SFML Game Development and within the book it shows that i should run the game in a game class which has the methods
 public:
   Game();
   void Run();
   
private:
   void ProcessEvents();
   void Update();
   void Render();


now im also watching youtube tutorials and the tutorials are showing just having it all run in the main function,

which should i be doing?

thanks

Pages: [1]
anything