请输入您要查询的百科知识:

 

词条 Pygame
释义

  1. History

  2. Architecture and features

  3. Community

  4. Notable games using Pygame

  5. See also

  6. References

  7. Further reading

  8. External links

{{Infobox software
| title =
| name = pygame
| logo = Pygame logo.gif
| logo caption =
| screenshot =
| caption =
| collapsible =
| author = Lenard Lindstrom, René Dudfield, Pete Shinners, Nicholas Dudfield, Thomas Kluyver, others [https://github.com/pygame/pygame/graphs/contributors].
| developer = pygame Community
| released = {{Start date and age|2000|10|28|df=yes/no}}[1][2]
| discontinued =
| latest release version = 1.9.4
| latest release date = {{Start date and age|2018|07|19}}[3]
| latest preview version = 1.9.5.dev [https://github.com/pygame/pygame/]
| latest preview date =
| programming language = Python, C, and Assembly[4]
| operating system = Cross-platform
| platform =
| size =
| language =
| language count =
| language footnote =
| genre = API
| license = GNU Lesser General Public License
| alexa =
| website = https://www.pygame.org
}}

Pygame is a cross-platform set of Python modules designed for writing video games.

It includes computer graphics and sound libraries designed to be used with the Python programming language.

History

Pygame was originally written by Pete Shinners to replace PySDL after its development stalled.[1][5] It has been a community project since 2000[6] and is released under the open source free software GNU Lesser General Public License.[7]

Architecture and features

Pygame uses the Simple DirectMedia Layer (SDL) library, with the intention of allowing real-time computer game development without the low-level mechanics of the C programming language and its derivatives. This is based on the assumption that the most expensive functions inside games, can be abstracted from the game logic, making it possible to use a high-level programming language, such as Python, to structure the game.[8]

Other features that SDL doesn't have include vector math, collision detection, 2d sprite scene graph management, MIDI support, camera, pixel array manipulation, transformations, filtering, advanced freetype font support, and drawing.[9]

Applications using pygame can run on Android phones and tablets with the use of Pygame Subset for Android (pgs4a).[10] Sound, vibration, keyboard, and accelerometer are supported on Android.[11]

Community

{{anchor|PyWeek}}

There is a regular competition, called PyWeek, to write games using Python (and usually but not necessarily, Pygame).[12][13][14] The community has created many tutorials for Pygame.[15][16][17][18][19][20]

Notable games using Pygame

  • Frets on Fire
  • Dangerous High School Girls in Trouble[21]
  • Save the Date,[22] IndieCade 2013 Finalist.

See also

{{Portal|Free and open-source software|Python programming|Video games}}
  • Cocos2d
  • Panda3D
  • Pyglet

References

1. ^{{cite web |url=http://www.pygame.org/docs/tut/PygameIntro.html |title=Python Pygame Introduction - History |last=Shinners |first=Pete|website=Pygame.org}}
2. ^{{cite web |url=https://pypi.python.org/pypi/Pygame/1.9.3 |title=Downloads - Pygame - Python game development|website=Pypi.python.org}}
3. ^{{cite web|url=https://github.com/pygame/pygame/releases/tag/1.9.4|title=pygame 1.9.4 released into the wilds|website=Github.com}}
4. ^{{cite web|url=https://www.pygame.org/wiki/about|title=About Pygame|website=Github.com}}
5. ^{{cite web |url=http://sourceforge.net/projects/pysdl/ |title=pySDL sourceforge page|website=Sourceforge.net}}
6. ^{{cite web|url=https://github.com/pygame/pygame/commit/a4e0f865c591980e7aa2a160a92a2c9098a678ec | title=commit by other authors|website=Github.com}}
7. ^{{cite web|url=https://www.pygame.org/wiki/about|title=About - pygame wiki|website=Pygame.org|accessdate=1 April 2019}}
8. ^{{Cite web|url=https://www.pygame.org/wiki/about|title=About - pygame wiki|website=Pygame.org|access-date=2018-09-18}}
9. ^{{cite web|url=https://www.pygame.org/docs/ |title=Pygame docs|website=Pygame.org}}
10. ^{{cite web|url=https://github.com/renpytom/rapt-pygame-example|title=Example of using RAPT to package Pygame(_sdl2) games.: renpytom/rapt-pygame-example|date=1 April 2019|accessdate=1 April 2019|publisher=GitHub}}
11. ^{{cite web|url=http://pygame.renpy.org/api.html |title=Archived copy |accessdate=2014-10-14 |deadurl=yes |archiveurl=https://web.archive.org/web/20141019204533/http://pygame.renpy.org/api.html |archivedate=2014-10-19 |df= }}
12. ^{{cite web|url=http://www.pyweek.org/|title=PyWeek - Python Game Programming Challenge|website=Pyweek.org}}
13. ^  {{dead link|date=April 2019}}
14. ^{{cite web|url=https://wiki.python.org/moin/PyWeek|title=PyWeek - Python Wiki|website=Wiki.python.org|accessdate=1 April 2019}}
15. ^{{cite web|url=http://www.pygame.org/docs/|title=pygame documentation: Tutorials|website=Pygame.org}}
16. ^{{cite web|url=http://pygame.org/docs/tut/chimp/ChimpLineByLine.html|title=Line by line tutorial — Tutorial for beginners|last=Shinners|first=Pete|deadurl=yes|archiveurl=https://web.archive.org/web/20050205015600/http://www.pygame.org/docs/tut/chimp/ChimpLineByLine.html|archivedate=2005-02-05|df=}}
17. ^{{cite web|url=http://www.linuxjournal.com/article/7694|title=Creating Games with Python - A tutorial explaining how to use Pygame for game development and improved execution|website=Linuxjournal.com}}
18. ^{{cite web|url=http://pygametutorials.wikidot.com/|title=PyGame Tutorials - tutorials with OOP approach|website=Pygametutorials.wikidot.com}}
19. ^{{cite web|url=http://showmedo.com/videos/series?name=pythonMayerPyGameSeries|title=pyGame Basics|website=ShowMeDo.com|deadurl=yes|archiveurl=https://web.archive.org/web/20070429080319/http://showmedo.com/videos/series?name=pythonMayerPyGameSeries|archivedate=2007-04-29|df=}}
20. ^{{cite web|url=http://showmedo.com/videos/series?name=pythonArellanoPyGameSeries|title=Arinoid tutorials video tutorials at ShowMeDo|deadurl=yes|archiveurl=https://web.archive.org/web/20070429111639/http://showmedo.com/videos/series?name=pythonArellanoPyGameSeries|archivedate=2007-04-29|df=}}
21. ^{{cite web|title=Dangerous High School Girls in Trouble!|url=http://pygame.org/project-Dangerous+High+School+Girls+in+Trouble!-791-.html|website=Pygame.org|accessdate=8 July 2011}}
22. ^{{cite web|title=Save the Date|url=http://paperdino.com/save-the-date/|website=Paperdino.com|accessdate=14 October 2014}}

Further reading

  • Making Games With Python & Pygame—A CC-by-nc-sa-licensed book that introduces programming and game development with Python and Pygame.
  • Game Programming the L Line—A book that introduces programming and game development with Python and Pygame
  • Introduction to Computer Science Using Python and Pygame—An e-book that introduces programming by using Python and Pygame.

External links

  • {{Official website}}
  • [news://gmane.comp.python.pygame Pygame newsgroup] [https://web.archive.org/web/20070129083639/http://news.gmane.org/gmane.comp.python.pygame (web access)] — the "official" Pygame newsgroup, requires registration
  • Pygame Subset for Android (PGS4A)
  • pyOpenGL - Python OpenGL Bindings
  • [https://pygame-sdl2.readthedocs.io/ Pygame-SDL2] - a reimplementation of Pygame APIs on top of SDL2
  • [https://pysdl2.readthedocs.io/ PySDL2] - a wrapper around the SDL2 library similar to the discontinued PySDL project
{{Video game engines}}

11 : Application programming interfaces|Free computer libraries|Free software programmed in Python|Graphics libraries|Linux APIs|MacOS APIs|Python libraries|Simple DirectMedia Layer|Video game development software|Video game development software for Linux|Windows APIs

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 8:20:26