Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

2d road sprite's size?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
4 replies to this topic

#1 taoufikallah   Members   

109
Like
0Likes
Like

Posted 22 May 2012 - 12:40 PM

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!

#2 ApochPiQ   Moderators   

22556
Like
0Likes
Like

Posted 22 May 2012 - 12:55 PM

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"?
Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

#3 taoufikallah   Members   

109
Like
0Likes
Like

Posted 22 May 2012 - 01:02 PM

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?

#4 ApochPiQ   Moderators   

22556
Like
2Likes
Like

Posted 22 May 2012 - 01:29 PM

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.
Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

#5 taoufikallah   Members   

109
Like
0Likes
Like

Posted 22 May 2012 - 02:14 PM

Thank you I got it all :)




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.