Added a better way to create tiles and resources.