我尝试将 .tmx(Tile Map Editor)文件加载到我的项目中,但出现此错误:
Cannot autodetect which importer to use for "Level1.tmx" There are no importers which handle this file type. Specify the importer that handles this file type in your project.
最佳答案
默认情况下,XNA 不加载该文件。 这里有一个用于 XNA 项目的完整 TMX Map Loader http://windowsphonedevelopments.com/tmx-map-loader-xna-1-0/
TMX Map Loader XNA 是一个完整的 XNA 内容管道库,允许您从 TMX 源 Assets 文件加载和处理数据,并在设计时将数据输出为中间格式(输出到 .xnb 文件)。
关于c# - 如何将 .tmx(Tile Map Editor)文件导入我的 XNA 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5100946/