Thread: Please help!programming an OpenGL game application with c

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    2

    Please help!programming an OpenGL game application with c

    Hello everybody.
    I am in the difficult (but also pleasant ) position to start coding a game application like Tetris or Pacman or Arcanoids or anything simple like these, in C language, using OpenGL libraries.

    I am a starter of Using OpenGL and a moderate programmer in C language.

    Is there any possibility to find ready a game like the previous or something like that ?
    I have spent hours searching on internet and only i can find games in c++ using OpenGL, other games in c for DOS but nothing like what i am looking for.

    How can i start writing a game like these? I mean that i have already gone through some tutorials like Nehe about OpenGL and some others but still i have some difficulties how to start writing the game.I have never tried before and i dont know how to start.I found some books about game programming but they are about c++.
    I want also to let u know that i have no idea of the algorithm that these games and surely i have to start readiing first this. Can you suggest me any tutorials, pdfs, whatever, to start reading?

    Any other suggestios are welcome.

    Thanks....
    c u

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Registered User
    Join Date
    Jun 2006
    Posts
    2
    I have already gone through NeHe's tutorials at some point.Can somebody help me about the algorithm of the tetris game and the architecture of it? I mean how to start coding? Any guidelines about that?
    Thanks in advance

  4. #4
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    Tetris blocks can be represented with a string.
    Code:
    string t = 
    " X  " 
    "XXX "
    "    "
    "    " ;
    
    string z = 
    "XX  " 
    " XX "
    "    "
    "    " ;
    
    string s = 
    " XX " 
    "XX  "
    "    "
    "    " ;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 20q game problems
    By Nexus-ZERO in forum C Programming
    Replies: 24
    Last Post: 12-17-2008, 05:48 PM
  2. 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
  3. first opengl game, problems.
    By n3v in forum Game Programming
    Replies: 1
    Last Post: 07-11-2006, 08:22 PM
  4. OpenGL question (not game programming)
    By kas2002 in forum Tech Board
    Replies: 0
    Last Post: 06-22-2006, 09:34 AM
  5. Someone help me with this game??
    By stehigs321 in forum Game Programming
    Replies: 15
    Last Post: 10-30-2003, 09:42 PM