Jump to content
  • Advertisement
Sign in to follow this  
four_star00

Tile Map help

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

I am making a tile map using C# in the .Net platform. My question is my map shows the tiles but is going diagonal Any Help? also any info on the relationship between the array and the coordinates and size of the image would help too. For example does changing the array size or the coordinate increments or the size of the image affect the viewing of the tile map. byte[,] myPic = new byte[102, 101]; for (int y = 0; y < 102; y++) { for (int x = 0; x < 101; x++) { myPic[x, y] = 0; Graphics dc = this.CreateGraphics(); this.Show(); Image myImage = Image.FromFile(@"c:\\Stone.bmp"); dc.DrawImage(myImage, x+=20, y+=4, 20, 20); } }

Share this post


Link to post
Share on other sites
Advertisement

This topic is 4744 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.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • 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!