×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    37

    Very basic question regarding racing game

    Hi Folks,


    I have seen many racing game in j2me most of them from a top view which is basicaly a tile game( am i right?).

    I confused about racing game those who got a perspective view...can anybodt tell me what is the basic techniqe behind this.


    Thanx
    wating for reply.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    I have seen many racing game in j2me most of them from a top view which is basicaly a tile game( am i right?).
    That's a pretty safe bet.

    I confused about racing game those who got a perspective view...can anybodt tell me what is the basic techniqe behind this
    I've never done any of those so I'm purely speculating, but I guess they use some kind of horizontal raytracing. What I mean is that for every y on the screen you calculate the left and right edges (x coordinates) of the road at that distance (using a perspective transformation of some kind, it depends on how you would encode the track) and then draw horizontal lines changing the color at the edges.

    shmoove

Posting Permissions

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