Another SFML pong error.... :(
forward declares makes your life so much easier
if you google the subject you can see all sorts of ways to use them, and it will give you many more options when you are designing your application
there was indeed a time when i didn't know about them trying to sew together an application without them was a nightmare..
it compiled fast! but.. it was a real nightmare, and thank god someone told me about forward declares.. i use it on an as-needed basis!
if you google the subject you can see all sorts of ways to use them, and it will give you many more options when you are designing your application
there was indeed a time when i didn't know about them trying to sew together an application without them was a nightmare..
it compiled fast! but.. it was a real nightmare, and thank god someone told me about forward declares.. i use it on an as-needed basis!
OP, not directly related to your question, but I highly suggest you start from the sample code in SFML package.
It's guaranteed working code (other wise, poke SFML author for a bug report ), and what you need to do is to understand the code, then re-structure it for your need, add more game plays, etc.
There is a Pong sample code and I tested it works very well.
It's guaranteed working code (other wise, poke SFML author for a bug report ), and what you need to do is to understand the code, then re-structure it for your need, add more game plays, etc.
There is a Pong sample code and I tested it works very well.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement