Jump to content
  • Advertisement

Archived

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

Skeletal

Spittling Sprites

This topic is 5429 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 using MSVC++ 6.0/Win32/OpenGL, and I have a 256x256 .bmp consisting of 16 32x32 sprites. Simply put, how do I split the .bmp in to those 16 sprites. Im using GLAUX to load the .bmp.

Share this post


Link to post
Share on other sites
Advertisement
The easiest way would be to texture your tiles as 1/16th of a tile

So your texture is a square with an upper left of (x/16, x/16)
and a lower right of ( (x+1)/16, (x+1)/16).

Its much better to tile with a lot of sprites on a single texture, because the less texture binds you do, the faster your engine will run.



~~~~~
Adam & Eve "did not know right from wrong, therefore God could not punish them whenever they did all those things that really creeped him out." - Ghastly.
Download and play Slime King I.

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!