• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

buildconfig/H03-May-2022-6,2935,447

docs/H03-May-2022-25,97418,598

examples/H03-May-2022-11,0189,069

src_c/H07-Nov-2021-230,866160,568

src_py/H03-May-2022-7,5975,694

test/H03-May-2022-50,36838,075

PKG-INFOH A D07-Nov-202110.8 KiB235183

README.rstH A D07-Nov-20217.4 KiB191140

setup.cfgH A D07-Nov-2021483 2622

setup.pyH A D07-Nov-202131.2 KiB861654

README.rst

1.. image:: https://raw.githubusercontent.com/pygame/pygame/main/docs/pygame_logo.svg
2  :alt: pygame
3  :target: https://www.pygame.org/
4
5
6|AppVeyorBuild| |LaunchpadBuild| |PyPiVersion| |PyPiLicense| |Python2|
7|Python3| |GithubCommits| |LGTMAlerts| |LGTMGradePython| |LGTMGradeC|
8|Coverity|
9
10pygame_ is a free and open-source cross-platform library
11for the development of multimedia applications like video games using Python.
12It uses the `Simple DirectMedia Layer library`_ and several other
13popular libraries to abstract the most common functions, making writing
14these programs a more intuitive task.
15
16`We need your help`_ to make pygame the best it can be!
17New contributors are welcome.
18
19
20Installation
21------------
22
23::
24
25   pip install pygame
26
27
28Help
29----
30
31If you are just getting started with pygame, you should be able to
32get started fairly quickly.  Pygame comes with many tutorials and
33introductions.  There is also full reference documentation for the
34entire library. Browse the documentation on the `docs page`_.
35
36The online documentation stays up to date with the development version
37of pygame on github.  This may be a bit newer than the version of pygame
38you are using. To upgrade to the latest full release, run
39``pip install pygame --upgrade`` in your terminal.
40
41Best of all, the examples directory has many playable small programs
42which can get you started playing with the code right away.
43
44
45Building From Source
46--------------------
47
48If you want to use features that are currently in development,
49or you want to contribute to pygame, you will need to build pygame
50locally from its source code, rather than pip installing it.
51
52Installing from source is fairly automated. The most work will
53involve compiling and installing all the pygame dependencies.  Once
54that is done, run the ``setup.py`` script which will attempt to
55auto-configure, build, and install pygame.
56
57Much more information about installing and compiling is available
58on the `Compilation wiki page`_.
59
60
61Credits
62-------
63
64Thanks to everyone who has helped contribute to this library.
65Special thanks are also in order.
66
67* Marcus Von Appen: many changes, and fixes, 1.7.1+ freebsd maintainer
68* Lenard Lindstrom: the 1.8+ windows maintainer, many changes, and fixes
69* Brian Fisher for svn auto builder, bug tracker and many contributions
70* Rene Dudfield: many changes, and fixes, 1.7+ release manager/maintainer
71* Phil Hassey for his work on the pygame.org website
72* DR0ID for his work on the sprite module
73* Richard Goedeken for his smoothscale function
74* Ulf Ekström for his pixel perfect collision detection code
75* Pete Shinners: original author
76* David Clark for filling the right-hand-man position
77* Ed Boraas and Francis Irving: Debian packages
78* Maxim Sobolev: FreeBSD packaging
79* Bob Ippolito: MacOS and OS X porting (much work!)
80* Jan Ekhol, Ray Kelm, and Peter Nicolai: putting up with early design ideas
81* Nat Pryce for starting our unit tests
82* Dan Richter for documentation work
83* TheCorruptor for his incredible logos and graphics
84* Nicholas Dudfield: many test improvements
85* Alex Folkner for pygame-ctypes
86
87Thanks to those sending in patches and fixes: Niki Spahiev, Gordon
88Tyler, Nathaniel Pryce, Dave Wallace, John Popplewell, Michael Urman,
89Andrew Straw, Michael Hudson, Ole Martin Bjoerndalen, Herve Cauwelier,
90James Mazer, Lalo Martins, Timothy Stranex, Chad Lester, Matthias
91Spiller, Bo Jangeborg, Dmitry Borisov, Campbell Barton, Diego Essaya,
92Eyal Lotem, Regis Desgroppes, Emmanuel Hainry, Randy Kaelber
93Matthew L Daniel, Nirav Patel, Forrest Voight, Charlie Nolan,
94Frankie Robertson, John Krukoff, Lorenz Quack, Nick Irvine,
95Michael George, Saul Spatz, Thomas Ibbotson, Tom Rothamel, Evan Kroske,
96Cambell Barton.
97
98And our bug hunters above and beyond: Angus, Guillaume Proux, Frank
99Raiser, Austin Henry, Kaweh Kazemi, Arturo Aldama, Mike Mulcheck,
100Michael Benfield, David Lau
101
102There's many more folks out there who've submitted helpful ideas, kept
103this project going, and basically made our life easier.  Thanks!
104
105Many thank you's for people making documentation comments, and adding to the
106pygame.org wiki.
107
108Also many thanks for people creating games and putting them on the
109pygame.org website for others to learn from and enjoy.
110
111Lots of thanks to James Paige for hosting the pygame bugzilla.
112
113Also a big thanks to Roger Dingledine and the crew at SEUL.ORG for our
114excellent hosting.
115
116Dependencies
117------------
118
119Pygame is obviously strongly dependent on SDL and Python.  It also
120links to and embeds several other smaller libraries.  The font
121module relies on SDL_ttf, which is dependent on freetype.  The mixer
122(and mixer.music) modules depend on SDL_mixer.  The image module
123depends on SDL_image, which also can use libjpeg and libpng.  The
124transform module has an embedded version of SDL_rotozoom for its
125own rotozoom function.  The surfarray module requires the Python
126NumPy package for its multidimensional numeric arrays.
127Dependency versions:
128
129* CPython >= 3.6 or PyPy3
130* SDL >= 2.0.0
131* SDL_mixer >= 2.0.0
132* SDL_image >= 2.0.0
133* SDL_ttf >= 2.0.11
134* SDL_gfx (optional, vendored in)
135* NumPy >= 1.6.2 (optional)
136
137
138License
139-------
140
141This library is distributed under `GNU LGPL version 2.1`_, which can
142be found in the file ``docs/LGPL.txt``.  We reserve the right to place
143future versions of this library under a different license.
144
145This basically means you can use pygame in any project you want,
146but if you make any changes or additions to pygame itself, those
147must be released with a compatible license (preferably submitted
148back to the pygame project).  Closed source and commercial games are fine.
149
150The programs in the ``examples`` subdirectory are in the public domain.
151
152See docs/licenses for licenses of dependencies.
153
154
155.. |AppVeyorBuild| image:: https://ci.appveyor.com/api/projects/status/x4074ybuobsh4myx?svg=true
156   :target: https://ci.appveyor.com/project/pygame/pygame
157
158.. |LaunchpadBuild| image:: https://www.pygame.org/images/launchpad_build.svg?svg=true
159   :target: https://code.launchpad.net/~pygame/+recipe/pygame-daily
160
161.. |PyPiVersion| image:: https://img.shields.io/pypi/v/pygame.svg?v=1
162   :target: https://pypi.python.org/pypi/pygame
163
164.. |PyPiLicense| image:: https://img.shields.io/pypi/l/pygame.svg?v=1
165   :target: https://pypi.python.org/pypi/pygame
166
167.. |Python2| image:: https://img.shields.io/badge/python-2-blue.svg?v=1
168.. |Python3| image:: https://img.shields.io/badge/python-3-blue.svg?v=1
169
170.. |GithubCommits| image:: https://img.shields.io/github/commits-since/pygame/pygame/2.0.2.svg
171   :target: https://github.com/pygame/pygame/compare/2.0.2...main
172
173.. |LGTMAlerts| image:: https://img.shields.io/lgtm/alerts/g/pygame/pygame.svg?logo=lgtm&logoWidth=18
174   :target: https://lgtm.com/projects/g/pygame/pygame/alerts/
175
176.. |LGTMGradePython| image:: https://img.shields.io/lgtm/grade/python/g/pygame/pygame.svg?logo=lgtm&logoWidth=18
177   :target: https://lgtm.com/projects/g/pygame/pygame/context:python
178
179.. |LGTMGradeC| image:: https://img.shields.io/lgtm/grade/cpp/g/pygame/pygame.svg?logo=lgtm&logoWidth=18
180   :target: https://lgtm.com/projects/g/pygame/pygame/context:cpp
181
182.. |Coverity| image:: https://scan.coverity.com/projects/12288/badge.svg?v=2
183   :target: https://scan.coverity.com/projects/pygame
184
185.. _pygame: https://www.pygame.org
186.. _Simple DirectMedia Layer library: https://www.libsdl.org
187.. _We need your help: https://www.pygame.org/contribute.html
188.. _Compilation wiki page: https://www.pygame.org/wiki/Compilation
189.. _docs page: https://www.pygame.org/docs/
190.. _GNU LGPL version 2.1: https://www.gnu.org/copyleft/lesser.html
191