Jump to content
  • Advertisement


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


Tile Engine

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

What is the basis of a tile engine? Say I want to create a Super Mario style... do I create many screens which are 640x480 wide, and simply clip them? I want to avoid wide surfaces at all costs since they''re not widely supported.

Share this post

Link to post
Share on other sites
Although that method is possible, It is not generally implemented due to several factors. I won''t go into the details of why.

The better way is to create smaller "tiles" such as 16x16 images or 32x32. Then, you just have to "tile" them together to create a larger image that can be any size.

You could have a tile of a brick, another of a coin, grass, ice, etc... anything you can imagine. Even your characters can be made of a tile or multiple tiles.

"Tiling" them together is when you place multiple tiles next to each other to create a larger image.

The larger image is usually implemented by using a "map". Probably the most simple way is the use of a 2d array.

Etc: 2d array

0 = sky
1 = cloud
2 = grass
3 = dirt

Imaging the numbers being replaced by a 16x16 image of what it represents.... there you go!

Happy coding,

Share this post

Link to post
Share on other sites
There is a tutorial about tile engines on my website:


The last truth is that there is no magic(Feist)

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!