SFML community forums

Help => General => Topic started by: Alter on February 09, 2017, 05:40:12 pm

Title: Hi, I want to write a game.
Post by: Alter on February 09, 2017, 05:40:12 pm
Hello, I am new to SFML. I managed to write only two little projects in it but it's not like I can't write anything. It's rather problem of resources, structure and objects management and understanding. While I do understand what's going on, I don't know how would proper object oriented structure look like, where to store every entity, how to work on them, erase when no longer needed. It's like I am having some puzzles but I can't solve it and see whole picture without missing pieces. I am completly lost. I want to learn how to write my game elegantly instead of throwing everything into main function. To learn how and where should I use components, managers, systems. What would they could do and consist of. I am completly lost and overhelmed by it. Could use some help  :-[
Title: Re: Hi, I want to write a game.
Post by: sjaustirni on February 09, 2017, 06:07:22 pm
I don't have a lot of time now, so I'll keep it short.


Good luck :D
Title: Re: Hi, I want to write a game.
Post by: jamesL on February 09, 2017, 10:11:12 pm
there are plenty of books on SFML that go into those details
https://www.packtpub.com/all?search=%22sfml%22


there's plenty of videos on SFML -- many won't go into the detail you want, but they will show how to make games 
https://www.youtube.com/results?search_query=sfml 

I think these are great videos
https://www.youtube.com/playlist?list=PLB_ibvUSN7mzUffhiay5g5GUHyJRO4DYr

he crams every game into one file
they are simple games so they don't use an entity manager

but you lean the basics of SFML and how much you can do with just a few lines of code
Title: Re: Hi, I want to write a game.
Post by: Mr_Blame on February 10, 2017, 07:33:03 am
Of if the main things, that you need to make, in order to have a good game, is story/lord/etc. (Well, until you're planning to make chess  ;))