Your program doesn't even run for me due to the ImportErrors of the improper file directories.
metulburr@metulburr:~/Downloads/Python(1)/Python$ python3 main.py Traceback (most recent call last): File "main.py", line 1, in <module> import b as b ModuleNotFoundError: No module named 'b' metulburr@metulburr:~/Downloads/Python(1)/Python$ python3 main.py pygame 1.9.6 Hello from the pygame community. https://www.pygame.org/contribute.html Cannot load external tileset: /home/metulburr/Downloads/Desktop/tuxemon/Nowy folder/Nowy folder/terrain_atlas.tsx Traceback (most recent call last): File "/home/metulburr/.local/lib/python3.8/site-packages/pytmx/pytmx.py", line 870, in parse_xml node = ElementTree.parse(path).getroot() File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 1202, in parse tree.parse(source, parser) File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 584, in parse source = open(source, "rb") FileNotFoundError: [Errno 2] No such file or directory: '/home/metulburr/Downloads/Desktop/tuxemon/Nowy folder/Nowy folder/terrain_atlas.tsx' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "main.py", line 9, in <module> g = Game() File "/home/metulburr/Downloads/Python(1)/Python/Game.py", line 17, in __init__ self.load_data() File "/home/metulburr/Downloads/Python(1)/Python/Game.py", line 22, in load_data self.tiled_map = load_pygame('map/map.tmx') File "/home/metulburr/.local/lib/python3.8/site-packages/pytmx/util_pygame.py", line 141, in load_pygame return pytmx.TiledMap(filename, *args, **kwargs) File "/home/metulburr/.local/lib/python3.8/site-packages/pytmx/pytmx.py", line 360, in __init__ self.parse_xml(ElementTree.parse(self.filename).getroot()) File "/home/metulburr/.local/lib/python3.8/site-packages/pytmx/pytmx.py", line 400, in parse_xml self.add_tileset(TiledTileset(self, subnode)) File "/home/metulburr/.local/lib/python3.8/site-packages/pytmx/pytmx.py", line 845, in __init__ self.parse_xml(node) File "/home/metulburr/.local/lib/python3.8/site-packages/pytmx/pytmx.py", line 874, in parse_xml raise Exception Exception
Error:Cannot load external tileset: /home/metulburr/Downloads/Desktop/tuxemon/Nowy folder/Nowy folder/terrain_atlas.tsx
Recommended Tutorials: