Write resource manager to load materials. Split each maplayer into two tilelayers.
1. Could load resource automatically, besides also check the filepath.
2. A maplayer contains two tilelayers. One is used to put components, the other one set mark tips.