Results 1 to 4 of 4

Thread: how to set score increse in opengl

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2009
    Posts
    6

    how to set score increse in opengl

    i wanna set score marking in my game.when one object collide 2nd object then score increse.how it can be done in opnengl.thnx in advance.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2007
    Location
    Latvia
    Posts
    225

    Re: how to set score increse in opengl

    I do not understand the question.. and what does it have to do with OpenGL.

    Code :
    if (object1.collidesWith(object2) == true)
    {
        score++;
    }

  3. #3
    Junior Member Newbie
    Join Date
    Sep 2009
    Posts
    6

    Re: how to set score increse in opengl

    for goal achieve 250 points then u won.this type of scoring i wanna in my game.score is not just a variable.now tell me.a window open and say YOU WON....and level up by 2...these thing how can be done in opengl.i dnt know.tell me plz.

  4. #4
    Senior Member Frequent Contributor scratt's Avatar
    Join Date
    May 2008
    Location
    Thailand
    Posts
    555

    Re: how to set score increse in opengl

    Buy a copy of The Red Book if you want to learn OpenGL. Seriously.

    For what you want to do and the questions you are asking it seems to me that you'll also most likely need to learn to program also... So buy a book on C or C++ or whichever language you prefer... ...and get learnin'.

    The OpenGL Developers forum is a programming forum. And it does cater to beginners. But it does assume that you at least have some coding experience first.

    Your questions might be better suited to another forum.
    But on most coding forums you'll probably get a similar reply to this..

    For now, if you can only use online resources google "NeHe" and work though their tutorials. If they are too much for you, then you do need to get some general experience coding first.

Similar Threads

  1. My score is displaying funny numbers, need help!
    By Tezelia in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-03-2013, 03:58 PM
  2. score adn sound??
    By chign in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-04-2010, 07:00 AM
  3. How to display score
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-16-2002, 05:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean