Another SFML pong error.... :(

Started by
11 comments, last by superman3275 11 years, 6 months ago
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!
Advertisement
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.

https://www.kbasm.com -- My personal website

https://github.com/wqking/eventpp  eventpp -- C++ library for event dispatcher and callback list

https://github.com/cpgf/cpgf  cpgf library -- free C++ open source library for reflection, serialization, script binding, callbacks, and meta data for OpenGL Box2D, SFML and Irrlicht.

Look in the beginner section! I finished the game thanks to you guys' help!!!!!
:) :) :) :)

I'm a game programmer and computer science ninja !

Here's my 2D RPG-Ish Platformer Programmed in Python + Pygame, with a Custom Level Editor and Rendering System!

Here's my Custom IDE / Debugger Programmed in Pure Python and Designed from the Ground Up for Programming Education!

Want to ask about Python, Flask, wxPython, Pygame, C++, HTML5, CSS3, Javascript, jQuery, C++, Vimscript, SFML 1.6 / 2.0, or anything else? Recruiting for a game development team and need a passionate programmer? Just want to talk about programming? Email me here:

hobohm.business@gmail.com

or Personal-Message me on here !

This topic is closed to new replies.

Advertisement