Jump to content
  • Advertisement

Archived

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

unixmandan

What's it called when...(in regards to tile games)

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

What''s it called when you have a large bitmap of tiles or fonts and you just point to a section on that bitmap for blitting, so you dont have to keep a bunch of tiles around? i''m looking for a tutorial on how to do that but I''m not sure what to look for... Thanks

Share this post


Link to post
Share on other sites
Advertisement
It''s not called anything. It''s not a complicated or difficult enough procedure to warrant its own buzzword. All you''re doing is calculating an offset into the source bitmap. If your tiles are in a big long line, and are 32 wide, then the first one will be at (0,0), the second will be at (32,0), the third at (64,0) and so on. If you have them arranged in rows and columns, you have to work out y values too, using a similar method.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!