bitcraft / pyscroll

make scrolling games with animated maps in pygame
GNU General Public License v3.0
177 stars 28 forks source link

Tutorial: pytmx module doesn't have "load_pygame" #6

Closed craigmaloney closed 9 years ago

craigmaloney commented 10 years ago

Hello,

I just downloaded both the latest (in master) versions of pyscroll and pytmux. Unfortunately when I tried running the tutorial code I received the following error:

Traceback (most recent call last):
  File "quest.py", line 229, in <module>
    game = QuestGame()
  File "quest.py", line 107, in __init__
    tmx_data = pytmx.load_pygame(self.filename)
AttributeError: 'module' object has no attribute 'load_pygame'

Any ideas what I'm doing wrong?

Thanks!

bitcraft commented 10 years ago

It is probably my mistake. Try: from pytmx.util_pygame import load_pygame tmx_data = load_pygame(self.filename)

I'll try to get this fixed in master. Thanks for the bug report.

On Nov 8, 2014, at 9:07 AM, Craig Maloney notifications@github.com wrote:

Hello,

I just downloaded both the latest (in master) versions of pyscroll and pytmux. Unfortunately when I tried running the tutorial code I received the following error:

Traceback (most recent call last): File "quest.py", line 229, in game = QuestGame() File "quest.py", line 107, in init tmx_data = pytmx.load_pygame(self.filename) AttributeError: 'module' object has no attribute 'load_pygame'

Any ideas what I'm doing wrong?

Thanks!

— Reply to this email directly or view it on GitHub.

craigmaloney commented 10 years ago

Thanks. That seemed to work.

Looking forward to playing with these libraries! :)