Jump to content
  • Advertisement


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


I was wondering if there is any place..

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

Guest Anonymous Poster
To make a simple tile engine is pretty easy.

Here is some sample code of how to plot tiles:

// loop variables
int lx, ly;
// destination of tiles
int destx, desty;
// destination on map
int mx, my;

// the map array

for (ly = 0; ly<20; ly++)
for (lx = 0; lx<20; lx++)

destx = lx * TILEXSIZE;
desty = ly * TILEYSIZE;


To add scrolling all u would do is add an offset to destx, and desty, so it's pretty simple. This code may not compile but it shows how to make the actual tile engine.

Good Luck!



Share this post

Link to post
Share on other sites
I can get some sample code on a simple tile engine. If you have any idea, could you please email me at Seph@telebot.com


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!