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

Author Topic: any simple example of SFML game  (Read 7209 times)

0 Members and 1 Guest are viewing this topic.

paupav

  • Full Member
  • ***
  • Posts: 156
    • View Profile
    • Email
any simple example of SFML game
« on: July 10, 2014, 11:31:24 pm »
So, can anyone suggest me some simple SFMl project (as simple as possible, it even doesn't have to be playable.) so that I can see how should I create next game or rewrite my snake game.
« Last Edit: July 10, 2014, 11:39:02 pm by paupav »

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: any simple example of SFML game
« Reply #1 on: July 10, 2014, 11:45:14 pm »
You need to ask a more specific question if you want good answers.

Learn How To Ask Questions The Smart Way :)

If all you want is suggestions for simple games to write to practice C++ and SFML skills, then I suggest implementing the following (none of them should take more than an evening, but implementing a simple version of each of them will teach valuable lessons):

paupav

  • Full Member
  • ***
  • Posts: 156
    • View Profile
    • Email
Re: any simple example of SFML game
« Reply #2 on: July 10, 2014, 11:54:43 pm »
I meant project in SFML that someone has made and published code and files. I've found few projects that re too complicated for me (e.g some guy made engine which is used by few games).

I wanna learn more object oriented programming.  And how to move everything outside of the main() function..

http://en.sfml-dev.org/forums/index.php?topic=15765.0

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: any simple example of SFML game
« Reply #3 on: July 11, 2014, 12:08:22 am »
Buy a good book. Then read it.

Mastering C++ can't be done just by watching a few video tutorials and reading a few online documents describing some neat detail.

C++ is a complex language, and mastering it takes (literally) years. If you want your learning to progress as fast as possible, then pick up a few good books written by accomplished and reputable experts in the field and read those (and do the exercises etc).
For example: http://www.amazon.com/dp/0321958314/?tag=stackoverfl08-20 , http://www.amazon.com/Primer-Plus-Edition-Developers-Library/dp/0321776402 or most things on the stackoverflow list: http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
 
Then once you know C++ well (it'll take a couple of years, but don't give up). Then move on to learning various libraries - Like SFML and read books like this: http://www.packtpub.com/sfml-game-development/book

paupav

  • Full Member
  • ***
  • Posts: 156
    • View Profile
    • Email
Re: any simple example of SFML game
« Reply #4 on: July 11, 2014, 12:31:20 am »
Buy a good book. Then read it.

Mastering C++ can't be done just by watching a few video tutorials and reading a few online documents describing some neat detail.

C++ is a complex language, and mastering it takes (literally) years. If you want your learning to progress as fast as possible, then pick up a few good books written by accomplished and reputable experts in the field and read those (and do the exercises etc).
For example: http://www.amazon.com/dp/0321958314/?tag=stackoverfl08-20 , http://www.amazon.com/Primer-Plus-Edition-Developers-Library/dp/0321776402 or most things on the stackoverflow list: http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
 
Then once you know C++ well (it'll take a couple of years, but don't give up). Then move on to learning various libraries - Like SFML and read books like this: http://www.packtpub.com/sfml-game-development/book
I've actually looked for that book in the book store, but as it seems it still isn't translated to the Croatian. I'll see if they have any similar book. You know, it is always easier to learn something on your native language no matter how good you know English. I'll post titles so that I don't learn from the bad source/s again. If that's okay?

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: any simple example of SFML game
« Reply #5 on: July 11, 2014, 01:25:12 am »
I don't really know if I agree.  For me personally, reading books in english is much better than in my native language (danish) since translations are mostly crap and I read faster in english anyway.
There's also the fact that all the keywords in C++ - and all C++ libraries you are going to encounter - are in english - as well as most books you'll find on the subject. So you might as well accept now rather than later, that english is the language of your profession and you might as well learn it and get used to reading literature in that language... Most of us do.....

Strelok

  • Full Member
  • ***
  • Posts: 139
    • View Profile
    • GitHub
Re: Re: any simple example of SFML game
« Reply #6 on: July 11, 2014, 05:22:21 am »
I don't really know if I agree.  For me personally, reading books in english is much better than in my native language (danish) since translations are mostly crap and I read faster in english anyway.
There's also the fact that all the keywords in C++ - and all C++ libraries you are going to encounter - are in english - as well as most books you'll find on the subject. So you might as well accept now rather than later, that english is the language of your profession and you might as well learn it and get used to reading literature in that language... Most of us do.....
I second this.

paupav

  • Full Member
  • ***
  • Posts: 156
    • View Profile
    • Email
Re: any simple example of SFML game
« Reply #7 on: July 11, 2014, 10:14:28 am »
I don't really know if I agree.  For me personally, reading books in english is much better than in my native language (danish) since translations are mostly crap and I read faster in english anyway.
There's also the fact that all the keywords in C++ - and all C++ libraries you are going to encounter - are in english - as well as most books you'll find on the subject. So you might as well accept now rather than later, that english is the language of your profession and you might as well learn it and get used to reading literature in that language... Most of us do.....
Okay, thanks, I'll order one from the amazon. Any suggestion what should I do until it arrives? Also do you think I should be able to complete that book before  spring breaks re over?

Lo-X

  • Hero Member
  • *****
  • Posts: 618
    • View Profile
    • My personal website, with CV, portfolio and projects
Re: any simple example of SFML game
« Reply #8 on: July 11, 2014, 10:45:23 am »
The SFML Game Development book is awesome (http://www.packtpub.com/sfml-game-development/book).

I made games before and after having read that book, I really felt the difference the book made on my coding habits, knowledge and development speed.

Some of these games are on my GitHub account, but I dunno if you will be able to understand them without the theory the book brings (it only depends on your level, which I don't know).