Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Scrolling map!

Sign in to follow this  


Alright, this isn't much of an accomplishment, and it kinda feels like a ripoff since the code basically all came from XNA Resources with a couple minor tweaks to make the code feel cleaner, but it's still something! The TileMap is now working, and it also scrolls(which is a feature I wasn't even planning on using, but since XNA Resources had the tutorial for it, I figured why the hell not?) The tileset is a couple crudely drawn tiles I threw together really quick just to have something to use. The nifty thing about the code on XNA Resources is that it automatically draws the first tile(the grass one) if there isn't another one set for the cell, which is another thing that I didn't think about. Shout out to Eck on the forums for pointing me to these tutorials. I'm gonna spend a while studying this technique so that I understand and next time, I'll be able to do it myself and maybe even improve on it if there's a better way. Tomorrow, I'm going to add my I/O class and start working on saving maps into external files. I wonder what file format to use...
Anyway, here's a shitty gif(gyazo!) of the scrolling tile map in action.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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!