Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Searching a good open source project to learn sfml  (Read 6361 times)

0 Members and 1 Guest are viewing this topic.

NewReasonz

  • Newbie
  • *
  • Posts: 4
    • View Profile
Searching a good open source project to learn sfml
« on: July 27, 2016, 12:34:20 pm »
Hello community,

I'am new to sfml and would like to read some source code of an open source(of course) project to learn more about sfml and how to structure "bigger" projects.

I searched a bit in the project section on my own, but I don't really know which project is most suitable to learn from.

so it would be really nice if someone could recommend me a small project with really well written code(C++) to learn from  ;D.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Searching a good open source project to learn sfml
« Reply #1 on: July 27, 2016, 12:40:13 pm »
Seems like you're a good candidate for the "SFML Game Development" book. Even if you don't want to read the book, the repository is publicly available, and contains the code for all the chapters.
Laurent Gomila - SFML developer

GameBear

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
    • Email
Re: Searching a good open source project to learn sfml
« Reply #2 on: July 27, 2016, 01:15:43 pm »
What are your programming knowledge? Do you know how to use c++ I'm general or?

Will help us find better samples if we know :)
string message = "some random dude";
cout << "I'm just " << message;

NewReasonz

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Searching a good open source project to learn sfml
« Reply #3 on: July 27, 2016, 01:33:53 pm »
What are your programming knowledge? Do you know how to use c++ I'm general or?

Will help us find better samples if we know :)

I would say that my c++ knowledge is average. I programmed little programs before for linux and windows (like a password manager) , I worked with the Window API and was a bit into game hacking(i know, shame on me :-X).

But I'am not really into the newest features of c++11/14.

Quote
Seems like you're a good candidate for the "SFML Game Development" book. Even if you don't want to read the book, the repository is publicly available, and contains the code for all the chapters.

A book would be awseome, but I'am only a poor student and need to save up for my driving licence  ;), maybe i can get a used one for good price, thanks for the suggestion.

GameBear

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
    • Email
Re: Searching a good open source project to learn sfml
« Reply #4 on: July 27, 2016, 01:54:46 pm »
Okay :)

Well I'd suggest a bit of c++ basic game programming first.
To learn a bit about how a game is put together.

My suggestion if you already know c++ is to take the challenges on this YouTube play list:

C++/Game Tutorials: https://www.youtube.com/playlist?list=PLSPw4ASQYyynKPY0I-QFHK0iJTjnvNUys

And if you feel uncertain about some aspects of c++ you can simply watch the whole playlist. There are nothing in the challenges not covered in a previous video :)
It's pure consol, but will give you a lot of background knowledge on games. Each challenge is followed by a full explanation on how to program it if you get stuck.

When you have completed that I'd suggest the same book as laurent. But also Web recourses like this pong clone:
http://gamecodeschool.com/sfml/coding-a-simple-pong-game-with-sfml/

Combined the videos and that Web recourse should give you a great start.
Sfml quickly becomes intuitive when you know the basics of it and game programming :)

Best regards and good luck :)
« Last Edit: July 27, 2016, 01:56:52 pm by GameBear »
string message = "some random dude";
cout << "I'm just " << message;

NewReasonz

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Searching a good open source project to learn sfml
« Reply #5 on: July 27, 2016, 02:28:03 pm »
Thank you very much for your help   :)

I will definitely work through the sources you suggest me ;D

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Searching a good open source project to learn sfml
« Reply #6 on: July 27, 2016, 03:16:33 pm »

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Searching a good open source project to learn sfml
« Reply #7 on: July 27, 2016, 07:36:13 pm »
These two are not too big and each of them was written over one day and night but maybe they'll help.
http://en.sfml-dev.org/forums/index.php?topic=20228.msg145501
http://en.sfml-dev.org/forums/index.php?topic=19796.msg142486
Back to C++ gamedev with SFML in May 2023

NewReasonz

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Searching a good open source project to learn sfml
« Reply #8 on: July 28, 2016, 11:11:51 am »
Thank you  ;D

I'll take a look at them

GameBear

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
    • Email
Re: Searching a good open source project to learn sfml
« Reply #9 on: July 28, 2016, 12:39:53 pm »
You are most welcome, don't forget to keep us updated on your progress and to inform us if you need any help :)
string message = "some random dude";
cout << "I'm just " << message;