# How do I draw long tiled paths in 2D? (Eye of the Beholder style)

## Recommended Posts

shinypixel    226

Edit: Solved issue with looking at additional tiles.

I'm using artwork from the following page:

http://opengameart.org/content/first-person-dungeon-crawl-art-pack

Demo of ground:

http://heroinedusk.com/demo/

As you can see with the first artwork, the grass field is long. The pathway also goes into the distance. I'm most interested in the path.

However,
The floor is really small tile-wise. Look at the attachment. It's 118x22 pixels.

I'm supposing that the artwork is layered on top of each other. Is that true?

Is the method similar to this?
set x to 0, y -= 22

draw path

set x to 20, y -= 22

draw path

...

But as you can see, the tile isn't square, so I don't think this is correct. Any thoughts would be great. Thank you.

Edited by shinypixel

##### Share on other sites
shinypixel    226

This was solved by looking at the rest of the available tiles. Also it was helpful looking into the Painters Algorithm.

https://en.wikipedia.org/wiki/Painter%27s_algorithm