Game console programming

This is a discussion on Game console programming within the Game Programming forums, part of the General Programming Boards category; This is just an idea... When a large co-orp game has been made like Zelda, when it has been debugged ...

  1. #1
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475

    Game console programming

    This is just an idea...

    When a large co-orp game has been made like Zelda, when it has been debugged and compiled and stuff, do the game programmers have to change the program code in anyway to get the PS2, XBOX GCUBE to read the code?

    Reason I am asking is because of this quote from a book

    Code:
    In console programs, memory and variable managment 
    is not a big issue if you have a large machine. Game console 
    programming is a different matter
    I was wondering why this is different?

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,062
    I believe game consoles have their own set of assembly instructions for pipelining the data to and from the processor. Either that or they simply digitally sign their applications in order to get them to run on their system.
    Sent from my iPadŽ

  3. #3
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    Memory management should be an issue in any professional game, whether on a game console or on a PC. In fact, any good program should be careful with the way it handles memory, but for small projects, if there are memory leaks it won't be noticeable.

    >>When a large co-orp game has been made like Zelda, when it has been debugged and compiled and stuff, do the game programmers have to change the program code in anyway to get the PS2, XBOX GCUBE to read the code?

    I don't know how this relates to your second question, but AFAIK, a lot of the code has to be written specifically for each console.
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  4. #4
    Yah. Morgul's Avatar
    Join Date
    Feb 2005
    Posts
    109
    Consoles generally have different ways of getting input and displaying graphics.
    Sic vis pacum para bellum. If you want peace, prepare for war.

  5. #5
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    They need to code using the consoles APIs then cross-compile to the console platform.

  6. #6
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    498
    I think I've figured out the different graphics APIs that work on different systems:

    OpenGL: Mac, PC, Linux, PS2, Xbox, GameCube, ......
    DirectX: PC, Xbox

    The choice is probably pretty easy if you're trying to figure out which graphics API to use on your cross-platform game. Of course, just because the graphics API works on all these systems doesn't mean that the game will without porting. There are subtle differences between graphics API ports, and even when you're done that, you've still got to handle things like (memory management), getting controller input, and outputting sound.

    However, the graphics is probably where most of the work of coding is spent in a game, so getting a cross-platform library like OpenGL is a good step.

  7. #7
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    OpenGL works on the Xbox? I though it used DX 8+ (notice the plus, not the normal DX 8). And i also though the entire playstation line had a custom rendering API?

  8. #8
    ---
    Join Date
    May 2004
    Posts
    1,379
    Yeah, no OGL on Xbox. I'm not sure about PS2 but I thought it was a custom API also.

  9. #9
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    I've done some fiddling with the GBA and the programming is a little different. Mainly because t'was the first time I had to work under severe limits, mainly regarding memory.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  10. #10
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    498
    Oops, you're right about Xbox having no OpenGL. But I do know that PS2 and GameCube has support for OpenGL (somebody ported it).

    http://www.devmaster.net/wiki/Direct3D_vs._OpenGL

  11. #11
    vae victus! skorman00's Avatar
    Join Date
    Nov 2003
    Posts
    594
    Perspective, you're talking about the OpenGL-esque library that Sony distributes with the PS2 dev boxes, ps2gl. Lots of time went into the name.

    And like he said, you can use different compilers to compile your code for a specific console. It's not a bad idea to have a bunch of #ifdef statements when you know you can pull special tricks on a particular machine.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need book to program game into multiplayer...
    By edomingox in forum Game Programming
    Replies: 3
    Last Post: 10-02-2008, 09:26 AM
  2. PC or Console gamers, what are you playing?
    By indigo0086 in forum A Brief History of Cprogramming.com
    Replies: 119
    Last Post: 04-14-2008, 08:17 AM
  3. 2D RPG Online Game Project. 30% Complete. To be released and marketed.
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 10-28-2006, 12:48 AM
  4. Game console input
    By glUser3f in forum Game Programming
    Replies: 3
    Last Post: 11-07-2003, 03:33 AM
  5. Best game console
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-05-2001, 08:25 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21