Results 1 to 7 of 7

Thread: I just need to know a few things about game programming

  1. #1

    Default I just need to know a few things about game programming

    Okay, so i know python and very little c++.

    I want to start making small games, probably with python, but I will use c++ in the future.

    I just need to know a few things about game programming.


    What is OpenGL? What can you do with it?
    What is SDL, Ogre, Pygame etc? Is it game engines, libraries? What do they do?

    And finaly, whats the easiest way to start with easy 2d games like tetris, snake etc?

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    983

    Default

    You can probably skip a few of the first chapters if you already know basic programming and Python: http://inventwithpython.com/

  3. #3

    Default

    thanks gee

  4. #4
    Join Date
    Jun 2006
    Posts
    3,046

    Default

    And the advice given so far is pretty good really. Now to answer the other questions so you will know a bit more and can be thinking about things:

    OpenGL is an industry standardized API for doing 3D graphics with/without acceleration (though you will WANT to have it...). Games like DooM 3, Quake 4, World of Padman, Caster, etc. use either the 1.3, 1.5, or 2.X versions of this API depending on what they're doing graphics effects-wise. There's quite a bit more than that to it, but this should give you a starting point there. It should be noted that the mobile device space is largely using one of two select subsets of this API, called OpenGL ES 1.1 or 2.0, which respectively covers a portion of the 1.3 and 2.X workstation API versions- and as a result, it's a somewhat easy move to the handheld space (or the other way...) if you've written your code with some care and it's not overly graphics intensive.

    SDL is the Simple Directmedia Layer. It's an abstraction API that handles things like basic 2D, a somewhat easier initialization of OpenGL, basic sound, and input from keyboard, mouse, and joystics. It offers these abstractions for MANY differing OSes and it's part of what allows things like Caster to sit on as many platforms as it does. It is somewhat limited in what it can/can't offer to you in the sound and graphics departments, but it's a pretty important framework to learn how to use.

    OGRE is a 3D game engine framework. It allows easier 3D development and is one of the more popular ones out there. In fact, it's very capable and is the heart of numerous commercial games. Once you step up to the bigger picture, you may want to look at this more closely depending on the game you want to work with. You'll also want to check into the other game engine frameworks out there in the FOSS space (and there are quite a few good ones there or about to be delivered...)

    PyGame's a nice framework for producing Python 2D games. The book covers development with it in fairly good detail- and you're probably going to want to start with the only copy and PyGame to build up with.

  5. #5

    Default Thanks

    Its really helpfull i need tutorials site.

  6. #6
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    983

    Default

    For OpenGL, try the NeHe lessons:
    http://nehe.gamedev.net/lesson.asp?index=01

  7. #7

    Default Thanks

    ok i will check it

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •