{"id":4709,"date":"2020-01-06T08:08:26","date_gmt":"2020-01-06T07:08:26","guid":{"rendered":"https:\/\/pythonprogramming.altervista.org\/?p=4709"},"modified":"2020-09-09T20:08:20","modified_gmt":"2020-09-09T18:08:20","slug":"pygame-map-editor-update-1-1","status":"publish","type":"post","link":"https:\/\/pythonprogramming.altervista.org\/pygame-map-editor-update-1-1\/","title":{"rendered":"Pygame Map editor update 1.1"},"content":{"rendered":"<p>One of the fundamental things to <strong>develop<\/strong> a <strong>game<\/strong> is the <strong>map<\/strong> <strong>editor<\/strong>. If you do not have something to speed up your work, it would be very hard to make thing nice and fast. Here is the <strong>project<\/strong> for a simple map editor. To be continued&#8230; this is <strong>version 1.1<\/strong> (6\/1\/2020).<\/p>\n<p><a href=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map2-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4711\" src=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map2-1.png\" alt=\"\" width=\"928\" height=\"512\" srcset=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map2-1.png 928w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map2-1-320x177.png 320w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map2-1-768x424.png 768w\" sizes=\"auto, (max-width: 928px) 100vw, 928px\" \/><\/a><\/p>\n<p>I made some changes to the editor for a platform game map version 1.0\u00a0with python and <strong>pygame<\/strong>:<\/p>\n<ul>\n<li><strong>create wall<\/strong> with <strong>left<\/strong> <strong>mouse<\/strong> <strong>button<\/strong><\/li>\n<li><strong>delete<\/strong> wall with <strong>right<\/strong> <strong>mouse<\/strong> <strong>button<\/strong><\/li>\n<\/ul>\n<p>Now the map building is much faster.<\/p>\n<h2>Some images for the tiles<\/h2>\n<p>Here are some attempts to make nice <strong>bricks<\/strong> for the walls <strong>tiles<\/strong>.<\/p>\n<p><a href=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/brick2_16.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4723\" src=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/brick2_16.png\" alt=\"\" width=\"16\" height=\"16\" \/><\/a> <a href=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/brick2_64.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4724\" src=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/brick2_64.png\" alt=\"\" width=\"64\" height=\"64\" \/><\/a> <a href=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/brick16.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4725\" src=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/brick16.png\" alt=\"\" width=\"16\" height=\"16\" \/><\/a> <a href=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/wall-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4726\" src=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/wall-1.png\" alt=\"\" width=\"16\" height=\"16\" \/><\/a><\/p>\n<p>You can, as before, continuosly <strong>build<\/strong> walls or <strong>deleting<\/strong> them by <strong>dragging<\/strong> the <strong>mouse<\/strong>.<\/p>\n<pre class=\"lang:default decode:true\">from pygame.locals import *\r\nimport pygame\r\nimport os\r\n\r\n\r\ndef init_display():\r\n    global screen, tile, display, WINDOW_SIZE\r\n    WINDOW_SIZE = (464*2, 256*2)\r\n    screen = pygame.display.set_mode(WINDOW_SIZE, 0, 32)\r\n    display = pygame.Surface((WINDOW_SIZE[0] \/\/ 2, WINDOW_SIZE[1] \/\/ 2))\r\n    tile = pygame.image.load(\"imgs\\\\tiles\\\\wall.png\")\r\n\r\n\r\ndef tiles(map1):\r\n    global tile\r\n    for y, line in enumerate(map1):\r\n        for x, c in enumerate(line):\r\n            if c == \"w\":\r\n                display.blit(tile, (x * 16, y * 16))\r\n\r\n\r\ndef map_to_list():\r\n    start = \"w\"*29\r\n    map1 = \"w\" + \" \" * 27 + \"w\\n\"\r\n    map1 = start + map1 * 14 + start\r\n    map1 = map1.splitlines()\r\n    map2 = []\r\n    for n, line in enumerate(map1):\r\n        map2.append(list(map1[n]))\r\n    return map2\r\n\r\n\r\nmap1 = map_to_list()\r\n\r\npygame.init()\r\ninit_display()\r\nloop = 1\r\nlast_pos = x, y = pygame.mouse.get_pos()\r\nletter = \"spazio\"\r\nnum_file = len(os.listdir())\r\nmap_name = f\"map{num_file}.png\"\r\nwhile loop:\r\n\r\n    display.fill((0, 0, 0))\r\n    tiles(map1)\r\n    for event in pygame.event.get():\r\n        if event.type == QUIT:\r\n            loop = 0\r\n        if event.type == pygame.KEYDOWN:\r\n            if event.key == K_s:\r\n                pygame.image.save(screen, map_name)\r\n                os.startfile(map_name)\r\n            if event.key == K_d:\r\n                map1 = map_to_list()\r\n        if pygame.mouse.get_pressed()[0]:\r\n            x, y = pygame.mouse.get_pos()\r\n            # You divide by 32 for its scaled (pygame.transform.scale)\r\n            x, y = int(x \/ 32), int(y \/ 32)\r\n            # x and y are col and row (the opposite)\r\n            row, col = y, x\r\n            map1[row][col] = \"w\"\r\n        elif pygame.mouse.get_pressed()[2]:\r\n            x, y = pygame.mouse.get_pos()\r\n            # You divide by 32 for its scaled (pygame.transform.scale)\r\n            x, y = int(x \/ 32), int(y \/ 32)\r\n            # x and y are col and row (the opposite)\r\n            row, col = y, x\r\n            map1[row][col] = \" \"\r\n\r\n    screen.blit(pygame.transform.scale(display, WINDOW_SIZE), (0, 0))\r\n    pygame.display.update()\r\npygame.quit()\r\n<\/pre>\n<h2>The video of version 1.1<\/h2>\n<p><iframe loading=\"lazy\" title=\"Pygame map editor update version 1.1\" width=\"747\" height=\"420\" src=\"https:\/\/www.youtube.com\/embed\/IvQiFVY0nqg?feature=oembed&amp;enablejsapi=1\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h2>The video of version 1.0<\/h2>\n<p><iframe loading=\"lazy\" title=\"Pygame platform in detail 2: a visual map editor\" width=\"747\" height=\"420\" src=\"https:\/\/www.youtube.com\/embed\/qMRfT89AjRo?feature=oembed&amp;enablejsapi=1\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h2>Here are some maps<\/h2>\n<p><a href=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map2-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4712\" src=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map2-2.png\" alt=\"\" width=\"928\" height=\"512\" srcset=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map2-2.png 928w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map2-2-320x177.png 320w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map2-2-768x424.png 768w\" sizes=\"auto, (max-width: 928px) 100vw, 928px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/mapnum_file.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4713\" src=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/mapnum_file.png\" alt=\"\" width=\"928\" height=\"512\" srcset=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/mapnum_file.png 928w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/mapnum_file-320x177.png 320w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/mapnum_file-768x424.png 768w\" sizes=\"auto, (max-width: 928px) 100vw, 928px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map22.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4716\" src=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map22.png\" alt=\"\" width=\"928\" height=\"512\" srcset=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map22.png 928w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map22-320x177.png 320w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/map22-768x424.png 768w\" sizes=\"auto, (max-width: 928px) 100vw, 928px\" \/><\/a><\/p>\n<p>pygame map editor for platform game or to edit a background of a stage<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"mMOoE5XAwh\"><p><a href=\"https:\/\/pythonprogramming.altervista.org\/map-editor-1-2-devlog\/\">Map editor 1.2 &#8211; Devlog<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Map editor 1.2 &#8211; Devlog&#8221; &#8212; python programming\" src=\"https:\/\/pythonprogramming.altervista.org\/map-editor-1-2-devlog\/embed\/#?secret=XV0ShCtGhJ#?secret=mMOoE5XAwh\" data-secret=\"mMOoE5XAwh\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>Repository https:\/\/github.com\/formazione\/map_editor<\/p>\n<p>video v. 1.2<\/p>\n<p><iframe loading=\"lazy\" title=\"Pygame map editor 1.2 - devlog\" width=\"747\" height=\"560\" src=\"https:\/\/www.youtube.com\/embed\/HAs1vxBJ4Pk?feature=oembed&amp;enablejsapi=1\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<p>Previous video v. 1.1<\/p>\n<p><iframe loading=\"lazy\" title=\"Pygame platformer map editor 1.1 (devlog, live coding)\" width=\"747\" height=\"560\" src=\"https:\/\/www.youtube.com\/embed\/dFgPg4AHzlk?feature=oembed&amp;enablejsapi=1\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<p>First video v. 1.0<\/p>\n<p><iframe loading=\"lazy\" title=\"Pygame Map Maker\" width=\"747\" height=\"420\" src=\"https:\/\/www.youtube.com\/embed\/QnyyAVL80mk?feature=oembed&amp;enablejsapi=1\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<h3>Pygame's Platform Game<\/h3>\r\n\r\n<a href=\"https:\/\/pythonprogramming.altervista.org\/pygame-platform-game-5-sounds-and-mixer\/\"><img decoding=\"async\" src=\"https:\/\/i1.wp.com\/pythonprogramming.altervista.org\/wp-content\/uploads\/2020\/01\/climbercover.png?w=557&ssl=1\"\/ width=\"50%\"><\/a>\r\n<script>\r\nvar title = \"Platform Pygame\";\r\n\t\tvar links = [\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-animation-of-a-sprite-v-1-3\/\",\"Animation 1.3\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-sprite-animation-v-2-better-coding-test-it-checking-fps-on-the-screen\/\",\"Animation 1.2\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-how-to-display-the-frame-rate-fps-on-the-screen\/\",\"Display Frame rate\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-sprite-animation-update\/\",\"Animation 1.1\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-platformer-1\/\",\"Pygame Platform Game 1\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/python-platform-game-2\/\",\"Pygame Platform 2\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-platform-game-3-recap-cheatsheet\/\",\"Pygame PLatform 3 - recap and some Cheat Sheet\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-platform-game-4-background-and-stuffs\/\",\"Pygame Platform 4 - Background & organizing code\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-platform-game-5-sounds-and-mixer\/\",\"Pygame Platform 5 - Sounds\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/platform-game-in-detail-part-1\/\",\"Game in detail part 1\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/map-maker-1-2\/\", \"Map maker 1.2\"]\r\n\t\t];\r\n\t\t<\/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>\r\n\r\n<h3>Other Pygame's posts<\/h3>\r\n\r\n<script>\r\nvar title = \"Pygame's Posts\"\r\nvar links = [\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-platformer-1\/\",\"Platform game 1\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/make-a-platform-game-with-pygame-dafluffypotato\/\",\"DaFluffyPotato Platform Tutorials\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/python-and-classic-arcade-games-pong\/\",\"Pong Game Full\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/python-draws-in-colors-app-to-draw-with-pygame\/\",\"PyGameGIF 2\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-draw-app-with-animation\/\",\"PyGameGIF 1\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pydraw-2-0-app-to-draw-gif\/\",\"PyDraw 2.0\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-drawing-2\/\",\"Draw with Pygame\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/animation-with-pygame\",\"Sprite animation 1\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/animation-on-pygame-2-free-characters-and-more-actions\/\",\"Sprite animation 2\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/starting-with-pygame\/\",\"Starting movements with Pygame\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-3-move-sprite\/\", \"Move a Sprite\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-4-fonts\/\",\"Text and Fonts\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-animate-a-sprite\/\", \"Animate a sprite\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pygame-and-mouse-events\/\",\"Mouse events\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pgp-aka-pygamepresentation-project\/\",\"Pygame presentation\"],\r\n\t[\"https:\/\/pythonprogramming.altervista.org\/moving-the-player-in-pygame-with-key-get_pressed\/\",\"How to use key.get_pressed()\"]\r\n]\r\n<\/script>\r\n\r\n\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":"Map editor update 1.1\n<a class=\"moretag\" href=\"https:\/\/pythonprogramming.altervista.org\/pygame-map-editor-update-1-1\/\"> [...]<\/a>","protected":false},"author":1,"featured_media":4722,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[191],"tags":[681,194],"class_list":["post-4709","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pygame","tag-map-editor","tag-pygame"],"avopt_banners_inside_post":true,"avopt_banners_on_page":true,"av_copy_from":"","av_sharing_message":"","av_sharing_allowed":true,"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\/4709","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=4709"}],"version-history":[{"count":7,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/posts\/4709\/revisions"}],"predecessor-version":[{"id":7315,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/posts\/4709\/revisions\/7315"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/media\/4722"}],"wp:attachment":[{"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/media?parent=4709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/categories?post=4709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/tags?post=4709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}