[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Max OS X installation instructions to distribute with a new game




On Mar 1, 2005, at 6:42 PM, Jack Nutting wrote:

Find one person who can install the Mac OS X stuff, and then have them
use py2app to build an application out of it to save everyone else the
trouble.  Such an application will not need anything to be installed,
similar to using py2exe on Windows.

What he said.

If none of your users have any sort of technical competence to use
py2app, ask again here and maybe someone will offer to lend a hand...

Also, put this somewhere at the beginning of Derekota.py:

import pygame
pygame.init()

Other platforms seem to cope without that, but Mac OS X really *needs*
to have pygame initialized.

It's not so much of a problem anymore with pygame CVS, as of October.

Another thing you should do is NOT hide the cursor. This is really obnoxious for windows apps.

  File "game.pyc", line 145, in Run
  File "game.pyc", line 170, in Collide
AttributeError: 'Note' object has no attribute 'Explode'

Using py2app from SVN, pygame from CVS, you can just type:

py2applet Derekota.py data

and it will create a Derekota.app that works (well, as well as the application works anywhere). Untested with other configurations.

-bob