Tell me more ×
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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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