Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 10 of 14

Thread: Basic 2D car game problem

Threaded View

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2013
    Posts
    28

    Basic 2D car game problem

    I'm programming the typical 2d car game in c++ with glut and opengl and i'm trying to acommplish this:

    1. Two quads (4 tris), one for the circuit, the other for the car
    2. The quad of the circuit has a texture of a circuit in his top view and is static, while the quad of the car has a texture of a car in a top view too and is not static

    Circuit (example) http://caterhamf1.com/previews/2013/...g/TrackMap.png
    Car (example) http://img2.netcarshow.com/Ferrari-F...llpaper_27.jpg

    That more or less i know how to do it but, here's my questions:

    3. The car is like a "vector", if I press UP it goes in the positive direction of his vector, if I press DOWN goes in reverse direction and if I press RIGHT or LEFT the vector rotates a few grades and growing (something like the ++ in C++)

    4. Could I have a chase cam with it? So only a ceratin area will apear in the screen (where the car is, not the full map

    How I could do that? I'm not asking for a complete source code, just the way of how to do it

    Also OpenAL website does not work, there's other option apart of OpenAL


    Thank you very much!
    Last edited by Marc Colomé; 08-11-2013 at 02:52 PM.

Posting Permissions

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