CINXE.COM

Pygame - Wikipedia

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Pygame - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy", "wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"b38983dc-1120-4a6c-8d89-594ccc2e0f4d","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Pygame","wgTitle":"Pygame","wgCurRevisionId":1260219603,"wgRevisionId":1260219603,"wgArticleId":1235986,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Use dmy dates from September 2023","Articles with short description","Short description is different from Wikidata","Application programming interfaces","Free computer libraries","Free software programmed in Python","Graphics libraries","Linux APIs","MacOS APIs","Python (programming language) libraries","Simple DirectMedia Layer","Video game development software","Video game development software for Linux","Windows APIs"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel": "wikitext","wgRelevantPageName":"Pygame","wgRelevantArticleId":1235986,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":10000,"wgRelatedArticlesCompat":[],"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q1140252","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model", "platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","ext.pygments":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","ext.pygments.view","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips", "ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.cite.styles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.5"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Pygame - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/Pygame"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=Pygame&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/Pygame"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Pygame rootpage-Pygame skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_en.wikipedia.org&amp;uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&amp;returnto=Pygame" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&amp;returnto=Pygame" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_en.wikipedia.org&amp;uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Pygame" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Pygame" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-History" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#History"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>History</span> </div> </a> <ul id="toc-History-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Development_of_version_2" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Development_of_version_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Development of version 2</span> </div> </a> <ul id="toc-Development_of_version_2-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Features" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Features"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Features</span> </div> </a> <ul id="toc-Features-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Community" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Community"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Community</span> </div> </a> <ul id="toc-Community-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Sample_code" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Sample_code"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Sample code</span> </div> </a> <ul id="toc-Sample_code-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Notable_games_using_Pygame" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Notable_games_using_Pygame"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Notable games using Pygame</span> </div> </a> <ul id="toc-Notable_games_using_Pygame-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Notes" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Notes"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>Notes</span> </div> </a> <ul id="toc-Notes-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-References" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#References"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>References</span> </div> </a> <ul id="toc-References-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-External_links" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#External_links"> <div class="vector-toc-text"> <span class="vector-toc-numb">10</span> <span>External links</span> </div> </a> <ul id="toc-External_links-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Pygame</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 26 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-26" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">26 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D8%A8%D8%A7%D9%8A_%D8%AC%D8%A7%D9%8A%D9%85_(%D8%A8%D8%A7%D9%8A%D8%AB%D9%88%D9%86)" title="باي جايم (بايثون) – Arabic" lang="ar" hreflang="ar" data-title="باي جايم (بايثون)" data-language-autonym="العربية" data-language-local-name="Arabic" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://bn.wikipedia.org/wiki/%E0%A6%AA%E0%A6%BE%E0%A6%87%E0%A6%97%E0%A7%87%E0%A6%87%E0%A6%AE" title="পাইগেইম – Bangla" lang="bn" hreflang="bn" data-title="পাইগেইম" data-language-autonym="বাংলা" data-language-local-name="Bangla" class="interlanguage-link-target"><span>বাংলা</span></a></li><li class="interlanguage-link interwiki-bg mw-list-item"><a href="https://bg.wikipedia.org/wiki/Pygame" title="Pygame – Bulgarian" lang="bg" hreflang="bg" data-title="Pygame" data-language-autonym="Български" data-language-local-name="Bulgarian" class="interlanguage-link-target"><span>Български</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/Pygame" title="Pygame – Czech" lang="cs" hreflang="cs" data-title="Pygame" data-language-autonym="Čeština" data-language-local-name="Czech" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Pygame" title="Pygame – German" lang="de" hreflang="de" data-title="Pygame" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-el mw-list-item"><a href="https://el.wikipedia.org/wiki/Pygame" title="Pygame – Greek" lang="el" hreflang="el" data-title="Pygame" data-language-autonym="Ελληνικά" data-language-local-name="Greek" class="interlanguage-link-target"><span>Ελληνικά</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/Pygame" title="Pygame – Spanish" lang="es" hreflang="es" data-title="Pygame" data-language-autonym="Español" data-language-local-name="Spanish" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D9%BE%D8%A7%DB%8C%E2%80%8C%DA%AF%DB%8C%D9%85" title="پای‌گیم – Persian" lang="fa" hreflang="fa" data-title="پای‌گیم" data-language-autonym="فارسی" data-language-local-name="Persian" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Pygame" title="Pygame – French" lang="fr" hreflang="fr" data-title="Pygame" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/Pygame" title="Pygame – Korean" lang="ko" hreflang="ko" data-title="Pygame" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/Pygame" title="Pygame – Italian" lang="it" hreflang="it" data-title="Pygame" data-language-autonym="Italiano" data-language-local-name="Italian" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/Pygame" title="Pygame – Hebrew" lang="he" hreflang="he" data-title="Pygame" data-language-autonym="עברית" data-language-local-name="Hebrew" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://hu.wikipedia.org/wiki/Pygame" title="Pygame – Hungarian" lang="hu" hreflang="hu" data-title="Pygame" data-language-autonym="Magyar" data-language-local-name="Hungarian" class="interlanguage-link-target"><span>Magyar</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/Pygame" title="Pygame – Dutch" lang="nl" hreflang="nl" data-title="Pygame" data-language-autonym="Nederlands" data-language-local-name="Dutch" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/Pygame" title="Pygame – Japanese" lang="ja" hreflang="ja" data-title="Pygame" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/Pygame" title="Pygame – Polish" lang="pl" hreflang="pl" data-title="Pygame" data-language-autonym="Polski" data-language-local-name="Polish" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/Pygame" title="Pygame – Portuguese" lang="pt" hreflang="pt" data-title="Pygame" data-language-autonym="Português" data-language-local-name="Portuguese" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/Pygame" title="Pygame – Russian" lang="ru" hreflang="ru" data-title="Pygame" data-language-autonym="Русский" data-language-local-name="Russian" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/Pygame" title="Pygame – Simple English" lang="en-simple" hreflang="en-simple" data-title="Pygame" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/Pygame" title="Pygame – Finnish" lang="fi" hreflang="fi" data-title="Pygame" data-language-autonym="Suomi" data-language-local-name="Finnish" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-sv mw-list-item"><a href="https://sv.wikipedia.org/wiki/Pygame" title="Pygame – Swedish" lang="sv" hreflang="sv" data-title="Pygame" data-language-autonym="Svenska" data-language-local-name="Swedish" class="interlanguage-link-target"><span>Svenska</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/Pygame" title="Pygame – Turkish" lang="tr" hreflang="tr" data-title="Pygame" data-language-autonym="Türkçe" data-language-local-name="Turkish" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/Pygame" title="Pygame – Ukrainian" lang="uk" hreflang="uk" data-title="Pygame" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/Pygame" title="Pygame – Vietnamese" lang="vi" hreflang="vi" data-title="Pygame" data-language-autonym="Tiếng Việt" data-language-local-name="Vietnamese" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/Pygame" title="Pygame – Cantonese" lang="yue" hreflang="yue" data-title="Pygame" data-language-autonym="粵語" data-language-local-name="Cantonese" class="interlanguage-link-target"><span>粵語</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/Pygame" title="Pygame – Chinese" lang="zh" hreflang="zh" data-title="Pygame" data-language-autonym="中文" data-language-local-name="Chinese" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q1140252#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Pygame" title="View the content page [c]" accesskey="c"><span>Article</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:Pygame" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Pygame"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Pygame&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Pygame&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Pygame"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Pygame&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Pygame&amp;action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Pygame" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Pygame" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Pygame&amp;oldid=1260219603" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Pygame&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&amp;page=Pygame&amp;id=1260219603&amp;wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FPygame"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FPygame"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=Pygame&amp;action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Pygame&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Category:Pygame" hreflang="en"><span>Wikimedia Commons</span></a></li><li class="wb-otherproject-link wb-otherproject-wikibooks mw-list-item"><a href="https://en.wikibooks.org/wiki/Python_Programming/Game_Programming_in_Python" hreflang="en"><span>Wikibooks</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q1140252" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><p class="mw-empty-elt"> </p> <div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">Python module for writing video games</div> <style data-mw-deduplicate="TemplateStyles:r1257001546">.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme) div:not(.notheme){background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table tr{display:table-row!important}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}</style><table class="infobox vevent"><tbody><tr><td colspan="2" class="infobox-image logo"><span typeof="mw:File"><a href="/wiki/File:Pygame_logo.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/b/be/Pygame_logo.svg/250px-Pygame_logo.svg.png" decoding="async" width="250" height="70" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/be/Pygame_logo.svg/375px-Pygame_logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/be/Pygame_logo.svg/500px-Pygame_logo.svg.png 2x" data-file-width="512" data-file-height="144" /></a></span></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Programmer" title="Programmer">Original author(s)</a></th><td class="infobox-data">Lenard Lindstrom, René Dudfield, Pete Shinners, Nicholas Dudfield, Thomas Kluyver, and others<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Programmer" title="Programmer">Developer(s)</a></th><td class="infobox-data">Pygame Community</td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;">Initial release</th><td class="infobox-data">28&#160;October 2000<span class="noprint">&#59;&#32;24 years ago</span><span style="display:none">&#160;(<span class="bday dtstart published updated">2000-10-28</span>)</span><sup id="cite_ref-pygame-intro_2-0" class="reference"><a href="#cite_note-pygame-intro-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup></td></tr><tr style="display: none;"><td colspan="2" class="infobox-full-data"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1257001546"></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Software_release_life_cycle" title="Software release life cycle">Stable release</a></th><td class="infobox-data"><div style="margin:0px;">2.5.2 / 18&#160;September 2023<span class="noprint">&#59;&#32;14 months ago</span><span style="display:none">&#160;(<span class="bday dtstart published updated">2023-09-18</span>)</span><sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">&#91;</span>4<span class="cite-bracket">&#93;</span></a></sup></div></td></tr><tr style="display:none"><td colspan="2"> </td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Repository_(version_control)" title="Repository (version control)">Repository</a></th><td class="infobox-data"><style data-mw-deduplicate="TemplateStyles:r1126788409">.mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}</style><div class="plainlist"><ul><li><span class="url"><a rel="nofollow" class="external text" href="https://github.com/pygame/pygame/">github<wbr />.com<wbr />/pygame<wbr />/pygame<wbr />/</a></span> <span class="mw-valign-text-top noprint" typeof="mw:File/Frameless"><a href="https://www.wikidata.org/wiki/Q1140252#P1324" title="Edit this at Wikidata"><img alt="Edit this at Wikidata" src="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/10px-OOjs_UI_icon_edit-ltr-progressive.svg.png" decoding="async" width="10" height="10" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/15px-OOjs_UI_icon_edit-ltr-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/20px-OOjs_UI_icon_edit-ltr-progressive.svg.png 2x" data-file-width="20" data-file-height="20" /></a></span></li></ul> </div></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;">Written in</th><td class="infobox-data"><a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a>, <a href="/wiki/C_(programming_language)" title="C (programming language)">C</a>, <a href="/wiki/Cython" title="Cython">Cython</a>, and <a href="/wiki/Assembly_language" title="Assembly language">Assembly</a><sup id="cite_ref-about_5-0" class="reference"><a href="#cite_note-about-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Operating_system" title="Operating system">Operating system</a></th><td class="infobox-data"><a href="/wiki/Cross-platform" class="mw-redirect" title="Cross-platform">Cross-platform</a></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Software_categories#Categorization_approaches" title="Software categories">Type</a></th><td class="infobox-data"><a href="/wiki/Application_Programming_Interface" class="mw-redirect" title="Application Programming Interface">API</a></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Software_license" title="Software license">License</a></th><td class="infobox-data"><a href="/wiki/GNU_Lesser_General_Public_License" title="GNU Lesser General Public License">GNU Lesser General Public License</a></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;">Website</th><td class="infobox-data"><span class="url"><a rel="nofollow" class="external text" href="https://www.pygame.org">www<wbr />.pygame<wbr />.org</a></span>&#160;<span class="penicon autoconfirmed-show"><span class="mw-valign-text-top" typeof="mw:File/Frameless"><a href="https://www.wikidata.org/wiki/Q1140252?uselang=en#P856" title="Edit this on Wikidata"><img alt="Edit this on Wikidata" src="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/10px-OOjs_UI_icon_edit-ltr-progressive.svg.png" decoding="async" width="10" height="10" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/15px-OOjs_UI_icon_edit-ltr-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/20px-OOjs_UI_icon_edit-ltr-progressive.svg.png 2x" data-file-width="20" data-file-height="20" /></a></span></span></td></tr></tbody></table> <p><b>Pygame</b> is a <a href="/wiki/Cross-platform" class="mw-redirect" title="Cross-platform">cross-platform</a> set of <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a> modules designed for writing <a href="/wiki/Video_game" title="Video game">video games</a>. It includes <a href="/wiki/Computer_graphics" title="Computer graphics">computer graphics</a> and sound <a href="/wiki/Library_(computing)" title="Library (computing)">libraries</a> designed to be used with the Python <a href="/wiki/Programming_language" title="Programming language">programming language</a>.<sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup> </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="History">History</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pygame&amp;action=edit&amp;section=1" title="Edit section: History"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Pygame was originally written by <a href="/w/index.php?title=Pete_Shinners&amp;action=edit&amp;redlink=1" class="new" title="Pete Shinners (page does not exist)">Pete Shinners</a> to replace <a href="/w/index.php?title=PySDL&amp;action=edit&amp;redlink=1" class="new" title="PySDL (page does not exist)">PySDL</a> after its development stalled.<sup id="cite_ref-pygame-intro_2-1" class="reference"><a href="#cite_note-pygame-intro-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">&#91;</span>8<span class="cite-bracket">&#93;</span></a></sup> It has been a <a href="/wiki/Free_software_community" class="mw-redirect" title="Free software community">community</a> project since 2000<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">&#91;</span>9<span class="cite-bracket">&#93;</span></a></sup> and is released under the <a href="/wiki/Free_software" title="Free software">free software</a> <a href="/wiki/GNU_Lesser_General_Public_License" title="GNU Lesser General Public License">GNU Lesser General Public License</a><sup id="cite_ref-about_5-1" class="reference"><a href="#cite_note-about-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> (which "provides for Pygame to be distributed with <a href="/wiki/Open-source_software" title="Open-source software">open source</a> and commercial software"<sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup>). </p> <div class="mw-heading mw-heading2"><h2 id="Development_of_version_2">Development of version 2</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pygame&amp;action=edit&amp;section=2" title="Edit section: Development of version 2"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Pygame version 2 was planned as "Pygame Reloaded" in 2009, but development and maintenance of Pygame completely stopped until the end of 2016 with version 1.9.1. After the release of version 1.9.5 in March 2019, development of a new version 2 was active on the roadmap.<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup> </p><p>Pygame 2.0 released on 28 October, 2020, Pygame's 20th anniversary.<sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="Features">Features</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pygame&amp;action=edit&amp;section=3" title="Edit section: Features"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Pygame uses the <a href="/wiki/Simple_DirectMedia_Layer" title="Simple DirectMedia Layer">Simple DirectMedia Layer</a> (SDL) library,<sup id="cite_ref-fn1_13-0" class="reference"><a href="#cite_note-fn1-13"><span class="cite-bracket">&#91;</span>a<span class="cite-bracket">&#93;</span></a></sup> with the intention of allowing <a href="/wiki/Real-time_computer_graphics" title="Real-time computer graphics">real-time</a> <a href="/wiki/Computer_game" class="mw-redirect" title="Computer game">computer game</a> development without the <a href="/wiki/Low-level_programming_language" title="Low-level programming language">low-level</a> mechanics of the <a href="/wiki/C_(programming_language)" title="C (programming language)">C programming language</a> and its derivatives. This is based on the assumption that the most <a href="/wiki/Computationally_expensive" class="mw-redirect" title="Computationally expensive">expensive</a> functions inside games can be abstracted from the game logic, making it possible to use a <a href="/wiki/High-level_programming_language" title="High-level programming language">high-level programming language</a>, such as Python, to structure the game.<sup id="cite_ref-about_5-2" class="reference"><a href="#cite_note-about-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> </p><p>Other features that SDL does have include vector math, <a href="/wiki/Collision_detection" title="Collision detection">collision detection</a>, 2D sprite <a href="/wiki/Scene_graph" title="Scene graph">scene graph</a> management, <a href="/wiki/MIDI" title="MIDI">MIDI</a> support, camera, pixel-array manipulation, transformations, filtering, advanced freetype font support, and drawing.<sup id="cite_ref-14" class="reference"><a href="#cite_note-14"><span class="cite-bracket">&#91;</span>13<span class="cite-bracket">&#93;</span></a></sup> </p><p>Applications using Pygame can run on Android phones and tablets with the use of Pygame Subset for Android (pgs4a).<sup id="cite_ref-15" class="reference"><a href="#cite_note-15"><span class="cite-bracket">&#91;</span>14<span class="cite-bracket">&#93;</span></a></sup> Sound, vibration, keyboard, and accelerometer are supported on Android.<sup id="cite_ref-16" class="reference"><a href="#cite_note-16"><span class="cite-bracket">&#91;</span>15<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="Community">Community</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pygame&amp;action=edit&amp;section=4" title="Edit section: Community"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><span class="anchor" id="pygame-ce"></span> Following disagreements between former core developers and the repository owner, a fork known as pygame-ce (Community Edition) was created.<sup id="cite_ref-17" class="reference"><a href="#cite_note-17"><span class="cite-bracket">&#91;</span>16<span class="cite-bracket">&#93;</span></a></sup> </p><p><span class="anchor" id="PyWeek"></span> There is a regular competition, called PyWeek, to write games using Python (and usually but not necessarily, Pygame).<sup id="cite_ref-18" class="reference"><a href="#cite_note-18"><span class="cite-bracket">&#91;</span>17<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-19" class="reference"><a href="#cite_note-19"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-20" class="reference"><a href="#cite_note-20"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup> The community has created many tutorials for Pygame.<sup id="cite_ref-21" class="reference"><a href="#cite_note-21"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-23" class="reference"><a href="#cite_note-23"><span class="cite-bracket">&#91;</span>22<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-24" class="reference"><a href="#cite_note-24"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-25" class="reference"><a href="#cite_note-25"><span class="cite-bracket">&#91;</span>24<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="Sample_code">Sample code</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pygame&amp;action=edit&amp;section=5" title="Edit section: Sample code"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The following code makes an image of a raccoon("raccoon.png") bounce when hitting an edge. </p> <div class="mw-highlight mw-highlight-lang-python mw-content-ltr" dir="ltr"><pre><span></span><span class="kn">import</span> <span class="nn">pygame</span><span class="o">,</span> <span class="nn">sys</span> <span class="n">pygame</span><span class="o">.</span><span class="n">init</span><span class="p">()</span> <span class="n">screen</span> <span class="o">=</span> <span class="n">pygame</span><span class="o">.</span><span class="n">display</span><span class="o">.</span><span class="n">set_mode</span><span class="p">((</span><span class="mi">1280</span><span class="p">,</span> <span class="mi">720</span><span class="p">))</span> <span class="n">clock</span> <span class="o">=</span> <span class="n">pygame</span><span class="o">.</span><span class="n">time</span><span class="o">.</span><span class="n">Clock</span><span class="p">()</span> <span class="n">clock</span><span class="o">.</span><span class="n">tick</span><span class="p">(</span><span class="mi">30</span><span class="p">)</span> <span class="n">black</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span> <span class="n">raccoon</span> <span class="o">=</span> <span class="n">pygame</span><span class="o">.</span><span class="n">image</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="s2">&quot;raccoon.png&quot;</span><span class="p">)</span> <span class="n">raccoon</span> <span class="o">=</span> <span class="n">pygame</span><span class="o">.</span><span class="n">transform</span><span class="o">.</span><span class="n">scale</span><span class="p">(</span><span class="n">raccoon</span><span class="p">,</span> <span class="p">(</span><span class="mi">200</span><span class="p">,</span> <span class="mi">140</span><span class="p">))</span> <span class="n">raccoonrect</span> <span class="o">=</span> <span class="n">raccoon</span><span class="o">.</span><span class="n">get_rect</span><span class="p">()</span> <span class="n">velocity</span> <span class="o">=</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span><span class="mi">1</span><span class="p">]</span> <span class="k">while</span> <span class="kc">True</span><span class="p">:</span> <span class="n">raccoonrect</span> <span class="o">=</span> <span class="n">raccoonrect</span><span class="o">.</span><span class="n">move</span><span class="p">(</span><span class="n">velocity</span><span class="p">)</span> <span class="k">if</span> <span class="n">raccoonrect</span><span class="o">.</span><span class="n">left</span> <span class="o">&lt;</span> <span class="mi">0</span> <span class="ow">or</span> <span class="n">raccoonrect</span><span class="o">.</span><span class="n">right</span> <span class="o">&gt;</span> <span class="mi">1280</span><span class="p">:</span> <span class="n">velocity</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="o">-</span><span class="n">velocity</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="n">raccoon</span> <span class="o">=</span> <span class="n">pygame</span><span class="o">.</span><span class="n">transform</span><span class="o">.</span><span class="n">flip</span><span class="p">(</span><span class="n">raccoon</span><span class="p">,</span><span class="kc">True</span><span class="p">,</span><span class="kc">False</span><span class="p">)</span> <span class="k">if</span> <span class="n">raccoonrect</span><span class="o">.</span><span class="n">top</span> <span class="o">&lt;</span> <span class="mi">0</span> <span class="ow">or</span> <span class="n">raccoonrect</span><span class="o">.</span><span class="n">bottom</span> <span class="o">&gt;</span> <span class="mi">720</span><span class="p">:</span> <span class="n">velocity</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="o">-</span><span class="n">velocity</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="k">for</span> <span class="n">event</span> <span class="ow">in</span> <span class="n">pygame</span><span class="o">.</span><span class="n">event</span><span class="o">.</span><span class="n">get</span><span class="p">():</span> <span class="k">if</span> <span class="n">event</span><span class="o">.</span><span class="n">type</span> <span class="o">==</span> <span class="n">pygame</span><span class="o">.</span><span class="n">QUIT</span><span class="p">:</span> <span class="n">sys</span><span class="o">.</span><span class="n">exit</span><span class="p">()</span> <span class="c1">#screen update </span> <span class="n">screen</span><span class="o">.</span><span class="n">fill</span><span class="p">(</span><span class="n">black</span><span class="p">)</span> <span class="n">screen</span><span class="o">.</span><span class="n">blit</span><span class="p">(</span><span class="n">raccoon</span><span class="p">,</span> <span class="n">raccoonrect</span><span class="p">)</span> <span class="n">pygame</span><span class="o">.</span><span class="n">display</span><span class="o">.</span><span class="n">flip</span><span class="p">()</span> </pre></div> <div class="mw-heading mw-heading2"><h2 id="Notable_games_using_Pygame">Notable games using Pygame</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pygame&amp;action=edit&amp;section=6" title="Edit section: Notable games using Pygame"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><i><a href="/wiki/Frets_on_Fire" title="Frets on Fire">Frets on Fire</a></i><sup id="cite_ref-26" class="reference"><a href="#cite_note-26"><span class="cite-bracket">&#91;</span>25<span class="cite-bracket">&#93;</span></a></sup></li> <li><i><a href="/wiki/Dangerous_High_School_Girls_in_Trouble!" title="Dangerous High School Girls in Trouble!">Dangerous High School Girls in Trouble!</a></i><sup id="cite_ref-27" class="reference"><a href="#cite_note-27"><span class="cite-bracket">&#91;</span>26<span class="cite-bracket">&#93;</span></a></sup></li></ul> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pygame&amp;action=edit&amp;section=7" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1259569809">.mw-parser-output .portalbox{padding:0;margin:0.5em 0;display:table;box-sizing:border-box;max-width:175px;list-style:none}.mw-parser-output .portalborder{border:1px solid var(--border-color-base,#a2a9b1);padding:0.1em;background:var(--background-color-neutral-subtle,#f8f9fa)}.mw-parser-output .portalbox-entry{display:table-row;font-size:85%;line-height:110%;height:1.9em;font-style:italic;font-weight:bold}.mw-parser-output .portalbox-image{display:table-cell;padding:0.2em;vertical-align:middle;text-align:center}.mw-parser-output .portalbox-link{display:table-cell;padding:0.2em 0.2em 0.2em 0.3em;vertical-align:middle}@media(min-width:720px){.mw-parser-output .portalleft{clear:left;float:left;margin:0.5em 1em 0.5em 0}.mw-parser-output .portalright{clear:right;float:right;margin:0.5em 0 0.5em 1em}}</style><ul role="navigation" aria-label="Portals" class="noprint portalbox portalborder portalright"> <li class="portalbox-entry"><span class="portalbox-image"><span class="noviewer" typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/3/31/Free_and_open-source_software_logo_%282009%29.svg/28px-Free_and_open-source_software_logo_%282009%29.svg.png" decoding="async" width="28" height="28" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/3/31/Free_and_open-source_software_logo_%282009%29.svg/42px-Free_and_open-source_software_logo_%282009%29.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/3/31/Free_and_open-source_software_logo_%282009%29.svg/56px-Free_and_open-source_software_logo_%282009%29.svg.png 2x" data-file-width="512" data-file-height="512" /></span></span></span><span class="portalbox-link"><a href="/wiki/Portal:Free_and_open-source_software" title="Portal:Free and open-source software">Free and open-source software portal</a></span></li><li class="portalbox-entry"><span class="portalbox-image"><span class="noviewer" typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/e/e0/WPVG_icon_2016.svg/28px-WPVG_icon_2016.svg.png" decoding="async" width="28" height="28" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/e/e0/WPVG_icon_2016.svg/42px-WPVG_icon_2016.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/e/e0/WPVG_icon_2016.svg/56px-WPVG_icon_2016.svg.png 2x" data-file-width="249" data-file-height="249" /></span></span></span><span class="portalbox-link"><a href="/wiki/Portal:Video_games" title="Portal:Video games">Video games portal</a></span></li></ul> <ul><li><a href="/wiki/Cocos2d" title="Cocos2d">Cocos2d</a></li> <li><a href="/wiki/Panda3D" title="Panda3D">Panda3D</a></li> <li><a href="/wiki/Pyglet" title="Pyglet">Pyglet</a></li></ul> <div class="mw-heading mw-heading2"><h2 id="Notes">Notes</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pygame&amp;action=edit&amp;section=8" title="Edit section: Notes"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist reflist-lower-alpha"> <div class="mw-references-wrap"><ol class="references"> <li id="cite_note-fn1-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-fn1_13-0">^</a></b></span> <span class="reference-text">Pygame 2 and later versions are based on SDL2, while earlier releases were based on SDL1.<sup id="cite_ref-28" class="reference"><a href="#cite_note-28"><span class="cite-bracket">&#91;</span>27<span class="cite-bracket">&#93;</span></a></sup></span> </li> </ol></div></div> <div class="mw-heading mw-heading2"><h2 id="References">References</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pygame&amp;action=edit&amp;section=9" title="Edit section: References"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239543626"><div class="reflist reflist-columns references-column-width" style="column-width: 30em;"> <ol class="references"> <li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/pygame/pygame/graphs/contributors">"Contributors to Pygame"</a>. <a href="/wiki/GitHub" title="GitHub">GitHub</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Contributors+to+Pygame&amp;rft.pub=GitHub&amp;rft_id=https%3A%2F%2Fgithub.com%2Fpygame%2Fpygame%2Fgraphs%2Fcontributors&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-pygame-intro-2"><span class="mw-cite-backlink">^ <a href="#cite_ref-pygame-intro_2-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-pygame-intro_2-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFShinners" class="citation web cs1">Shinners, Pete. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190917011758/http://www.pygame.org/docs/tut/PygameIntro.html">"Python Pygame Introduction - History"</a>. <i>Pygame.org</i>. Archived from <a rel="nofollow" class="external text" href="http://www.pygame.org/docs/tut/PygameIntro.html">the original</a> on 17 September 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">28 April</span> 2017</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Pygame.org&amp;rft.atitle=Python+Pygame+Introduction+-+History&amp;rft.aulast=Shinners&amp;rft.aufirst=Pete&amp;rft_id=http%3A%2F%2Fwww.pygame.org%2Fdocs%2Ftut%2FPygameIntro.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://pypi.python.org/pypi/Pygame/">"Downloads - Pygame - Python game development"</a>. <i>Pypi.python.org</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Pypi.python.org&amp;rft.atitle=Downloads+-+Pygame+-+Python+game+development&amp;rft_id=https%3A%2F%2Fpypi.python.org%2Fpypi%2FPygame%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.pygame.org/news/2023/9/pygame-2-5-2-yet-another-bug-fix-release">"Yet another bug fix release"</a>. <i>www.pygame.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2 December</span> 2023</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.pygame.org&amp;rft.atitle=Yet+another+bug+fix+release&amp;rft_id=https%3A%2F%2Fwww.pygame.org%2Fnews%2F2023%2F9%2Fpygame-2-5-2-yet-another-bug-fix-release&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-about-5"><span class="mw-cite-backlink">^ <a href="#cite_ref-about_5-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-about_5-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-about_5-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20190918143814/http://www.pygame.org/wiki/about">"About Pygame"</a>. GitHub. Archived from <a rel="nofollow" class="external text" href="https://www.pygame.org/wiki/about">the original</a> on 18 September 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">31 August</span> 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=About+Pygame&amp;rft.pub=GitHub&amp;rft_id=https%3A%2F%2Fwww.pygame.org%2Fwiki%2Fabout&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.pygame.org/wiki/GettingStarted">"GettingStarted"</a>. <i>Pygame.org</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Pygame.org&amp;rft.atitle=GettingStarted&amp;rft_id=https%3A%2F%2Fwww.pygame.org%2Fwiki%2FGettingStarted&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFAlam2023" class="citation web cs1">Alam, Imran (2 July 2023). <a rel="nofollow" class="external text" href="https://www.makeuseof.com/implement-dialogue-system-in-pygame/">"How to Implement a Dialogue System in Pygame"</a>. <i>MUO</i><span class="reference-accessdate">. Retrieved <span class="nowrap">29 November</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=MUO&amp;rft.atitle=How+to+Implement+a+Dialogue+System+in+Pygame&amp;rft.date=2023-07-02&amp;rft.aulast=Alam&amp;rft.aufirst=Imran&amp;rft_id=https%3A%2F%2Fwww.makeuseof.com%2Fimplement-dialogue-system-in-pygame%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://sourceforge.net/projects/pysdl/">"pySDL sourceforge page"</a>. <i>Sourceforge.net</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Sourceforge.net&amp;rft.atitle=pySDL+sourceforge+page&amp;rft_id=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpysdl%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/pygame/pygame/commit/a4e0f865c591980e7aa2a160a92a2c9098a678ec">"commit by other authors"</a>. GitHub.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=commit+by+other+authors&amp;rft.pub=GitHub&amp;rft_id=https%3A%2F%2Fgithub.com%2Fpygame%2Fpygame%2Fcommit%2Fa4e0f865c591980e7aa2a160a92a2c9098a678ec&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.pygame.org/docs/">"Pygame Front Page — pygame v2.0.1.dev1 documentation"</a>. <i>www.pygame.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">26 February</span> 2021</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.pygame.org&amp;rft.atitle=Pygame+Front+Page+%E2%80%94+pygame+v2.0.1.dev1+documentation&amp;rft_id=https%3A%2F%2Fwww.pygame.org%2Fdocs%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.pygame.org/news/2019/3/1-9-5-released-into-the-wilds">"pygame 1.9.5 released into the wilds"</a>. <i>www.pygame.org</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.pygame.org&amp;rft.atitle=pygame+1.9.5+released+into+the+wilds&amp;rft_id=https%3A%2F%2Fwww.pygame.org%2Fnews%2F2019%2F3%2F1-9-5-released-into-the-wilds&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/pygame/pygame/releases/tag/2.0.0">"pygame 2.0 - the happy dance birthday release"</a>. GitHub.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=pygame+2.0+-+the+happy+dance+birthday+release&amp;rft.pub=GitHub&amp;rft_id=https%3A%2F%2Fgithub.com%2Fpygame%2Fpygame%2Freleases%2Ftag%2F2.0.0&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-14">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.pygame.org/docs/">"Pygame docs"</a>. <i>Pygame.org</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Pygame.org&amp;rft.atitle=Pygame+docs&amp;rft_id=https%3A%2F%2Fwww.pygame.org%2Fdocs%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-15">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/renpytom/rapt-pygame-example">"Example of using RAPT to package pygame(_sdl2) games.: renpytom/rapt-pygame-example"</a>. GitHub. 1 April 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">1 April</span> 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Example+of+using+RAPT+to+package+pygame%28_sdl2%29+games.%3A+renpytom%2Frapt-pygame-example&amp;rft.pub=GitHub&amp;rft.date=2019-04-01&amp;rft_id=https%3A%2F%2Fgithub.com%2Frenpytom%2Frapt-pygame-example&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-16">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20141019204533/http://pygame.renpy.org/api.html">"API — Pygame Subset for Android"</a>. Archived from <a rel="nofollow" class="external text" href="http://pygame.renpy.org/api.html">the original</a> on 19 October 2014<span class="reference-accessdate">. Retrieved <span class="nowrap">14 October</span> 2014</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=API+%E2%80%94+Pygame+Subset+for+Android&amp;rft_id=http%3A%2F%2Fpygame.renpy.org%2Fapi.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-17">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://pypi.org/project/pygame-ce/">"pygame - Community Edition"</a>. <i>pypi.com</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=pypi.com&amp;rft.atitle=pygame+-+Community+Edition&amp;rft_id=https%3A%2F%2Fpypi.org%2Fproject%2Fpygame-ce%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-18">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.pyweek.org/">"PyWeek - Python Game Programming Challenge"</a>. <i>Pyweek.org</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Pyweek.org&amp;rft.atitle=PyWeek+-+Python+Game+Programming+Challenge&amp;rft_id=http%3A%2F%2Fwww.pyweek.org%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-19">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFGee2013" class="citation web cs1">Gee, Sue (29 March 2013). <a rel="nofollow" class="external text" href="https://www.i-programmer.info/professional-programmer/i-programmer/5697-why-pyweek-an-interview-with-richard-jones-.html">"Why PyWeek: An Interview with Richard Jones"</a>. <i>i-programmer.info</i><span class="reference-accessdate">. Retrieved <span class="nowrap">31 March</span> 2020</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=i-programmer.info&amp;rft.atitle=Why+PyWeek%3A+An+Interview+with+Richard+Jones&amp;rft.date=2013-03-29&amp;rft.aulast=Gee&amp;rft.aufirst=Sue&amp;rft_id=https%3A%2F%2Fwww.i-programmer.info%2Fprofessional-programmer%2Fi-programmer%2F5697-why-pyweek-an-interview-with-richard-jones-.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-20">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://wiki.python.org/moin/PyWeek">"PyWeek - Python Wiki"</a>. <i>Wiki.python.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">1 April</span> 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Wiki.python.org&amp;rft.atitle=PyWeek+-+Python+Wiki&amp;rft_id=https%3A%2F%2Fwiki.python.org%2Fmoin%2FPyWeek&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-21">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.pygame.org/docs/">"pygame documentation: Tutorials"</a>. <i>Pygame.org</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Pygame.org&amp;rft.atitle=pygame+documentation%3A+Tutorials&amp;rft_id=http%3A%2F%2Fwww.pygame.org%2Fdocs%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-22">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFSiddiqi2020" class="citation web cs1">Siddiqi (27 June 2020). <a rel="nofollow" class="external text" href="https://coderslegacy.com/python-game-projects-with-source-code/">"Python Game projects with source code"</a>. <i>CodersLegacy</i><span class="reference-accessdate">. Retrieved <span class="nowrap">25 December</span> 2020</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=CodersLegacy&amp;rft.atitle=Python+Game+projects+with+source+code&amp;rft.date=2020-06-27&amp;rft.au=Siddiqi&amp;rft_id=https%3A%2F%2Fcoderslegacy.com%2Fpython-game-projects-with-source-code%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-23"><span class="mw-cite-backlink"><b><a href="#cite_ref-23">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFShinners" class="citation web cs1">Shinners, Pete. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20050205015600/http://www.pygame.org/docs/tut/chimp/ChimpLineByLine.html">"Line by line tutorial - Tutorial for beginners"</a>. Archived from <a rel="nofollow" class="external text" href="http://pygame.org/docs/tut/chimp/ChimpLineByLine.html">the original</a> on 5 February 2005.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Line+by+line+tutorial+-+Tutorial+for+beginners&amp;rft.aulast=Shinners&amp;rft.aufirst=Pete&amp;rft_id=http%3A%2F%2Fpygame.org%2Fdocs%2Ftut%2Fchimp%2FChimpLineByLine.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-24"><span class="mw-cite-backlink"><b><a href="#cite_ref-24">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.linuxjournal.com/article/7694">"Creating Games with Python - A tutorial explaining how to use pygame for game development and improved execution"</a>. <i>Linuxjournal.com</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Linuxjournal.com&amp;rft.atitle=Creating+Games+with+Python+-+A+tutorial+explaining+how+to+use+pygame+for+game+development+and+improved+execution&amp;rft_id=http%3A%2F%2Fwww.linuxjournal.com%2Farticle%2F7694&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-25"><span class="mw-cite-backlink"><b><a href="#cite_ref-25">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20070429111639/http://showmedo.com/videos/series?name=pythonArellanoPyGameSeries">"Arinoid tutorials video tutorials at ShowMeDo"</a>. Archived from <a rel="nofollow" class="external text" href="http://showmedo.com/videos/series?name=pythonArellanoPyGameSeries">the original</a> on 29 April 2007.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Arinoid+tutorials+video+tutorials+at+ShowMeDo&amp;rft_id=http%3A%2F%2Fshowmedo.com%2Fvideos%2Fseries%3Fname%3DpythonArellanoPyGameSeries&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-26"><span class="mw-cite-backlink"><b><a href="#cite_ref-26">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/skyostil/fretsonfire">"fretsonfire/src at master · skyostil/fretsonfire"</a>. <i>GitHub</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2 June</span> 2023</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=GitHub&amp;rft.atitle=fretsonfire%2Fsrc+at+master+%C2%B7+skyostil%2Ffretsonfire&amp;rft_id=https%3A%2F%2Fgithub.com%2Fskyostil%2Ffretsonfire&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-27"><span class="mw-cite-backlink"><b><a href="#cite_ref-27">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://pygame.org/project-Dangerous+High+School+Girls+in+Trouble!-791-.html">"Dangerous High School Girls in Trouble!"</a>. <i>Pygame.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">8 July</span> 2011</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Pygame.org&amp;rft.atitle=Dangerous+High+School+Girls+in+Trouble%21&amp;rft_id=http%3A%2F%2Fpygame.org%2Fproject-Dangerous%2BHigh%2BSchool%2BGirls%2Bin%2BTrouble%21-791-.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> <li id="cite_note-28"><span class="mw-cite-backlink"><b><a href="#cite_ref-28">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.pygame.org/news/2019/3/1-9-5-released-into-the-wilds">"pygame 1.9.5 released into the wilds"</a>. <i>Pygame.org</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Pygame.org&amp;rft.atitle=pygame+1.9.5+released+into+the+wilds&amp;rft_id=https%3A%2F%2Fwww.pygame.org%2Fnews%2F2019%2F3%2F1-9-5-released-into-the-wilds&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3APygame" class="Z3988"></span></span> </li> </ol></div> <div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Pygame&amp;action=edit&amp;section=10" title="Edit section: External links"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><span class="official-website"><span class="url"><a rel="nofollow" class="external text" href="https://www.pygame.org">Official website</a></span></span> <span class="mw-valign-text-top" typeof="mw:File/Frameless"><a href="https://www.wikidata.org/wiki/Q1140252#P856" title="Edit this at Wikidata"><img alt="Edit this at Wikidata" src="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/10px-OOjs_UI_icon_edit-ltr-progressive.svg.png" decoding="async" width="10" height="10" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/15px-OOjs_UI_icon_edit-ltr-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/20px-OOjs_UI_icon_edit-ltr-progressive.svg.png 2x" data-file-width="20" data-file-height="20" /></a></span></li> <li><a rel="nofollow" class="external text" href="news://gmane.comp.python.pygame">Pygame newsgroup</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20070129083639/http://news.gmane.org/gmane.comp.python.pygame">(web access)</a> - the "official"</li> <li><a rel="nofollow" class="external text" href="http://pygame.renpy.org/">Pygame Subset for Android</a> (PGS4A)</li> <li><a rel="nofollow" class="external text" href="http://pyopengl.sourceforge.net/">pyOpenGL</a> - Python OpenGL Bindings</li> <li><a rel="nofollow" class="external text" href="https://pygame-sdl2.readthedocs.io/">Pygame-SDL2</a> - a reimplementation of Pygame APIs on top of SDL2</li> <li><a rel="nofollow" class="external text" href="https://pysdl2.readthedocs.io/">PySDL2</a> - a wrapper around the SDL2 library similar to the discontinued PySDL project</li></ul> <div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r1236075235">.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}</style></div><div role="navigation" class="navbox" aria-labelledby="Game_engines_(list)" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><style data-mw-deduplicate="TemplateStyles:r1239400231">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}</style><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Video_game_engines" title="Template:Video game engines"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Video_game_engines" title="Template talk:Video game engines"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Video_game_engines" title="Special:EditPage/Template:Video game engines"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Game_engines_(list)" style="font-size:114%;margin:0 4em"><a href="/wiki/Game_engine" title="Game engine">Game engines</a> (<a href="/wiki/List_of_game_engines" title="List of game engines">list</a>)</div></th></tr><tr><td class="navbox-abovebelow" colspan="2"><div> <ul><li><a href="/wiki/Source_port" title="Source port">Source port</a></li> <li><a href="/wiki/First-person_shooter_engine" title="First-person shooter engine">First-person shooter engine</a> <ul><li><a href="/wiki/List_of_first-person_shooter_engines" title="List of first-person shooter engines">list</a></li></ul></li> <li><a href="/wiki/Game_engine_recreation" title="Game engine recreation">Game engine recreation</a> <ul><li><a href="/wiki/List_of_game_engine_recreations" title="List of game engine recreations">list</a></li></ul></li> <li><a href="/wiki/Game_creation_system" title="Game creation system">Game creation system</a></li> <li><a href="/wiki/Game_integrated_development_environment" title="Game integrated development environment">Game IDE</a></li> <li><a href="/wiki/List_of_visual_novel_engines" title="List of visual novel engines">List of visual novel engines</a></li> <li><a href="/wiki/Id_Tech" title="Id Tech">id Tech</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Proprietary_software" title="Proprietary software">Proprietary</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:1%">1980s</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Cobra_(game_engine)" class="mw-redirect" title="Cobra (game engine)">Cobra</a></li> <li><a href="/wiki/Filmation_(game_engine)" title="Filmation (game engine)">Filmation</a></li> <li><a href="/wiki/Freescape" title="Freescape">Freescape</a></li> <li><a href="/wiki/Gold_Box" title="Gold Box">Gold Box</a></li> <li><a href="/wiki/SCUMM" title="SCUMM">SCUMM</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">1990s</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/3D_GameStudio" title="3D GameStudio">3D GameStudio</a></li> <li><a href="/wiki/Clickteam" title="Clickteam">Clickteam</a></li> <li><a href="/wiki/Dark_Engine" title="Dark Engine">Dark Engine</a></li> <li><a href="/wiki/GameMaker" title="GameMaker">GameMaker</a></li> <li><a href="/wiki/Genie_Engine" title="Genie Engine">Genie Engine</a></li> <li><a href="/wiki/GoldSrc" title="GoldSrc">GoldSrc</a></li> <li><a href="/wiki/Jedi_(game_engine)" title="Jedi (game engine)">Jedi</a></li> <li><a href="/wiki/LithTech" title="LithTech">LithTech</a></li> <li><a href="/wiki/Mugen_(game_engine)" title="Mugen (game engine)">Mugen</a></li> <li><a href="/wiki/Pie_in_the_Sky_(game_engine)" title="Pie in the Sky (game engine)">Pie in the Sky</a></li> <li><a href="/wiki/Reality_Lab" title="Reality Lab">Reality Lab</a></li> <li><a href="/wiki/RenderWare" title="RenderWare">RenderWare</a></li> <li><a href="/wiki/RPG_Maker" title="RPG Maker">RPG Maker</a></li> <li><a href="/wiki/Sim_RPG_Maker" title="Sim RPG Maker">Sim RPG Maker</a></li> <li><a href="/wiki/Unreal_Engine_1" title="Unreal Engine 1">Unreal Engine 1</a></li> <li><a href="/wiki/Virtual_Theatre" title="Virtual Theatre">Virtual Theatre</a></li> <li><a href="/wiki/Voxel_Space" title="Voxel Space">Voxel Space</a></li> <li><a href="/wiki/Zero_(game_engine)" class="mw-redirect" title="Zero (game engine)">Zero</a></li> <li><a href="/wiki/Zillions_of_Games" title="Zillions of Games">Zillions of Games</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">2000s</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Ubisoft_Anvil" title="Ubisoft Anvil">Anvil</a></li> <li><a href="/wiki/C4_Engine" title="C4 Engine">C4 Engine</a></li> <li><a href="/wiki/Chrome_Engine" title="Chrome Engine">Chrome Engine</a></li> <li><a href="/wiki/CryEngine" title="CryEngine">CryEngine</a></li> <li><a href="/wiki/Crystal_Tools" title="Crystal Tools">Crystal Tools</a></li> <li><a href="/wiki/Diesel_(game_engine)" class="mw-redirect" title="Diesel (game engine)">Diesel</a></li> <li><a href="/wiki/Ego_(game_engine)" class="mw-redirect" title="Ego (game engine)">Ego</a></li> <li><a href="/wiki/Essence_Engine" class="mw-redirect" title="Essence Engine">Essence Engine</a></li> <li><a href="/wiki/Euphoria_(software)" title="Euphoria (software)">Euphoria</a></li> <li><a href="/wiki/Flare3D" title="Flare3D">Flare3D</a></li> <li><a href="/wiki/Frostbite_(game_engine)" title="Frostbite (game engine)">Frostbite</a></li> <li><a href="/wiki/Gamebryo" title="Gamebryo">Gamebryo</a></li> <li><a href="/wiki/GameSalad" title="GameSalad">GameSalad</a></li> <li><a href="/wiki/HeroEngine" title="HeroEngine">HeroEngine</a></li> <li><a href="/wiki/IW_(game_engine)" title="IW (game engine)">IW</a></li> <li><a href="/wiki/Leadwerks" title="Leadwerks">Leadwerks</a></li> <li><a href="/wiki/Marmalade_(software)" title="Marmalade (software)">Marmalade</a></li> <li><a href="/wiki/MT_Framework" title="MT Framework">MT Framework</a></li> <li><a href="/wiki/PhyreEngine" title="PhyreEngine">PhyreEngine</a></li> <li><a href="/wiki/Q_(game_engine)" title="Q (game engine)">Q</a></li> <li><a href="/wiki/Rockstar_Advanced_Game_Engine" title="Rockstar Advanced Game Engine">RAGE</a></li> <li><a href="/wiki/Retro_Engine" title="Retro Engine">Retro Engine</a></li> <li><a href="/wiki/SAGE_(game_engine)" class="mw-redirect" title="SAGE (game engine)">SAGE</a></li> <li><a href="/wiki/Shark_3D" title="Shark 3D">Shark 3D</a></li> <li><a href="/wiki/Silent_Storm_engine" title="Silent Storm engine"><i>Silent Storm</i> engine</a></li> <li><a href="/wiki/Source_(game_engine)" title="Source (game engine)">Source</a></li> <li><a href="/wiki/Titan_(game_engine)" title="Titan (game engine)">Titan</a></li> <li><a href="/wiki/Unigine" title="Unigine">Unigine</a></li> <li><a href="/wiki/Unity_(game_engine)" title="Unity (game engine)">Unity</a></li> <li><a href="/wiki/Unreal_Engine_2" title="Unreal Engine 2">Unreal Engine 2</a></li> <li><a href="/wiki/Unreal_Engine_3" title="Unreal Engine 3">Unreal Engine 3</a></li> <li><a href="/wiki/Vicious_Engine" class="mw-redirect" title="Vicious Engine">Vicious Engine</a></li> <li><a href="/wiki/Vision_(game_engine)" title="Vision (game engine)">Vision</a></li> <li><a href="/wiki/Visual3D_Game_Engine" title="Visual3D Game Engine">Visual3D Game Engine</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">2010s</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/4A_Engine" title="4A Engine">4A Engine</a></li> <li><a href="/wiki/Amazon_Lumberyard" title="Amazon Lumberyard">Amazon Lumberyard</a></li> <li><a href="/wiki/Bitsquid" title="Bitsquid">Bitsquid</a></li> <li><a href="/wiki/Buildbox" title="Buildbox">Buildbox</a></li> <li><a href="/wiki/Construct_(game_engine)" title="Construct (game engine)">Construct</a></li> <li><a href="/wiki/Creation_Engine" title="Creation Engine">Creation Engine</a></li> <li><a href="/wiki/Decima_(game_engine)" title="Decima (game engine)">Decima</a></li> <li><a href="/wiki/Defold" title="Defold">Defold</a></li> <li><a href="/wiki/Felgo" title="Felgo">Felgo</a></li> <li><a href="/wiki/Fox_Engine" title="Fox Engine">Fox Engine</a></li> <li><a href="/wiki/Id_Tech_5" title="Id Tech 5">id Tech 5</a></li> <li><a href="/wiki/Id_Tech_6" title="Id Tech 6">id Tech 6</a></li> <li><a href="/wiki/Ignite_(game_engine)" title="Ignite (game engine)">Ignite</a></li> <li><a href="/wiki/Kynapse" title="Kynapse">Kynapse</a></li> <li><a href="/wiki/Luminous_Engine" title="Luminous Engine">Luminous Engine</a></li> <li><a href="/wiki/Nvidia_GameWorks" title="Nvidia GameWorks">Nvidia GameWorks</a></li> <li><a href="/wiki/Panta_Rhei_(game_engine)" title="Panta Rhei (game engine)">Panta Rhei</a></li> <li><a href="/wiki/Pixel_Game_Maker_MV" title="Pixel Game Maker MV">Pixel Game Maker MV</a></li> <li><a href="/wiki/RE_Engine" title="RE Engine">RE Engine</a></li> <li><a href="/wiki/Snowdrop_(game_engine)" title="Snowdrop (game engine)">Snowdrop</a></li> <li><a href="/wiki/Stencyl" title="Stencyl">Stencyl</a></li> <li><a href="/wiki/Source_2" title="Source 2">Source 2</a></li> <li><a href="/wiki/UbiArt_Framework" title="UbiArt Framework">UbiArt Framework</a></li> <li><a href="/wiki/Unreal_Engine_4" title="Unreal Engine 4">Unreal Engine 4</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">2020s</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Id_Tech_7" title="Id Tech 7">id Tech 7</a></li> <li><a href="/wiki/Unreal_Engine_5" title="Unreal Engine 5">Unreal Engine 5</a></li></ul> </div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Free_and_open-source_software" title="Free and open-source software">Free and<br />open-source</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th id="1970s" scope="row" class="navbox-group" style="width:1%">1970s</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Z-machine" title="Z-machine">Z-machine</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">1990s</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Adventure_Game_Studio" title="Adventure Game Studio">Adventure Game Studio</a></li> <li><a href="/wiki/Build_(game_engine)" title="Build (game engine)">Build</a></li> <li><a href="/wiki/Crystal_Space" title="Crystal Space">Crystal Space</a></li> <li><a href="/wiki/Doom_engine" title="Doom engine"><i>Doom</i> engine</a></li> <li><a href="/wiki/Game-Maker" title="Game-Maker">Game-Maker</a></li> <li><a href="/wiki/OHRRPGCE" class="mw-redirect" title="OHRRPGCE">OHRRPGCE</a></li> <li><a href="/wiki/Quake_engine" title="Quake engine"><i>Quake</i> engine</a></li> <li><a href="/wiki/Quake_II_engine" title="Quake II engine"><i>Quake II</i> engine</a></li> <li><a href="/wiki/Stratagus" title="Stratagus">Stratagus</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">2000s</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Away3D" title="Away3D">Away3D</a></li> <li><a href="/wiki/Blender_Game_Engine" title="Blender Game Engine">Blender Game Engine</a></li> <li><a href="/wiki/Bork3D_Game_Engine" class="mw-redirect" title="Bork3D Game Engine">Bork3D Game Engine</a></li> <li><a href="/wiki/Cocos2d" title="Cocos2d">Cocos2d</a></li> <li><a href="/wiki/Dim3" title="Dim3">Dim3</a></li> <li><a href="/wiki/Game_Editor" title="Game Editor">Game Editor</a></li> <li><a href="/wiki/GDevelop" title="GDevelop">GDevelop</a></li> <li><a href="/wiki/Id_Tech_3" title="Id Tech 3">id Tech 3</a></li> <li><a href="/wiki/Id_Tech_4" title="Id Tech 4">id Tech 4</a></li> <li><a href="/wiki/Irrlicht_Engine" title="Irrlicht Engine">Irrlicht Engine</a></li> <li><a href="/wiki/JMonkeyEngine" title="JMonkeyEngine">jMonkeyEngine</a></li> <li><a href="/wiki/Lightweight_Java_Game_Library" class="mw-redirect" title="Lightweight Java Game Library">Lightweight Java Game Library</a></li> <li><a href="/wiki/L%C3%B6ve_(game_engine)" class="mw-redirect" title="Löve (game engine)">Löve</a></li> <li><a href="/wiki/OGRE" title="OGRE">OGRE</a></li> <li><a href="/wiki/Open_Wonderland" title="Open Wonderland">Open Wonderland</a></li> <li><a href="/wiki/Panda3D" title="Panda3D">Panda3D</a></li> <li><a href="/wiki/Papervision3D" title="Papervision3D">Papervision3D</a></li> <li><a href="/wiki/Plasma_(game_engine)" title="Plasma (game engine)">Plasma</a></li> <li><a href="/wiki/Platinum_Arts_Sandbox" title="Platinum Arts Sandbox">Platinum Arts Sandbox</a></li> <li><a class="mw-selflink selflink">Pygame</a></li> <li><a href="/wiki/Ren%27Py" title="Ren&#39;Py">Ren'Py</a></li> <li><a href="/wiki/Scratch_(programming_language)" title="Scratch (programming language)">Scratch</a></li> <li><a href="/wiki/Solar2D" title="Solar2D">Solar2D</a></li> <li><a href="/wiki/Spring_Engine" title="Spring Engine">Spring Engine</a></li> <li><a href="/wiki/Thousand_Parsec" title="Thousand Parsec">Thousand Parsec</a></li> <li><a href="/wiki/Torque_(game_engine)" title="Torque (game engine)">Torque</a></li> <li><a href="/wiki/Vassal_Engine" class="mw-redirect" title="Vassal Engine">Vassal Engine</a></li> <li><a href="/wiki/Wintermute_Engine" title="Wintermute Engine">Wintermute Engine</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">2010s</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Delta3D" title="Delta3D">Delta3D</a></li> <li><a href="/wiki/Godot_(game_engine)" title="Godot (game engine)">Godot</a></li> <li><a href="/wiki/GPUOpen" title="GPUOpen">GPUOpen</a></li> <li><a href="/wiki/Horde3D" title="Horde3D">Horde3D</a></li> <li><a href="/wiki/LibGDX" title="LibGDX">libGDX</a></li> <li><a href="/wiki/Moai_(software)" title="Moai (software)">Moai</a></li> <li><a href="/wiki/OpenFL" title="OpenFL">OpenFL</a></li> <li><a href="/wiki/ORX" title="ORX">ORX</a></li> <li><a href="/wiki/PlayCanvas" title="PlayCanvas">PlayCanvas</a></li> <li><a href="/wiki/Raylib" title="Raylib">Raylib</a></li> <li><a href="/wiki/Snap!_(programming_language)" title="Snap! (programming language)">Snap!</a></li> <li><a href="/wiki/Stencyl" title="Stencyl">Stencyl</a></li> <li><a href="/wiki/Stride_(game_engine)" title="Stride (game engine)">Stride</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">2020s</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Open_3D_Engine" title="Open 3D Engine">Open 3D Engine</a></li></ul> </div></td></tr></tbody></table><div></div></td></tr></tbody></table></div> <!-- NewPP limit report Parsed by mw‐api‐int.codfw.main‐6fdd9f9b88‐8wqmv Cached time: 20241129153242 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 0.666 seconds Real time usage: 0.785 seconds Preprocessor visited node count: 2835/1000000 Post‐expand include size: 87724/2097152 bytes Template argument size: 3697/2097152 bytes Highest expansion depth: 27/100 Expensive parser function count: 7/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 105983/5000000 bytes Lua time usage: 0.393/10.000 seconds Lua memory usage: 7999616/52428800 bytes Number of Wikibase entities loaded: 2/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 688.162 1 -total 34.67% 238.601 2 Template:Infobox 32.61% 224.390 2 Template:Reflist 30.64% 210.851 1 Template:Infobox_software 27.33% 188.083 27 Template:Cite_web 13.72% 94.429 3 Template:Navbox 13.48% 92.749 1 Template:Video_game_engines 9.17% 63.098 1 Template:Short_description 5.79% 39.835 1 Template:Infobox_software/simple 5.64% 38.836 2 Template:Pagetype --> <!-- Saved in parser cache with key enwiki:pcache:idhash:1235986-0!canonical and timestamp 20241129153242 and revision id 1260219603. Rendering was triggered because: api-parse --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1&amp;useformat=desktop" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=Pygame&amp;oldid=1260219603">https://en.wikipedia.org/w/index.php?title=Pygame&amp;oldid=1260219603</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Categories</a>: <ul><li><a href="/wiki/Category:Application_programming_interfaces" title="Category:Application programming interfaces">Application programming interfaces</a></li><li><a href="/wiki/Category:Free_computer_libraries" title="Category:Free computer libraries">Free computer libraries</a></li><li><a href="/wiki/Category:Free_software_programmed_in_Python" title="Category:Free software programmed in Python">Free software programmed in Python</a></li><li><a href="/wiki/Category:Graphics_libraries" title="Category:Graphics libraries">Graphics libraries</a></li><li><a href="/wiki/Category:Linux_APIs" title="Category:Linux APIs">Linux APIs</a></li><li><a href="/wiki/Category:MacOS_APIs" title="Category:MacOS APIs">MacOS APIs</a></li><li><a href="/wiki/Category:Python_(programming_language)_libraries" title="Category:Python (programming language) libraries">Python (programming language) libraries</a></li><li><a href="/wiki/Category:Simple_DirectMedia_Layer" title="Category:Simple DirectMedia Layer">Simple DirectMedia Layer</a></li><li><a href="/wiki/Category:Video_game_development_software" title="Category:Video game development software">Video game development software</a></li><li><a href="/wiki/Category:Video_game_development_software_for_Linux" title="Category:Video game development software for Linux">Video game development software for Linux</a></li><li><a href="/wiki/Category:Windows_APIs" title="Category:Windows APIs">Windows APIs</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:Use_dmy_dates_from_September_2023" title="Category:Use dmy dates from September 2023">Use dmy dates from September 2023</a></li><li><a href="/wiki/Category:Articles_with_short_description" title="Category:Articles with short description">Articles with short description</a></li><li><a href="/wiki/Category:Short_description_is_different_from_Wikidata" title="Category:Short description is different from Wikidata">Short description is different from Wikidata</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 29 November 2024, at 15:32<span class="anonymous-show">&#160;(UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=Pygame&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-5c59558b9d-94m6t","wgBackendResponseTime":117,"wgPageParseReport":{"limitreport":{"cputime":"0.666","walltime":"0.785","ppvisitednodes":{"value":2835,"limit":1000000},"postexpandincludesize":{"value":87724,"limit":2097152},"templateargumentsize":{"value":3697,"limit":2097152},"expansiondepth":{"value":27,"limit":100},"expensivefunctioncount":{"value":7,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":105983,"limit":5000000},"entityaccesscount":{"value":2,"limit":400},"timingprofile":["100.00% 688.162 1 -total"," 34.67% 238.601 2 Template:Infobox"," 32.61% 224.390 2 Template:Reflist"," 30.64% 210.851 1 Template:Infobox_software"," 27.33% 188.083 27 Template:Cite_web"," 13.72% 94.429 3 Template:Navbox"," 13.48% 92.749 1 Template:Video_game_engines"," 9.17% 63.098 1 Template:Short_description"," 5.79% 39.835 1 Template:Infobox_software/simple"," 5.64% 38.836 2 Template:Pagetype"]},"scribunto":{"limitreport-timeusage":{"value":"0.393","limit":"10.000"},"limitreport-memusage":{"value":7999616,"limit":52428800}},"cachereport":{"origin":"mw-api-int.codfw.main-6fdd9f9b88-8wqmv","timestamp":"20241129153242","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"Pygame","url":"https:\/\/en.wikipedia.org\/wiki\/Pygame","sameAs":"http:\/\/www.wikidata.org\/entity\/Q1140252","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q1140252","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2004-12-03T01:00:56Z","dateModified":"2024-11-29T15:32:36Z","headline":"Python module"}</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10