python - Python街机库函数read_tmx不起作用
问题描述
DeprecationWarning: The read_tmx function has been replaced by the new TileMap class.
我正在使用的代码是
game_map = arcade.tilemap.read_tmx(str(map_path))
我不确定这段代码现在是过时了还是什么,但我似乎无法找到让我的 tilemap 正确加载的方法。
解决方案
推荐阅读
- javascript - 如何将 onclick 事件附加到从 vuejs "v-for=" 生成的每个项目以显示或隐藏其内部元素
- flutter - 如何修复颤动中的底部导航?
- python - 打印函数和调用涉及 Python 字典的函数的区别
- c++ - 什么 file.read(reinterpret_cast
(&variableName), sizeof(variablename)) 在 C++ 中用于读取图像吗? - python - 如何对 Python 输入字符串设置约束
- hadoop - 使用java代码调用pig store无法运行store命令(嵌入式模式)
- java - 如何在 Spring Data Cassandra 中对数据进行分页?
- python - 如果任何作业在 python 中失败,如何退出进程?
- java - 使用第三方 JAR 运行 Java
- python - python提取具有给定正则表达式格式的文件