{"id":859,"date":"2018-07-31T18:24:33","date_gmt":"2018-07-31T16:24:33","guid":{"rendered":"http:\/\/pythonprogramming.altervista.org\/?p=859"},"modified":"2018-08-27T17:37:14","modified_gmt":"2018-08-27T15:37:14","slug":"pygame-zero-games-examples","status":"publish","type":"post","link":"https:\/\/pythonprogramming.altervista.org\/pygame-zero-games-examples\/","title":{"rendered":"Pygame zero games examples"},"content":{"rendered":"<h2>The examples games of Pygame zero<\/h2>\n<p>Today we are going to take a look at some examples of games, classics from the 80ies, that are made with pygame zero and that are at disposal on the repository of Daniel Pope. So, here is the video that we&#8217;ll show where is the repository and how to start the games.<\/p>\n<p><a href=\"https:\/\/github.com\/lordmauve\/pgzero\">The repository link of Daniel Pope with the code of Pygame zero<\/a><\/p>\n<p><iframe loading=\"lazy\" width=\"100%\" height=\"400\" src=\"https:\/\/www.youtube.com\/embed\/4XSumbndHoI\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen><\/iframe><\/p>\n\t<script>\r\nvar title = \"Pygame zero\";\r\n\t\tvar links = [\r\n[\"https:\/\/pythonprogramming.altervista.org\/pong-v-1-0-pygame-example\/\",\"Pong v.1.0 (mouse) - Arkanoid beta\"],\r\n['https:\/\/pythonprogramming.altervista.org\/python-making-a-video-game\/', 'Example 1: intro'],\r\n['https:\/\/pythonprogramming.altervista.org\/pygame-zero-another-example\/', 'Example 2: a simple interaction'],\r\n['https:\/\/pythonprogramming.altervista.org\/pygame-zero-3-some-more-funny-games\/', 'Example 3: a simple game'],\r\n['https:\/\/pythonprogramming.altervista.org\/pygame-zero-4-catch-my-fall\/', 'Example 4: Alien Fall'],\r\n['https:\/\/pythonprogramming.altervista.org\/pygame-zero-5-improving-graphic-and-adding-sounds\/', 'Example 5: Alien Fall (2) - graphic and sounds'],\r\n['https:\/\/pythonprogramming.altervista.org\/pygame-zero-lander-by-daniel-pope\/', 'Lander: game 1'],\r\n['https:\/\/pythonprogramming.altervista.org\/pygame-zero-games-examples\/', 'Repository pygame and examples']\r\n];\r\n<\/script>\r\n<script>\r\n\t\r\nif (typeof next2 != \"undefined\"){let next2 = 0;}\r\n\t\r\nnext2 = 0;\r\n\thtml = \"\";\/\/<b style='color:coral;font-size:1.2em'>Other posts about \" + title + \"<\/b><br>\";\r\nfor (address of links) \r\n{\r\n\r\n\tif (next2 == 1){\r\n\t\thtml += \"<div style='background:coral'>\";\r\n\t\thtml += \"Next link => <a href='\" + address[0] + \"'>\" + address[1] + \"<\/a>\";\r\n\t\thtml += \"<\/div><br>\";\r\n\t\tnext2 = 0;\r\n\t}\r\n\tif (address[0] == document.URL) {\r\n\t\tnext2 = 1;\r\n\t}\r\n}\r\n\r\nif (typeof next != \"undefined\") {let next = 0;}\r\nif (typeof addressStart != \"undefined\") {let addressStart = \"\";}\r\nnext = 0;\r\naddressStart = \"<a href='\";\r\nfor (address of links) {\r\n\tif (next == 1){\r\n\t\thtml += \">>>\" + addressStart + address[0] + \"'>\" + address[1] + \"<\/a><br>\";\r\n\t\tnext = 0;\r\n\t}\r\n\telse if (addressStart + address[0] != document.URL)\r\n\t{\r\n\t\thtml += addressStart + address[0] + \"'>\" + address[1] + \"<\/a><br>\";\r\n\t}\r\n\telse\r\n\t{\r\n\t\tnext = 1;\r\n\t\tnext_address = address[0]\r\n\t\tnext_title = address[1]\r\n\t\thtml += \"<span style='color:gray'>\" + address[1] + \"<\/span><br>\";\r\n\t}\r\n\r\n}\r\n\r\n\thtml += `<span style=\"font-size:8px\">Powered by <a href=\"https:\/\/pythonprogramming.altervista.org\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2673\" src=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2019\/06\/altervista2.png\" alt=\"\" width=\"70\" height=\"25\" srcset=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2019\/06\/altervista2.png 156w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2019\/06\/altervista2-150x56.png 150w\" sizes=\"auto, (max-width: 70px) 100vw, 70px\" \/>pythonprogramming.altervista.org<\/a><\/span>`\r\n\thtml = \"<div style='background:yellow'>\" + html + \"<\/div>\";\r\n\tdocument.write(html)\r\n<\/script>\n","protected":false},"excerpt":{"rendered":"The repository of Pygame zero has many examples of nice porting of 80ies arcade games. Let&#8217;s take a look at the repository to see how to clone it on your desktop.\n<a class=\"moretag\" href=\"https:\/\/pythonprogramming.altervista.org\/pygame-zero-games-examples\/\"> [...]<\/a>","protected":false},"author":1,"featured_media":828,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[154,191,198],"tags":[192,4],"class_list":["post-859","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-games","category-pygame","category-pygame-zero","tag-pygame-zero","tag-python"],"avopt_banners_inside_post":true,"avopt_banners_on_page":true,"av_copy_from":"","av_sharing_message":"","av_sharing_allowed":false,"av_sharing_on":{"fb":[],"tw":[]},"av_allow_affiliate_banner":false,"av_allow_affiliate_multi_banner":false,"av_show_affiliation_buy_button":false,"av_post_rating":true,"av_have_post_rating_value":false,"av_is_artificial_intelligence_content":false,"_links":{"self":[{"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/posts\/859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/comments?post=859"}],"version-history":[{"count":3,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/posts\/859\/revisions"}],"predecessor-version":[{"id":1318,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/posts\/859\/revisions\/1318"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/media\/828"}],"wp:attachment":[{"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/media?parent=859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/categories?post=859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/tags?post=859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}