APPENDIX B

image

Packaging Your Game

If you have gone to the effort of writing a game with Pygame, you will likely want to share your masterpiece with others. The simplest way to distribute your game is to bundle your Python code and data as a compressed archive file, such as ZIP, TAR, or GZIP, and upload it to your website or send it via e-mail. The problem with this approach is that Python and any external modules you use must be installed before your game can be played, which makes code distributions suitable only for other Python programmers. To distribute your game to a wider, nontechnical audience, you will need to package your game in a familiar ...

Get Beginning Python Games Development : With Pygame, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.