Jump to content
  • Advertisement
Sign in to follow this  
ms75214

2d game for Mac OS X

This topic is 2579 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Many 2D frameworks work on OS X, for example SFML and SDL. With frameworks like that you also get cross platform compatibility for free. I haven't used SFML much, but it's nicer if you're doing C++ development. SDL is also a bit of extra work on OS X while SFML is very simple.

Share this post


Link to post
Share on other sites

Many 2D frameworks work on OS X, for example SFML and SDL. With frameworks like that you also get cross platform compatibility for free. I haven't used SFML much, but it's nicer if you're doing C++ development. SDL is also a bit of extra work on OS X while SFML is very simple.


Tried SFML. Got this error:

http://i1190.photobucket.com/albums/z449/m75214/Screenshot2011-11-18at43516PM.png

Any ideas?

Share this post


Link to post
Share on other sites

[quote name='patrrr' timestamp='1321612417' post='4885277']
Many 2D frameworks work on OS X, for example SFML and SDL. With frameworks like that you also get cross platform compatibility for free. I haven't used SFML much, but it's nicer if you're doing C++ development. SDL is also a bit of extra work on OS X while SFML is very simple.


Tried SFML. Got this error:

http://i1190.photobu...18at43516PM.png

Any ideas?
[/quote]

SFML is awesome. I recommend it. But I've never seen that error. Can you explain in detail exactly what you did?

Share this post


Link to post
Share on other sites
Have you considered using CodeBlocks and/or CMake instead of XCode?

I recently took a look at Xcode 4.1, and I have @15 years experience, and found it extremely unintuitive, it would simply be a nightmare for a dev. Especially when you google about anything and most answer simply come back XCode 4.1 sucks, use 3.x.


Seriously, just eliminate an initial complexity and use something more straight forward. I did eventually get Xcode to compile my SFML project, but it was by no means a straight forward task.

Share this post


Link to post
Share on other sites

[quote name='ms75214' timestamp='1321663201' post='4885473']
[quote name='patrrr' timestamp='1321612417' post='4885277']
Many 2D frameworks work on OS X, for example SFML and SDL. With frameworks like that you also get cross platform compatibility for free. I haven't used SFML much, but it's nicer if you're doing C++ development. SDL is also a bit of extra work on OS X while SFML is very simple.


Tried SFML. Got this error:

http://i1190.photobu...18at43516PM.png

Any ideas?
[/quote]

SFML is awesome. I recommend it. But I've never seen that error. Can you explain in detail exactly what you did?
[/quote]

I just opened the .xcodeproj file and clicked run.

Eventually got it to work by changing SDK to 10.6 in like 8 places and changing gcc version from 4.0 to 4.2 in a bunch of places.

Anyhow, even though it builds now, nothing happens when I run. Was hoping for a demo. Did I miss something? Or, is there really no demo in that .xcodeproj?

Thanks.

Share this post


Link to post
Share on other sites
There are some samples somewhere. But its a library. You don't run a library. You'll need to link your code to the built library in order to use it. Are you familiar with how to do that?

Share this post


Link to post
Share on other sites

Have you considered using CodeBlocks and/or CMake instead of XCode?

I recently took a look at Xcode 4.1, and I have @15 years experience, and found it extremely unintuitive, it would simply be a nightmare for a dev. Especially when you google about anything and most answer simply come back XCode 4.1 sucks, use 3.x.

Seriously, just eliminate an initial complexity and use something more straight forward. I did eventually get Xcode to compile my SFML project, but it was by no means a straight forward task.

I disagree. Unintuitive is a subjective, not factual term. For someone who is used to either CodeBlocks or Visual Studio or Eclipse, XCode is certainly different, but that doesn't make it a nightmare. Personally I find myself less productive with Eclipse. So that said, learning ANY tool as part of another project makes the entire endeavor less than straightforward. Suggesting different tools simply because you don't like XCode is a religious argument.

Share this post


Link to post
Share on other sites

There are some samples somewhere. But its a library. You don't run a library. You'll need to link your code to the built library in order to use it. Are you familiar with how to do that?


No, I don't know how to do that. I know how to link to a built-in Framework like OpenGL but not to a third party one.

Share this post


Link to post
Share on other sites

[quote name='Cornstalks' timestamp='1321725455' post='4885664']
There are some samples somewhere. But its a library. You don't run a library. You'll need to link your code to the built library in order to use it. Are you familiar with how to do that?


No, I don't know how to do that. I know how to link to a built-in Framework like OpenGL but not to a third party one.
[/quote]

Follow these instructions and let me know if you get stuck. I recommend using SFML version 1.6, as version 2.0 is still under development and the API changes (which would be difficult for beginner to cope with).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!