salviati / go-tmx

A Go library that reads Tiled's TMX files
40 stars 16 forks source link

How to get tile by X and Y? #2

Closed paulocoutinhox closed 8 years ago

paulocoutinhox commented 8 years ago

How to get tile by X and Y?

My layer 0 contains my game meta data, all sprites in this layer will block movement.

log.Print(maps[p.Map].Layers[0])

But how i can do it? Can i get by X and Y?

salviati commented 8 years ago

Check out the example.