Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 26, 2009, 05:00 PM   #1
Duke Leto
macrumors regular
 
Join Date: Mar 2008
How to go about Fullscreen game

Ok, so I made that old gravity simulation I posted before. Then my dad had an idea, and I thought it would be cool to make a game based partly on it.

I do not expect to get far, but maybe I will work on it and get at least something. Basically, it would be a 2 dimensional game that operated in fullscreen mode.

I want to know what you think: Should I stick with Cocoa, or is it worth it to try to learn something else. One problem I do have with Cocoa, for example, is that I can not seem to make a fullscreen pixel format successfully when using an NSOpenGLView.

I tried using the free Pangea Programming book, but it is outdated and I think it would not be a good reference.

In conclusion, I am starting on a huge project and need some pointers on design, maybe books I should read, etc.
__________________
Gravita - a gravity simulation.
Available for Mac at http://www.thebluekoala.com
Duke Leto is offline   0 Reply With Quote
Old Jul 26, 2009, 06:35 PM   #2
mongrol
macrumors regular
 
Join Date: Jul 2007
I'd suggest asking on www.idevgames.com

and also read www.gamedev.net .
mongrol is offline   0 Reply With Quote
Old Jul 26, 2009, 07:28 PM   #3
Cromulent
macrumors 603
 
Cromulent's Avatar
 
Join Date: Oct 2006
Location: The Land of Hope and Glory
The OpenGL red book and orange book will be pretty indispensable. The free version online is very old so make sure you get the latest edition (a new one will most likely be coming out soon which should cover OpenGL 3.0 or 3.1 which fingers crossed Snow Leopard should support).

You might want to look into using a third party engine such as Unity 3D if you want to cut your workload down substantially.

You will also most likely want to learn about OpenAL for audio and some form of game based AI.

BSD sockets are also going to be useful if you want to make sure your game is as easy to port to other platforms as possible.
__________________
Neural Advance - Mac OS X, UNIX and Windows Development
Last.fm Profile | Extreme Metal Reviews
MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3
Cromulent is offline   0 Reply With Quote
Old Jul 27, 2009, 09:36 AM   #4
Duke Leto
Thread Starter
macrumors regular
 
Join Date: Mar 2008
Thank you so much for all of the resources.

I went to idevgames, which led me to get Code blocks. If only I could get that C++ book back from my friend ...

If anyone has used Code Blocks and has tips for me, please tell. I am confused about using it, but I think it is what I should use.
__________________
Gravita - a gravity simulation.
Available for Mac at http://www.thebluekoala.com

Last edited by Duke Leto; Jul 27, 2009 at 09:52 AM.
Duke Leto is offline   0 Reply With Quote
Old Jul 27, 2009, 10:36 AM   #5
Cromulent
macrumors 603
 
Cromulent's Avatar
 
Join Date: Oct 2006
Location: The Land of Hope and Glory
Quote:
Originally Posted by Duke Leto View Post
Thank you so much for all of the resources.

I went to idevgames, which led me to get Code blocks. If only I could get that C++ book back from my friend ...

If anyone has used Code Blocks and has tips for me, please tell. I am confused about using it, but I think it is what I should use.
Why are you using Code Blocks? Xcode works fine for OpenGL programming even if you are using something like SDL to handle input and window management (do not use GLUT though).
__________________
Neural Advance - Mac OS X, UNIX and Windows Development
Last.fm Profile | Extreme Metal Reviews
MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3
Cromulent is offline   0 Reply With Quote
Old Jul 27, 2009, 11:50 AM   #6
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
Quote:
Originally Posted by Duke Leto View Post
I want to know what you think: Should I stick with Cocoa, or is it worth it to try to learn something else. One problem I do have with Cocoa, for example, is that I can not seem to make a fullscreen pixel format successfully when using an NSOpenGLView.
Can you post the code you're using? Are you using NSOpenGLPFAFullScreen?
kainjow is offline   0 Reply With Quote
Old Jul 27, 2009, 09:57 PM   #7
mongrol
macrumors regular
 
Join Date: Jul 2007
Quote:
Originally Posted by Cromulent View Post
Why are you using Code Blocks? Xcode works fine for OpenGL programming even if you are using something like SDL to handle input and window management (do not use GLUT though).
I agree. I'm writing a game in C++ with SFML on Xcode and it works flawlessly. Same workflow and environment when using Cocoa. While I mention it, you could possibly look at www.sfml-dev.org as a nice easy framework for getting OpenGL contexts up and running. C++ mainly though.
mongrol is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Resolved: Warcraft 3 not fullscreen 3bs Windows, Linux & Others on the Mac 3 Oct 27, 2014 01:20 AM
The OS X fullscreen animation... Andy-V OS X 5 Feb 16, 2014 10:02 PM
Do you use FullScreen Mode often? KittyKatta OS X 10.8 Mountain Lion 52 Sep 9, 2013 09:50 PM
Fullscreen Linen yellowbunny OS X 10.8 Mountain Lion 5 Jan 28, 2013 08:58 PM
Fullscreen ML rekhyt OS X 10.8 Mountain Lion 5 Aug 23, 2012 12:36 PM

Forum Jump

All times are GMT -5. The time now is 01:08 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC