1) I added a function which creates a block, like a map editor. But, i have a generated map already, so i am able to build blocks on the generated map too. And the thing is that the z-index'es are messed up. So when i build the block behind, it looks like its above... So how to calculate or how-to make it work in proper way?
2) How to make a colission detection between the player (div) and the tiles (divs) ? I got arrays with the X,Y pos of the tiles and arrays with the players X,Y pos. Can you put me on the right path?
Thanks for help again, looking forward.