PyWeek - Linux patch

So close...
It almost works on linux unchanged.
in engine.py line 195 needs to be changed from:
mapinfo.append((rname,posn,kwargs))
to
mapinfo.append((rname,posn,kwargs.strip()))

ohwell, not toooo bad for never testing on the platform.

skaro on 2006/09/10 15:22 of Crunchy Toads


Comments: (log in to comment)

You also use the default font, which doesn't necessarily work in Linux.
Traceback (most recent call last):
  File "main.py", line 9, in ?
    gameEngine=engine.Engine('media/level1.png','media/bgm/Level_Three.ogg')
  File "/scratch/pyweek/pyweek3-all/MagicThief/MagicThief-Final2-fixed/engine.py", line 37, in __init__
    self.initEngine()
  File "/scratch/pyweek/pyweek3-all/MagicThief/MagicThief-Final2-fixed/engine.py", line 126, in initEngine
    self.font=pygame.font.Font(pygame.font.get_default_font(),16)
IOError: unable to read font filename
actually the correction to engine.py is in line 196