Remove hard-coded values and scale relative to tile size