Set the tiles directory in a pre-processor definition
Final improvements on the one-layer version