Lessons
Related Links
More Cool Stuff
|
Python
Before we start, you need to:
Installing Python and Pygame on a MacHere are the packages used for the installation of Python and Pygame in this course: from http://www.python.org/ftp/python/2.6.6/ from http://sourceforge.net/projects/numpy/files/ Building a mac applicationSo far, I've tracked down three possibilities for creating Mac apps from Python programs: 1. The "Build Applet" tool that's located in the Python 2.6 directory of the IDLE application. Of these three, I've had the most luck with py2app. I followed the directions at http://packages.python.org/py2app/tutorial.html. One problem that might come up is that your app can't find the picture or sound files you included in your game. One way to fix this is to right click on the app file you create and choose "Show Package Contents" from the menu that pops up. Add all your picture or sound files to the Contents/Resources folder and try again. Let me know if this works for you or if you figure out a better way. Send me an email at tj@tjleone.com. If I find a better solution in the meantime, I'll post it. Installing Python and Pygame in WindowsIf you're running Windows, try installing these: from http://www.python.org/download/ from http://pygame.org/download.shtml Below are videos from Bucky Roberts on installing Python and Pygame in Windows. They were made before 2.7.2 was available for windows, so they show installation of an older version, but I think they would still be helpful to windows users. Installing Python
Installing Pygame
|