Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am very much new to Android game development. and i have little idea about the canvas and open GL. in one of my requirement i wanted to draw a moving road/track(Jazzy). how should i start. please suggest me some approach/tutorial. Thanks

Below is the link for the reference..please take look at the road only

http://www.miniclip.com/games/zoo-racer/en/

share|improve this question
1  
A 'moving road/track(Jazzy)'? I have no idea what you're talking about... Can you at least add a screenshot of something similar? –  David Gouveia Dec 19 '11 at 12:43
    
miniclip.com/games/zoo-racer/en –  Drax Dec 20 '11 at 5:11
add comment

closed as off-topic by Anko, MrCranky, Byte56 Mar 28 at 17:32

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about "how to get started," "what to learn next," or "which technology to use" are discussion-oriented questions which involve answers that are either based on opinion, or which are all equally valid. Those kinds of questions are outside the scope of this site. Visit our help center for more information." – Anko, MrCranky, Byte56
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 1 down vote accepted

There's not much to say about it, just look into basic 2D game tutorials and they should give you enough information. I've never worked with Android so I don't have any links at hand, but you need the following:

  1. Draw the track; for simplicity your track can be one complete image and you simply draw it on the background.
  2. A 2D camera that changes your point of view of the scene. Basically it creates a View Matrix for you to pass OpenGL when drawing.
  3. A player/car object with X,Y position in the track. Draw the player on top of the track at that position.
  4. Fix the 2D camera to your player (e.g. camera.Position = player.Position;).
share|improve this answer
    
Thanks for the valuable input and the direction –  Drax Dec 20 '11 at 8:41
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.