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

Author Topic: Game making tutorial - mac help  (Read 4769 times)

0 Members and 1 Guest are viewing this topic.

Robmanu-xx

  • Newbie
  • *
  • Posts: 13
    • View Profile
Game making tutorial - mac help
« on: January 23, 2013, 10:59:30 am »
Hello everyone.
I'm looking for a tutorial, which is making a game from the scratch on mac, using SFML.
Has anyone know any? Any help will be appriciated.
Thank you.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Game making tutorial - mac help
« Reply #1 on: January 23, 2013, 11:21:31 am »
If you don't have good basic knowledge in C++, then you should first read a good book, before diving into the hardest challenge in programming, mainly game programming.

After that, if you chose to use SFML, you can start with setting it up with the help of the official tutorial.

Afterwards you can take any tutorial/book on game programming and adapt it for SFML, you preferably will keep an eye open for OpenGL related topics, rather than DirectX ones.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Robmanu-xx

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Game making tutorial - mac help
« Reply #2 on: January 23, 2013, 11:40:36 am »
eXpl0it3r, I already set up the SFML on my mac, i had some problems though, but i'm good now. I'm only 15 years old and i started c++ programming when i was 14. I really want to experiment with the programming games, as I want to be a game developer in future. All i found are pc games tutorials. Could i follow tutorial for the pc and will it still work on mac?
Thanks

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: Game making tutorial - mac help
« Reply #3 on: January 23, 2013, 12:04:09 pm »
If you don't use platform specific code, it doesn't matter.
SFML is crossplatform, thus if you use it, you should be able to compile it on Wibdows, Linux and Mac, without changing anything.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Robmanu-xx

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Game making tutorial - mac help
« Reply #4 on: January 23, 2013, 12:07:05 pm »
Would you give me any hints?  And also Should i be using CMake?
Thank you
« Last Edit: January 23, 2013, 12:26:31 pm by Robmanu-xx »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Game making tutorial - mac help
« Reply #5 on: January 23, 2013, 12:55:35 pm »
And also Should i be using CMake?
Depends on if you want to make your projects cross-platform. If so, then CMake is certainly one of the better ways.
But I'd say you first want to get more familiar with game programming with Xcode.

Would you give me any hints?
Hint on what? Game programming in general?

Usually people just start with small clones, like a pong game and then a snake game and then a Tetris clone, etc. And after month/years of learning the ways of game programming and programming in general one can start with the own small game ideas. Trying to write the one big idea you always had, will most certainly fail, even after years of studying game programming, but it sure is a great motivator to keep you going. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Robmanu-xx

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Game making tutorial - mac help
« Reply #6 on: January 23, 2013, 01:08:21 pm »
Ok, thanks  ;)
But it seems there are no tutorials for mac.
I will try out the pc ones, but i'm afraid they might not work propely.
« Last Edit: January 23, 2013, 01:11:23 pm by Robmanu-xx »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Game making tutorial - mac help
« Reply #7 on: January 23, 2013, 01:42:17 pm »
But it seems there are no tutorials for mac.
I will try out the pc ones, but i'm afraid they might not work propely.
As eXpl0it3r stated, you can develop platform-independently with SFML. So, the only thing that differs is how to setup compiler, linker, or how to generate executables, etc. For this part, you will certainly find Mac tutorials.

Game programming consists of many topics, and setting up the environment is only the very basic step. A lot of articles, books and tutorials are written to work independent of the operating system.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

masskiller

  • Sr. Member
  • ****
  • Posts: 284
  • Pointers to Functions rock!
    • MSN Messenger - kyogre_jb@hotmail.com
    • View Profile
    • Email
Re: Game making tutorial - mac help
« Reply #8 on: January 23, 2013, 04:17:20 pm »
The best advice would be to get to know the language you are programming in very well, many people start without knowing the language and sometimes end up with bad practices or overseeing features that could have made their life easier from the start. Also note that C++ isn't particularly easy to learn, either if you know how to program in another language or if you start from the very bottom, but it certainly pays off in the end. I prefer the language a lot more than Java now that I've taken my time to learn it well.

I don't know if there really is a tutorial that holds your hand through the entire process, and even if there is one it's even more unlikely that you will find one in SFML (A multimedia library that's just beginning to become important in the market, but will become bigger and more important) since it's relatively new in comparison to other projects. So even it there is such a tutorial it might be hard to find, if not nigh impossible.

Also be in to have the need to learn tons of math, it will become necessary depending on what you want.

Quote
I will try out the pc ones, but i'm afraid they might not work propely.

If they are from SFML only they will work, else you will have to adapt code and so on. Note that there are many tutorials and articles that are general and can apply to whatever framework you are using for your programming by only adapting them to your programming language.
Programmer, Artist, Composer and Storyline/Script Writer of "Origin of Magic". If all goes well this could turn into a commercial project!

Finally back into the programming world!

io

  • Jr. Member
  • **
  • Posts: 52
  • z/OS by day, SFML by night
    • View Profile
Re: Game making tutorial - mac help
« Reply #9 on: January 24, 2013, 03:22:16 am »
As people suggested, diving into graphic coding head first may not be the best approach.  Personally, I would develop console (text only) games -- even a text adventure as your first project so you have some grounding on C++.

SFML is cross platform, so other then setup, you should be fine using whichever tutorial :).

I had this in my bookmarks -- I haven't really read through it or know how well it is written, but it may be useful.  It is a 1.6 tutorial, so there will be some differences in code to 2.0

http://www.gamedev.net/topic/610246-a-complete-c-game-from-scratch-using-sfml/
which links to http://www.gamefromscratch.com/page/Game-From-Scratch-CPP-Edition.aspx
« Last Edit: January 24, 2013, 03:24:18 am by io »

Robmanu-xx

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Game making tutorial - mac help
« Reply #10 on: January 24, 2013, 10:17:30 am »
Ok, Thanks everyone for the advice.