• Advertisement
Sign in to follow this  

2d road sprite's size?

This topic is 2068 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm starting out a small 2d game and I need to know what to do about the road sprite.
Should it be a one piece image? or should it be divided into small pieces? and how high should the road be for a "racing car game"?

thank you!

Share this post


Link to post
Share on other sites
Advertisement
Can you describe your game in a bit more detail? Is it top-down? Side-scrolling? Pseudo-3D? What kind of shapes will your roads take? What do you mean by "how high should the road be"?

Share this post


Link to post
Share on other sites
Thanks for replying,
Well my game is like the old [url="http://www.youtube.com/watch?v=CDMcY3wLd1Q"]road fighter[/url].
what I mean by how high the road should be...is the height. if I simply use one piece of image. how high should it be?

Share this post


Link to post
Share on other sites
Ah, gotcha :-)

Usually the way this is done is to have a single sprite that you repeatedly draw in a vertical stack. So the sprite would be about as tall as one "stripe" on the road plus one "blank space" between stripes, if that makes sense. Then you just draw that several times, each copy going below the one above it, and you have the complete screen.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement