Jump to content
  • Advertisement
Sign in to follow this  

[.net] use d3d Sprite to draw 2d problem

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

recentely I begin to study the 2d game design with MDX I read the Tom Miller's <<MDX Kick Start>> I have make some change on the demo code. make the sprite can move by the user control (use the Ditect input)~ the code work correct. but wehen i change the sprite texture spriteTexture = TextureLoader.FromFile(device, @"..\..\sprite.tga"); and the sprite size private const int NumberSpritesRow = 4; private const int NumberSpritesCol = 3; private const int SpriteSizeWidth = 24; private const int SpriteSizeHeight = 32; the code can compile and run but the sprite is wrong the background is not transparence and the sprite size is wrong but when i chaeck the code ican not find some error please help me ~ thx the use original texture project is here http://www.dearfree.com/AnimatedSprites.rar and the change textture project is here http://www.dearfree.com/AnimatedSprites.rar

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!