<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Pygame</id>
	<title>Pygame - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Pygame"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Pygame&amp;action=history"/>
	<updated>2026-06-26T23:05:03Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Pygame&amp;diff=476520&amp;oldid=prev</id>
		<title>imported&gt;Mhss：​/* top */</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Pygame&amp;diff=476520&amp;oldid=prev"/>
		<updated>2026-02-23T05:09:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;top&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Rough translation|time=2022-09-29T14:44:10+00:00}}&lt;br /&gt;
{{DISPLAYTITLE:pygame}}{{NoteTA|G1=IT|G2=FL}}&lt;br /&gt;
{{Infobox Software&lt;br /&gt;
| name= Pygame&lt;br /&gt;
| logo= Pygame logo.svg&lt;br /&gt;
| caption=&lt;br /&gt;
| developer= pygame Community&lt;br /&gt;
| released = {{Start date and age|2000|10|30|df=yes/no}}&amp;lt;ref name=&amp;quot;pygame-intro&amp;quot;&amp;gt;{{cite web |url=http://www.pygame.org/docs/tut/PygameIntro.html |title=Python Pygame Introduction - History |last=Shinners |first=Pete |access-date=2018-10-18 |archive-url=https://web.archive.org/web/20190917011758/http://www.pygame.org/docs/tut/PygameIntro.html |archive-date=2019-09-17 |dead-url=yes }}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web |url=https://pypi.python.org/pypi/Pygame/1.9.3 |title=Downloads - Pygame - Python game development |access-date=2018-10-18 |archive-url=https://web.archive.org/web/20180413233337/https://pypi.python.org/pypi/Pygame/1.9.3 |archive-date=2018-04-13 |dead-url=yes }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| maintainer =&lt;br /&gt;
| latest_release_version= 2.6.1&lt;br /&gt;
| latest_release_date=  {{Start date and age|2024|08|30}}&amp;lt;ref&amp;gt;{{cite web|url=https://github.com/pygame/pygame/releases/tag/2.6.1|title=pygame 2.6.1 - python 3.13 bugfix release}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| operating_system= [[跨平台]]&lt;br /&gt;
| genre= [[应用程序接口|API]]&lt;br /&gt;
| license= [[GNU宽通用公共许可证]]&lt;br /&gt;
| website= http://www.pygame.org&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;pygame&amp;#039;&amp;#039;&amp;#039;&amp;lt;ref&amp;gt;{{Cite web|url=https://www.pygame.org/wiki/about|title=About — wiki|access-date=2019-12-30|archive-url=https://web.archive.org/web/20190918143814/http://www.pygame.org/wiki/about|archive-date=2019-09-18|dead-url=yes}}&amp;lt;/ref&amp;gt;是[[跨平台]][[Python]]模块组，专为[[电子游戏]]设计。包含图像、声音。建立在[[Simple DirectMedia Layer|SDL]]基础上，允许实时[[电子游戏]]研发而无需被[[低階语言]]，如[[C语言]]或是更低階的[[組合語言]]束缚。基于这样一个设想，所有需要的游戏功能和理念都（主要是图像方面）完全简化位游戏逻辑本身，所有的资源结构都可以由[[高级语言]]提供，如[[Python]]。&lt;br /&gt;
&lt;br /&gt;
pygame原为代替突然停止的pySDL&amp;lt;ref&amp;gt;{{Cite web |url=http://libregamewiki.org/Pygame |title=Libregamewiki&amp;#039;s article on Pygame |accessdate=2008-12-19 |archive-date=2008-12-30 |archive-url=https://web.archive.org/web/20081230015851/http://www.libregamewiki.org/Pygame |dead-url=no }}&amp;lt;/ref&amp;gt;。&lt;br /&gt;
&lt;br /&gt;
==pygame在Android==&lt;br /&gt;
pygame應用程式能夠在Android手機和平板執行，採用pygame對於Android的子集(pgs4a)。&amp;lt;ref&amp;gt;{{Cite web |url=http://pygame.renpy.org/ |title=存档副本 |accessdate=2015-09-03 |archive-date=2015-08-10 |archive-url=https://web.archive.org/web/20150810180715/http://pygame.renpy.org/ |dead-url=no }}&amp;lt;/ref&amp;gt; 支援Android的聲音，振動，鍵盤和加速。&amp;lt;ref&amp;gt;{{cite web |url=http://pygame.renpy.org/api.html |title=存档副本 |accessdate=2014-10-14 |deadurl=yes |archiveurl=https://web.archive.org/web/20141019204533/http://pygame.renpy.org/api.html |archivedate=2014-10-19 }}&amp;lt;/ref&amp;gt;但缺點是沒有辦法在iOS上執行pygame應用程式。其它pgs4a的主要限制是缺乏對於多點觸控的支援， 這使得雙指縮放，以及旋轉無法使用。另一個pygame在Android子集的替代方案是[[Kivy]]，&amp;lt;ref&amp;gt;{{Cite web |url=http://kivy.org/ |title=存档副本 |accessdate=2015-09-03 |archive-date=2015-09-01 |archive-url=https://web.archive.org/web/20150901074420/http://kivy.org/ |dead-url=yes }}&amp;lt;/ref&amp;gt;它包含了多點觸控及iOS的支援。&lt;br /&gt;
&lt;br /&gt;
==例子==&lt;br /&gt;
這段代碼假設在它運行的同一個目錄中有一個名為 ball.png 的（球的）圖像，它將在窗口中快速移動。&amp;lt;ref&amp;gt;{{cite book|title=Learn Python the hard way|author=Zed Shaw|year=2017|ISBN=978-0134692883|publisher=Addison-Wesley Professional|url=https://python.engineering/learn-python-the-hard-way/|access-date=2021-09-21|archive-date=2021-09-06|archive-url=https://web.archive.org/web/20210906151318/https://python.engineering/learn-python-the-hard-way/}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import sys, pygame&lt;br /&gt;
pygame.init()&lt;br /&gt;
size = width, height = 320, 240&lt;br /&gt;
speed = [2, 2]&lt;br /&gt;
black = 0, 0, 0&lt;br /&gt;
screen = pygame.display.set_mode(size)&lt;br /&gt;
ball = pygame.image.load(&amp;quot;ball.png&amp;quot;)&lt;br /&gt;
ballrect = ball.get_rect()&lt;br /&gt;
while 1:&lt;br /&gt;
    for event in pygame.event.get():&lt;br /&gt;
        if event.type == pygame.QUIT: sys.exit()&lt;br /&gt;
    ballrect = ballrect.move(speed)&lt;br /&gt;
    if ballrect.left &amp;lt; 0 or ballrect.right &amp;gt; width:&lt;br /&gt;
        speed[0] = -speed[0]&lt;br /&gt;
    if ballrect.top &amp;lt; 0 or ballrect.bottom &amp;gt; height:&lt;br /&gt;
        speed[1] = -speed[1]&lt;br /&gt;
    screen.fill(black)&lt;br /&gt;
    screen.blit(ball, ballrect)&lt;br /&gt;
    pygame.display.flip()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 其他 ==&lt;br /&gt;
{{Portal|自由软件}} &lt;br /&gt;
{{Portal|电子游戏}} &lt;br /&gt;
展示：&lt;br /&gt;
* [[Pyweek]]，游戏制作竞赛，时间限制在7天内&lt;br /&gt;
* [[Ludum Dare]]，&amp;#039;&amp;#039;&amp;#039;LD48&amp;#039;&amp;#039;&amp;#039;  游戏制作竞赛，时间限制在48小时内&lt;br /&gt;
2D引擎和库：&lt;br /&gt;
* [https://github.com/parogers/pgu Phil&amp;#039;s Pygame Utilities (PGU)]{{Wayback|url=https://github.com/parogers/pgu |date=20180611155240 }}是增强pygame的库和工具的集合。工具tile编辑器和一个关卡编辑器。（tile, isometric, hexagonal）[[GUI]]增强包括全功能GUI，html渲染，文档输出，文本渲染。函式庫包括精靈和[[拼接圖電子遊戲|拼接圖電子遊戲引擎]]（瓷磚圖, 立体圖, 六角圖）, 和一個狀態引擎，计时器，高分系统。&lt;br /&gt;
* [[Pyglet]]，一个OpenGL库，类似pygame&lt;br /&gt;
&lt;br /&gt;
==社群==&lt;br /&gt;
{{anchor|PyWeek}}&lt;br /&gt;
有定期的競賽，叫做PyWeek. 使用Python寫出遊戲(通常但不一定使用pygame)。&amp;lt;ref&amp;gt;{{cite web|url=http://www.pyweek.org/|title=PyWeek - Python Game Programming Challenge|accessdate=2018-08-09|archive-date=2008-12-17|archive-url=https://web.archive.org/web/20081217020438/http://www.pyweek.org/|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=http://www.i-programmer.info/professional-programmer/i-programmer/5697-why-pyweek-an-interview-with-richard-jones-.html |title=存档副本 |accessdate=2018-08-09 |archive-date=2018-08-09 |archive-url=https://web.archive.org/web/20180809153239/https://www.i-programmer.info/professional-programmer/i-programmer/5697-why-pyweek-an-interview-with-richard-jones-.html |dead-url=no }}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=https://wiki.python.org/moin/PyWeek |title=存档副本 |accessdate=2018-08-09 |archive-date=2020-03-06 |archive-url=https://web.archive.org/web/20200306095842/https://wiki.python.org/moin/PyWeek |dead-url=no }}&amp;lt;/ref&amp;gt;社群已經創造了許多Pygame的教學。&amp;lt;!-- First ref is a primary source, but still relevant. Other refs clearly support this assertion --&amp;gt;&amp;lt;ref&amp;gt;{{cite web|url=http://www.pygame.org/docs/|title=pygame documentation: Tutorials|accessdate=2017-11-12|archive-date=2017-11-10|archive-url=https://web.archive.org/web/20171110223613/http://www.pygame.org/docs/|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{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=|accessdate=2008-12-19}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{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|accessdate=2008-12-19|archive-date=2008-12-20|archive-url=https://web.archive.org/web/20081220125223/http://www.linuxjournal.com/article/7694|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web|url=http://pygametutorials.wikidot.com/|title=PyGame Tutorials - tutorials with OOP approach|accessdate=2018-08-09|archive-date=2018-08-09|archive-url=https://web.archive.org/web/20180809122510/http://pygametutorials.wikidot.com/|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web|url=http://showmedo.com/videos/series?name=pythonMayerPyGameSeries|title=pyGame Basics|publisher=ShowMeDo.com|deadurl=yes|archiveurl=https://web.archive.org/web/20070429080319/http://showmedo.com/videos/series?name=pythonMayerPyGameSeries|archivedate=2007-04-29|df=|accessdate=2008-12-19}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{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=|accessdate=2008-12-19}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 参考 ==&lt;br /&gt;
&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
== 链接 ==&lt;br /&gt;
* [https://web.archive.org/web/20130922091530/http://www.pygame.org/ Pygame homepage]—Pygame documentation, wiki, news, download and more.&lt;br /&gt;
* [https://web.archive.org/web/20081217081451/http://rene.f0o.com/mywiki/PythonGameProgramming An Introduction to Python Game Programming] - written by Rene Dudfield and Geoff Howland&lt;br /&gt;
* [http://www.pyweek.org Pyweek homepage]{{Wayback|url=http://www.pyweek.org/ |date=20081217020438 }}—regular contest to write a game during one week using Python (most entries use pygame).&lt;br /&gt;
* [news://gmane.comp.python.pygame Pygame newsgroup]{{dead link|date=2017年11月 |bot=InternetArchiveBot |fix-attempted=yes }} [https://web.archive.org/web/20090311035559/http://news.gmane.org/gmane.comp.python.pygame （web access）]— the &amp;quot;official&amp;quot; Pygame [[newsgroup]]，requires registration&lt;br /&gt;
* [https://web.archive.org/web/20050205015600/http://www.pygame.org/docs/tut/chimp/ChimpLineByLine.html Line by line tutorial]—Tutorial for beginners by Pete Shinners.&lt;br /&gt;
* [http://www.linuxjournal.com/article/7694 Creating Games with Python]{{Wayback|url=http://www.linuxjournal.com/article/7694 |date=20081220125223 }} - A tutorial explaining how to use Pygame for game development and improved execution.&lt;br /&gt;
* [https://web.archive.org/web/20070429080319/http://showmedo.com/videos/series?name=pythonMayerPyGameSeries pyGame Basics] and [https://web.archive.org/web/20070429111639/http://showmedo.com/videos/series?name=pythonArellanoPyGameSeries Arinoid tutorials] video tutorials at [[showmedo]]&lt;br /&gt;
* [https://web.archive.org/web/20081212113920/http://www.apress.com/book/view/1590598725 Beginning Game Development with Python and Pygame] -- A new book discussing game development using Pygame&lt;br /&gt;
* [https://web.archive.org/web/20110906045624/http://www.wiley.com/WileyCDA/WileyTitle/productCd-0470068221.html Game Programming the L Line] -- A book that introduces programming and game development with Python and pygame&lt;br /&gt;
* [http://pyopengl.sourceforge.net/ pyOpenGL]{{Wayback|url=http://pyopengl.sourceforge.net/ |date=20110615075139 }} - Python OpenGL Bindings&lt;br /&gt;
&lt;br /&gt;
{{游戏引擎}}&lt;br /&gt;
&lt;br /&gt;
[[Category:自由發展元件與函式庫]]&lt;br /&gt;
[[Category:自由软件]]&lt;br /&gt;
[[Category:游戏引擎]]&lt;br /&gt;
[[Category:电子游戏研发]]&lt;br /&gt;
[[Category:電子遊戲開發軟件]]&lt;br /&gt;
[[Category:Python库]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Mhss</name></author>
	</entry>
</feed>