Archived

This topic is now archived and is closed to further replies.

sidescrollers

This topic is 5668 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

Im working on a sidescroller something similar to metroid or castlevania and was wondering about the coding part, my last sidescroller just used big bitmaps as the background but in castlevania or metroid do they use big tiles for the background like 100x100 size tiles? that is what it looks like to me. Also when you want something to animate in the background is it usually a tile that animates or just a sprite?

Share this post


Link to post
Share on other sites
Usually on consoles the backgrounds are actually very small tiles, like 8x8. They probably use some kind of "brush" system in their map editor to make bigger groups of tiles from smaller ones.

This way they can easily place similar looking objects in several places even though they''re made up from lots of small tiles.


Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions

Share this post


Link to post
Share on other sites
Small tiles are used because they''re easy to re-use and because consoles work with tiles (8x8 in most of the old systems.) siaspete is right about the grouping: For example, Sonic the Hedgehog (for the Sega Genesis) has levels composed of rather large blocks (about 1/4th of the screen in size if not more.) Each block is further defined by a bunch of 8x8 tiles which the hardware works with and data for slopes, friction, etc.

I think a lot of games just make up their levels out of 8x8 tiles directly, however, maybe with some larger multi-tile objects in the background (or sprites.)

---
Bart

Share this post


Link to post
Share on other sites