Sample program SFML library

Im just a beginer in c++.. I find difficult to write program using SFML library..
I want to look through some program using SFML library with its source code. I have to do a program, "battleship" using SFML library. Can anyone help me pls ?
closed account (3qX21hU5)
I would highly recommend that you have a good understand of the basic principles of C++ and Objected Oriented programming before jumping into SFML or any graphics library.

Though with that said I would be more then willing to help you out with anything you don't understand about SFML, though you will need to be more specific then you find SFML difficult. What do you find difficult about it? What do you have so far? The more information you can give us the more we will be able to help you.

If you are stuck on a certain aspect of your game I can post snippets of some of my code that might help give you ideas also. But anyways we basically need more information on what you are exactly stuck on
Last edited on
For contrast, I think it's perfectly OK to start with a graphics library. You have to start with something, so it might as well be something you enjoy.

Have you installed the lib yet? Are you able to build any of the sample programs?

EDIT: fixed contract/contrast. Now I don't sound like as much of a goon.
Last edited on
I side pretty much with Disch.

With the caveat that it might be best to make sure you've got the basics by working through all (or at least most) of the tutorial material on this site first, if you haven't already done so, before moving on to SFML.

And then there are the SFML tutorials:


PS Which IDE and O/S are you working with??
Topic archived. No new replies allowed.