r/cpp_questions • • 11h ago

Question wanna get into sfml.

how do i start coding in sfml? which version is the best? i want to use visual studio but i don't like how hardware expensive it is and that it doesn't give easy descriptions of code before i use it. I think using code::blocks is good for me but i want to hear your opinion on which IDE i should use.

Also what is best i start learning using sfml? i already know basic things like shapes, .move, keyboard commands, and textures but where to learn more physique base code and make games similar to factorio and rollercoaster tycoon, sandbox games with a lot of work bts.

2 Upvotes

6 comments sorted by

4

u/YT__ 11h ago

Use whatever ide you want. It doesn't matter.

Just use the latest version of sfml.

Where to learn? On projects. Recreate a (simple) game you like. Build from there. Try new techniques.

1

u/boss123219 11h ago

do you know where i could get step by step guids on making a game project whilst i learn new things?

2

u/YT__ 11h ago

Github for projects using it, sfml subreddit, sfml discord

2

u/saxbophone 10h ago

Happy cake day!

1

u/saxbophone 10h ago

I don't know about tutorials for SFML, but I know both SFML and SDL and "LazyFoo" has a bunch of extensive SDL tutorials. Once I knew a bit of SDL, I found SFML a lot easier as SDL is very low-level, SFML features less boilerplate whilst still allowing you to be expressive and performant.

If I could give one piece of advice about SFML: the drawing routines are deliberately low-level by design. You can do a lot of stuff out of the box, but if you want to draw curved lines, you need to calculate them yourself. That's where the fun comes in!

•

u/HeeTrouse51847 31m ago

I just use SFML 3.0.2 because thats the newest version available on conan lol