Skip to content

Python problems #1

@mlaret

Description

@mlaret

Im trying to write a game in pygame using atom and I tryed to install pytmx in order to make tile based game but when I run the code this happens:
Traceback (most recent call last):
File "/Users/dad_test/Downloads/shooter_game/main.py", line 132, in
g = Game()
File "/Users/dad_test/Downloads/shooter_game/main.py", line 32, in init
self.load_data()
File "/Users/dad_test/Downloads/shooter_game/main.py", line 38, in load_data
self.map = TiledMap(path.join(map_folder, 'Level1_zombie.tmx'))
File "/Users/dad_test/Downloads/shooter_game/tilemap.py", line 23, in init
tm = pytmx.load_pygame(filename, pixelalpha=True)
AttributeError: 'module' object has no attribute 'load_pygame'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions