Skip to main content
GameDev.net gamedev.net
🔒 Locked

2d road sprite's size?

Started by taoufikallah May 22, 2012 at 6:40 PM 3 replies 3.5k views
Original Post
taoufikallah
taoufikallah
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!
ApochPiQ
ApochPiQ
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"?
taoufikallah
taoufikallah
Thanks for replying,
Well my game is like the old road fighter.
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?
ApochPiQ
ApochPiQ
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.