{"id":16387,"date":"2024-01-24T12:07:17","date_gmt":"2024-01-24T08:37:17","guid":{"rendered":"https:\/\/rasanegar.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-pygame-%da%86%da%af%d9%88%d9%86%d9%87-%db%8c%da%a9-%d8%a8%d8%a7%d8%b2%db%8c-%d8%aa%d9%88%d9%be-%d9%be%d8%b1%d9%86%d8%af%d9%87-%d8%a8%d8%b3%d8%a7%d8%b2%db%8c\/"},"modified":"2024-01-24T12:07:17","modified_gmt":"2024-01-24T08:37:17","slug":"%d8%a2%d9%85%d9%88%d8%b2%d8%b4-pygame-%da%86%da%af%d9%88%d9%86%d9%87-%db%8c%da%a9-%d8%a8%d8%a7%d8%b2%db%8c-%d8%aa%d9%88%d9%be-%d9%be%d8%b1%d9%86%d8%af%d9%87-%d8%a8%d8%b3%d8%a7%d8%b2%db%8c","status":"publish","type":"post","link":"https:\/\/rasanegaar.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-pygame-%da%86%da%af%d9%88%d9%86%d9%87-%db%8c%da%a9-%d8%a8%d8%a7%d8%b2%db%8c-%d8%aa%d9%88%d9%be-%d9%be%d8%b1%d9%86%d8%af%d9%87-%d8%a8%d8%b3%d8%a7%d8%b2%db%8c\/","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 PyGame \u2013 \u0686\u06af\u0648\u0646\u0647 \u06cc\u06a9 \u0628\u0627\u0632\u06cc \u062a\u0648\u067e \u067e\u0631\u0646\u062f\u0647 \u0628\u0633\u0627\u0632\u06cc\u0645"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0633\u0631\u0641\u0635\u0644\u0647\u0627\u06cc \u0645\u0637\u0644\u0628<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-pygame-%da%86%da%af%d9%88%d9%86%d9%87-%db%8c%da%a9-%d8%a8%d8%a7%d8%b2%db%8c-%d8%aa%d9%88%d9%be-%d9%be%d8%b1%d9%86%d8%af%d9%87-%d8%a8%d8%b3%d8%a7%d8%b2%db%8c\/#%d9%81%d9%87%d8%b1%d8%b3%d8%aa_%d9%85%d8%b7%d8%a7%d9%84%d8%a8\" >\u0641\u0647\u0631\u0633\u062a \u0645\u0637\u0627\u0644\u0628<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-pygame-%da%86%da%af%d9%88%d9%86%d9%87-%db%8c%da%a9-%d8%a8%d8%a7%d8%b2%db%8c-%d8%aa%d9%88%d9%be-%d9%be%d8%b1%d9%86%d8%af%d9%87-%d8%a8%d8%b3%d8%a7%d8%b2%db%8c\/#%d8%b1%d9%88%d8%b4_%d8%aa%d9%86%d8%b8%db%8c%d9%85_%d9%85%d8%ad%db%8c%d8%b7_%d8%aa%d9%88%d8%b3%d8%b9%d9%87\" >\u0631\u0648\u0634 \u062a\u0646\u0638\u06cc\u0645 \u0645\u062d\u06cc\u0637 \u062a\u0648\u0633\u0639\u0647<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-pygame-%da%86%da%af%d9%88%d9%86%d9%87-%db%8c%da%a9-%d8%a8%d8%a7%d8%b2%db%8c-%d8%aa%d9%88%d9%be-%d9%be%d8%b1%d9%86%d8%af%d9%87-%d8%a8%d8%b3%d8%a7%d8%b2%db%8c\/#%d8%a7%d8%a8%d8%b2%d8%a7%d8%b1_%d9%88_%d9%86%d8%b1%d9%85_%d8%a7%d9%81%d8%b2%d8%a7%d8%b1\" >\u0627\u0628\u0632\u0627\u0631 \u0648 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-pygame-%da%86%da%af%d9%88%d9%86%d9%87-%db%8c%da%a9-%d8%a8%d8%a7%d8%b2%db%8c-%d8%aa%d9%88%d9%be-%d9%be%d8%b1%d9%86%d8%af%d9%87-%d8%a8%d8%b3%d8%a7%d8%b2%db%8c\/#%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%d9%85%d9%81%d9%87%d9%88%d9%85_%d8%a8%d8%a7%d8%b2%db%8c\" >\u062a\u0639\u0631\u06cc\u0641 \u0645\u0641\u0647\u0648\u0645 \u0628\u0627\u0632\u06cc<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-pygame-%da%86%da%af%d9%88%d9%86%d9%87-%db%8c%da%a9-%d8%a8%d8%a7%d8%b2%db%8c-%d8%aa%d9%88%d9%be-%d9%be%d8%b1%d9%86%d8%af%d9%87-%d8%a8%d8%b3%d8%a7%d8%b2%db%8c\/#%d9%85%d9%81%d9%87%d9%88%d9%85_%d9%88_%d9%85%da%a9%d8%a7%d9%86%db%8c%da%a9_%d8%a8%d8%a7%d8%b2%db%8c\" >\u0645\u0641\u0647\u0648\u0645 \u0648 \u0645\u06a9\u0627\u0646\u06cc\u06a9 \u0628\u0627\u0632\u06cc<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-pygame-%da%86%da%af%d9%88%d9%86%d9%87-%db%8c%da%a9-%d8%a8%d8%a7%d8%b2%db%8c-%d8%aa%d9%88%d9%be-%d9%be%d8%b1%d9%86%d8%af%d9%87-%d8%a8%d8%b3%d8%a7%d8%b2%db%8c\/#%d8%b1%d9%88%d8%b4_%da%a9%d8%af%d9%86%d9%88%db%8c%d8%b3%db%8c_%d8%a8%d8%a7%d8%b2%db%8c\" >\u0631\u0648\u0634 \u06a9\u062f\u0646\u0648\u06cc\u0633\u06cc \u0628\u0627\u0632\u06cc<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-pygame-%da%86%da%af%d9%88%d9%86%d9%87-%db%8c%da%a9-%d8%a8%d8%a7%d8%b2%db%8c-%d8%aa%d9%88%d9%be-%d9%be%d8%b1%d9%86%d8%af%d9%87-%d8%a8%d8%b3%d8%a7%d8%b2%db%8c\/#%d9%85%d9%82%d8%af%d8%a7%d8%b1%d8%af%d9%87%db%8c_%d8%a7%d9%88%d9%84%db%8c%d9%87_%d8%a8%d8%b1%d9%86%d8%a7%d9%85%d9%87\" >\u0645\u0642\u062f\u0627\u0631\u062f\u0647\u06cc \u0627\u0648\u0644\u06cc\u0647 \u0628\u0631\u0646\u0627\u0645\u0647<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-pygame-%da%86%da%af%d9%88%d9%86%d9%87-%db%8c%da%a9-%d8%a8%d8%a7%d8%b2%db%8c-%d8%aa%d9%88%d9%be-%d9%be%d8%b1%d9%86%d8%af%d9%87-%d8%a8%d8%b3%d8%a7%d8%b2%db%8c\/#%da%86%da%af%d9%88%d9%86%d9%87_%db%8c%da%a9_%d9%86%d9%85%d9%88%d9%86%d9%87_pygame_%d8%a7%db%8c%d8%ac%d8%a7%d8%af_%da%a9%d9%86%db%8c%d9%85\" >\u0686\u06af\u0648\u0646\u0647 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 PyGame \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-pygame-%da%86%da%af%d9%88%d9%86%d9%87-%db%8c%da%a9-%d8%a8%d8%a7%d8%b2%db%8c-%d8%aa%d9%88%d9%be-%d9%be%d8%b1%d9%86%d8%af%d9%87-%d8%a8%d8%b3%d8%a7%d8%b2%db%8c\/#%d8%b1%d9%88%d8%b4_%d8%a7%db%8c%d8%ac%d8%a7%d8%af_%d8%b5%d9%81%d8%ad%d9%87_%d9%86%d9%85%d8%a7%db%8c%d8%b4_%d8%a8%d8%a7%d8%b2%db%8c\" >\u0631\u0648\u0634 \u0627\u06cc\u062c\u0627\u062f \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0628\u0627\u0632\u06cc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-pygame-%da%86%da%af%d9%88%d9%86%d9%87-%db%8c%da%a9-%d8%a8%d8%a7%d8%b2%db%8c-%d8%aa%d9%88%d9%be-%d9%be%d8%b1%d9%86%d8%af%d9%87-%d8%a8%d8%b3%d8%a7%d8%b2%db%8c\/#%d8%ad%d9%84%d9%82%d9%87_%d8%a8%d8%a7%d8%b2%db%8c_%d8%a7%d8%b5%d9%84%db%8c\" >\u062d\u0644\u0642\u0647 \u0628\u0627\u0632\u06cc \u0627\u0635\u0644\u06cc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-pygame-%da%86%da%af%d9%88%d9%86%d9%87-%db%8c%da%a9-%d8%a8%d8%a7%d8%b2%db%8c-%d8%aa%d9%88%d9%be-%d9%be%d8%b1%d9%86%d8%af%d9%87-%d8%a8%d8%b3%d8%a7%d8%b2%db%8c\/#%d9%86%d8%aa%db%8c%d8%ac%d9%87\" >\u0646\u062a\u06cc\u062c\u0647<\/a><\/li><\/ul><\/nav><\/div>\n<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 10<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span><p> <br \/>\n<\/p>\n<section class=\"post-content \" data-test-label=\"post-content\">\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u06cc\u0627\u062f \u062e\u0648\u0627\u0647\u06cc\u062f \u06af\u0631\u0641\u062a \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 PyGame \u06cc\u06a9 \u0628\u0627\u0632\u06cc \u062a\u0648\u067e \u067e\u0631\u0634 \u0633\u0627\u062f\u0647 \u0648 \u062f\u0631 \u0639\u06cc\u0646 \u062d\u0627\u0644 \u062e\u0646\u062f\u0647 \u062f\u0627\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. <\/p>\n<p>\u0686\u0647 \u0645\u0628\u062a\u062f\u06cc \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u062f\u0631\u06a9 \u0627\u0635\u0648\u0644 \u062a\u0648\u0633\u0639\u0647 \u0628\u0627\u0632\u06cc \u0647\u0633\u062a\u06cc\u062f \u06cc\u0627 \u06cc\u06a9 \u0645\u0634\u062a\u0627\u0642 \u0628\u0647 \u06a9\u0634\u0641 \u0642\u0627\u0628\u0644\u06cc\u062a \u0647\u0627\u06cc PyGame\u060c \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0634\u0645\u0627 \u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a \u06cc\u06a9 \u0628\u0627\u0632\u06cc \u0633\u0627\u062f\u0647 \u0648 \u062f\u0631 \u0639\u06cc\u0646 \u062d\u0627\u0644 \u062c\u0630\u0627\u0628 \u0627\u0633\u062a. <\/p>\n<p>\u0634\u0645\u0627 \u0641\u0642\u0637 \u0628\u0627\u06cc\u062f \u0645\u0631\u0627\u062d\u0644 \u0631\u0627 \u0628\u0634\u06a9\u0646\u06cc\u062f\u060c \u06a9\u062f \u0631\u0627 \u0628\u062e\u0648\u0627\u0646\u06cc\u062f \u0648 \u0627\u0632 \u0633\u0648\u0627\u0631\u06cc \u0644\u0630\u062a \u0628\u0628\u0631\u06cc\u062f!<\/p>\n<p>\u062f\u0631 \u067e\u0627\u06cc\u0627\u0646 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u0628\u0627\u0632\u06cc \u0634\u0645\u0627 \u0628\u0627\u06cc\u062f \u0628\u0647 \u0634\u06a9\u0644 \u0632\u06cc\u0631 \u0628\u0627\u0634\u062f:<\/p>\n<figure class=\"kg-card kg-image-card kg-width-wide\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/bouncing_game.png\" class=\"kg-image\" alt=\"\u067e\u0631\u0634_\u0628\u0627\u0632\u06cc\" width=\"792\" height=\"632\" loading=\"lazy\" title=\"\"><\/figure>\n<h2 id=\"table-of-contents\"><span class=\"ez-toc-section\" id=\"%d9%81%d9%87%d8%b1%d8%b3%d8%aa_%d9%85%d8%b7%d8%a7%d9%84%d8%a8\"><\/span>\u0641\u0647\u0631\u0633\u062a \u0645\u0637\u0627\u0644\u0628<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>\u0631\u0648\u0634 \u062a\u0646\u0638\u06cc\u0645 \u0645\u062d\u06cc\u0637 \u062a\u0648\u0633\u0639\u0647<\/li>\n<li>\u062a\u0639\u0631\u06cc\u0641 \u0645\u0641\u0647\u0648\u0645 \u0628\u0627\u0632\u06cc<\/li>\n<li>\u0645\u0642\u062f\u0627\u0631\u062f\u0647\u06cc \u0627\u0648\u0644\u06cc\u0647 \u0628\u0631\u0646\u0627\u0645\u0647<\/li>\n<li>\u0686\u06af\u0648\u0646\u0647 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 PyGame \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645<\/li>\n<li>\u0631\u0648\u0634 \u0627\u06cc\u062c\u0627\u062f \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0628\u0627\u0632\u06cc<\/li>\n<li>\u062d\u0644\u0642\u0647 \u0627\u0635\u0644\u06cc \u0628\u0627\u0632\u06cc<\/li>\n<li>\u0646\u062a\u06cc\u062c\u0647<\/li>\n<\/ol>\n<h2 id=\"how-to-set-up-the-development-environment\"><span class=\"ez-toc-section\" id=\"%d8%b1%d9%88%d8%b4_%d8%aa%d9%86%d8%b8%db%8c%d9%85_%d9%85%d8%ad%db%8c%d8%b7_%d8%aa%d9%88%d8%b3%d8%b9%d9%87\"><\/span>\u0631\u0648\u0634 \u062a\u0646\u0638\u06cc\u0645 \u0645\u062d\u06cc\u0637 \u062a\u0648\u0633\u0639\u0647<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3 id=\"tools-and-software\"><span class=\"ez-toc-section\" id=\"%d8%a7%d8%a8%d8%b2%d8%a7%d8%b1_%d9%88_%d9%86%d8%b1%d9%85_%d8%a7%d9%81%d8%b2%d8%a7%d8%b1\"><\/span>\u0627\u0628\u0632\u0627\u0631 \u0648 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0642\u0628\u0644 \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0648\u0627\u0631\u062f \u0645\u0627\u062c\u0631\u0627\u062c\u0648\u06cc\u06cc \u06a9\u062f\u0646\u0648\u06cc\u0633\u06cc \u0634\u0648\u06cc\u062f\u060c \u0628\u06cc\u0627\u06cc\u06cc\u062f \u062f\u0631 \u0645\u0648\u0631\u062f \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc\u06cc \u0635\u062d\u0628\u062a \u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u062e\u0644\u0627\u0642\u06cc\u062a \u0634\u0645\u0627 \u0631\u0627 \u062a\u0642\u0648\u06cc\u062a \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<h4 id=\"python\">\u067e\u0627\u06cc\u062a\u0648\u0646<\/h4>\n<p>\u0634\u0645\u0627 \u0627\u0632 Python\u060c \u06cc\u06a9 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u0647\u0645\u0647 \u06a9\u0627\u0631\u0647 \u0648 \u0645\u0628\u062a\u062f\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f.  \u0646\u062d\u0648 \u062a\u0645\u06cc\u0632 \u0648 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u06af\u0633\u062a\u0631\u062f\u0647 \u0627\u0632 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0622\u0646 \u0631\u0627 \u0628\u0647 \u06cc\u06a9 \u0627\u0646\u062a\u062e\u0627\u0628 \u0639\u0627\u0644\u06cc \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u0628\u0627\u0632\u06cc \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u062f\u0647 \u0627\u0633\u062a. <\/p>\n<p>\u0627\u06af\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0631\u0627 \u0646\u0635\u0628 \u0646\u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f\u060c \u0628\u0647 \u0627\u062f\u0627\u0645\u0647 \u0645\u0637\u0644\u0628 \u0628\u0631\u0648\u06cc\u062f python.org \u0628\u0631\u0627\u06cc \u062f\u0627\u0646\u0644\u0648\u062f \u0648 \u0646\u0635\u0628 \u0622\u062e\u0631\u06cc\u0646 \u0646\u0633\u062e\u0647.<\/p>\n<h4 id=\"pygame\">PyGame<\/h4>\n<p>\u0633\u0644\u0627\u062d \u0645\u062e\u0641\u06cc \u0634\u0645\u0627 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647  PyGame\u060c \u0645\u062c\u0645\u0648\u0639\u0647 \u0627\u06cc \u0627\u0632 \u0645\u0627\u0698\u0648\u0644 \u0647\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646\u060c \u062a\u0648\u0633\u0639\u0647 \u0628\u0627\u0632\u06cc \u0631\u0627 \u0628\u0627 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0639\u0646\u0627\u0635\u0631 \u0686\u0646\u062f \u0631\u0633\u0627\u0646\u0647 \u0627\u06cc \u0645\u0627\u0646\u0646\u062f \u062a\u0635\u0627\u0648\u06cc\u0631 \u0648 \u0635\u062f\u0627\u0647\u0627 \u0633\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f.  \u0627\u06cc\u0646 \u0645\u0648\u062a\u0648\u0631\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u0628\u0627\u0632\u06cc \u0634\u0645\u0627 \u0646\u06cc\u0631\u0648 \u0645\u06cc \u062f\u0647\u062f. <\/p>\n<p>\u0628\u0631\u0627\u06cc \u0646\u0635\u0628 PyGame \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u062f\u0631 \u062e\u0648\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f terminal \u06cc\u0627 \u062e\u0637 \u0641\u0631\u0645\u0627\u0646:<\/p>\n<pre><code class=\"language-bash\">pip install pygame\n<\/code><\/pre>\n<h4 id=\"text-editor\">\u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0645\u062a\u0646<\/h4>\n<p>\u062e\u0648\u0627\u0647 VSCode\u060c PyCharm \u06cc\u0627 Thonny \u0628\u0627\u0634\u062f\u060c \u0627\u06cc\u0646 \u0645\u062d\u06cc\u0637 \u0647\u0627 \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f \u0628\u0631\u062c\u0633\u062a\u0647 \u0633\u0627\u0632\u06cc \u0646\u062d\u0648 \u0648 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0627\u0634\u06a9\u0627\u0644 \u0632\u062f\u0627\u06cc\u06cc \u0631\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u0646\u062f.  \u06cc\u06a9\u06cc \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u06cc\u0634\u062a\u0631 \u0628\u0627 \u0622\u0646 \u0631\u0627\u062d\u062a \u0647\u0633\u062a\u06cc\u062f\u060c \u0648 \u0628\u06cc\u0627\u06cc\u06cc\u062f \u0628\u0631\u0627\u06cc \u0646\u0648\u0634\u062a\u0646 \u06a9\u062f \u0622\u0645\u0627\u062f\u0647 \u0634\u0648\u06cc\u0645! <\/p>\n<p>\u0645\u0646 \u0627\u0632 VSCode \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u0645 \u06a9\u0631\u062f\u060c \u0627\u0645\u0627 \u0628\u0627 \u062e\u06cc\u0627\u0644 \u0631\u0627\u062d\u062a \u0627\u0632 \u0647\u0631 \u06a9\u062f\u0627\u0645 \u06a9\u0647 \u062f\u0648\u0633\u062a \u062f\u0627\u0631\u06cc\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.  \u0627\u06af\u0631 \u0627\u062d\u0633\u0627\u0633 \u0645\u0627\u062c\u0631\u0627\u062c\u0648\u06cc\u06cc \u0645\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062a\u0648\u0646\u06cc \u0631\u0627 \u0627\u0645\u062a\u062d\u0627\u0646 \u06a9\u0646\u06cc\u062f!<\/p>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u06a9\u0647 \u0628\u0647 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u0646\u0627\u0633\u0628 \u0645\u062c\u0647\u0632 \u0634\u062f\u0647 \u0627\u06cc\u062f\u060c \u0628\u06cc\u0627\u06cc\u06cc\u062f \u0648\u0627\u0631\u062f \u06a9\u062f \u0634\u0648\u06cc\u0645 \u0648 \u0628\u0627\u0632\u06cc \u062e\u0648\u062f \u0631\u0627 \u0632\u0646\u062f\u0647 \u06a9\u0646\u06cc\u0645.<\/p>\n<figure class=\"kg-card kg-image-card kg-width-wide kg-card-hascaption\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/screenshot-1.png\" class=\"kg-image\" alt=\"\u0627\u0633\u06a9\u0631\u06cc\u0646 \u0634\u0627\u062a-1\" width=\"637\" height=\"525\" loading=\"lazy\" title=\"\"><figcaption>\u0627\u06cc\u0646 \u062a\u0648\u0646\u06cc \u0627\u0633\u062a<\/figcaption><\/figure>\n<h2 id=\"defining-the-game-concept\"><span class=\"ez-toc-section\" id=\"%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%d9%85%d9%81%d9%87%d9%88%d9%85_%d8%a8%d8%a7%d8%b2%db%8c\"><\/span>\u062a\u0639\u0631\u06cc\u0641 \u0645\u0641\u0647\u0648\u0645 \u0628\u0627\u0632\u06cc<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3 id=\"game-concept-and-mechanics\"><span class=\"ez-toc-section\" id=\"%d9%85%d9%81%d9%87%d9%88%d9%85_%d9%88_%d9%85%da%a9%d8%a7%d9%86%db%8c%da%a9_%d8%a8%d8%a7%d8%b2%db%8c\"><\/span>\u0645\u0641\u0647\u0648\u0645 \u0648 \u0645\u06a9\u0627\u0646\u06cc\u06a9 \u0628\u0627\u0632\u06cc<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u0645\u0641\u0627\u0647\u06cc\u0645 \u0627\u0635\u0644\u06cc \u0648 \u0645\u06a9\u0627\u0646\u06cc\u06a9 \u0647\u0627\u06cc\u06cc \u0631\u0627 \u06a9\u0647 \u062f\u0631 \u062d\u0627\u0644 \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0648\u062f\u060c \u062a\u062c\u0632\u06cc\u0647 \u06a9\u0646\u06cc\u0645.<\/p>\n<p><strong>\u06a9\u0646\u062a\u0631\u0644 \u067e\u0644\u062a \u0641\u0631\u0645:<\/strong><\/p>\n<ul>\n<li>\u0647\u062f\u0641: \u0627\u0632 \u06a9\u0644\u06cc\u062f\u0647\u0627\u06cc \u062c\u0647\u062a \u062f\u0627\u0631 \u0628\u0631\u0627\u06cc \u062d\u0631\u06a9\u062a \u062f\u0627\u062f\u0646 \u067e\u0644\u062a \u0641\u0631\u0645 \u0628\u0647 \u0686\u067e \u06cc\u0627 \u0631\u0627\u0633\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/li>\n<li>\u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc: \u067e\u0644\u062a \u0641\u0631\u0645 \u0634\u0645\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0627\u0641\u0642\u06cc \u062d\u0631\u06a9\u062a \u0645\u06cc \u06a9\u0646\u062f \u0631\u0648\u06cc \u0648\u0631\u0648\u062f\u06cc \u06a9\u0644\u06cc\u062f<\/li>\n<li>\u0645\u062d\u062f\u0648\u062f\u06cc\u062a \u0647\u0627: \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u067e\u0644\u062a \u0641\u0631\u0645 \u062f\u0631 \u0645\u062d\u062f\u0648\u062f\u0647 \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0628\u0627\u0642\u06cc \u0645\u06cc \u0645\u0627\u0646\u062f.<\/li>\n<\/ul>\n<p><strong>\u062f\u06cc\u0646\u0627\u0645\u06cc\u06a9 \u062a\u0648\u067e \u067e\u0631\u0634:<\/strong><\/p>\n<ul>\n<li>\u0647\u062f\u0641: \u0647\u062f\u0627\u06cc\u062a \u062a\u0648\u067e \u067e\u0631\u0634 \u062f\u0631 \u0633\u0631\u0627\u0633\u0631 \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634.<\/li>\n<li>\u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc: \u062a\u0648\u067e \u0628\u0647 \u0637\u0648\u0631 \u0645\u0633\u062a\u0642\u0644 \u062d\u0631\u06a9\u062a \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0627\u0632 \u062f\u06cc\u0648\u0627\u0631\u0647\u0627 \u0648 \u0633\u06a9\u0648 \u0645\u06cc \u067e\u0631\u062f.<\/li>\n<li>\u062a\u0639\u0627\u0645\u0644: \u0647\u0631 \u0628\u0627\u0631 \u06a9\u0647 \u062a\u0648\u067e \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u0632 \u0631\u0648\u06cc \u0633\u06a9\u0648 \u067e\u0631\u06cc\u062f \u0627\u0645\u062a\u06cc\u0627\u0632 \u0628\u06af\u06cc\u0631\u06cc\u062f.<\/li>\n<\/ul>\n<p><strong>\u0633\u06cc\u0633\u062a\u0645 \u0627\u0645\u062a\u06cc\u0627\u0632\u062f\u0647\u06cc:<\/strong><\/p>\n<ul>\n<li>\u0647\u062f\u0641: \u062c\u0645\u0639 \u0622\u0648\u0631\u06cc \u0627\u0645\u062a\u06cc\u0627\u0632 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0631\u0648\u06cc \u067e\u0631\u0634 \u0647\u0627\u06cc \u0645\u0648\u0641\u0642<\/li>\n<li>\u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc: \u06a9\u062f\u06af\u0630\u0627\u0631\u06cc \u0634\u0645\u0627 \u0633\u06cc\u0633\u062a\u0645 \u0627\u0645\u062a\u06cc\u0627\u0632\u062f\u0647\u06cc \u0631\u0627 \u062a\u0639\u06cc\u06cc\u0646 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li>\u0686\u0627\u0644\u0634: \u0645\u06a9\u0627\u0646\u06cc\u0633\u0645 \u0627\u0645\u062a\u06cc\u0627\u0632\u062f\u0647\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u0646\u0645\u0631\u0627\u062a \u0628\u0627\u0644\u0627\u062a\u0631 \u0628\u0647\u06cc\u0646\u0647 \u06a9\u0646\u06cc\u062f.<\/li>\n<\/ul>\n<p><strong>\u067e\u06cc\u0634\u0631\u0641\u062a \u0633\u0637\u062d:<\/strong><\/p>\n<ul>\n<li>\u0647\u062f\u0641: \u0628\u0627 \u0631\u0633\u06cc\u062f\u0646 \u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0646\u0642\u0627\u0637 \u0639\u0637\u0641\u060c \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0633\u0637\u0648\u062d \u067e\u06cc\u0634\u0631\u0641\u062a \u06a9\u0646\u06cc\u062f.<\/li>\n<li>\u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc: \u0628\u0627 \u0647\u0631 10 \u0627\u0645\u062a\u06cc\u0627\u0632\u060c \u0628\u0647 \u0633\u0637\u062d \u062c\u062f\u06cc\u062f\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a \u0645\u06cc \u06a9\u0646\u06cc\u062f.<\/li>\n<li>\u0686\u0627\u0644\u0634: \u0627\u0646\u062a\u0638\u0627\u0631 \u0627\u0641\u0632\u0627\u06cc\u0634 \u0633\u062e\u062a\u06cc \u0648 \u067e\u06cc\u0686\u06cc\u062f\u06af\u06cc \u062f\u0631 \u0647\u0631 \u0633\u0637\u062d \u0631\u0627 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f.<\/li>\n<\/ul>\n<p><strong>\u0631\u0646\u06af \u067e\u0644\u062a \u0641\u0631\u0645 \u067e\u0648\u06cc\u0627:<\/strong><\/p>\n<ul>\n<li>\u0647\u062f\u0641: \u0631\u0646\u06af \u067e\u0644\u062a \u0641\u0631\u0645 \u0628\u0627 \u0647\u0631 \u0633\u0637\u062d \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u067e\u0648\u06cc\u0627\u06cc\u06cc \u0628\u0635\u0631\u06cc \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li>\u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc: \u0631\u0646\u06af \u0647\u0627 \u0628\u0627 \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u06cc\u06a9 \u0633\u0637\u062d \u062c\u062f\u06cc\u062f \u0628\u0647 \u0637\u0648\u0631 \u062a\u0635\u0627\u062f\u0641\u06cc \u062a\u0648\u0644\u06cc\u062f \u0645\u06cc \u0634\u0648\u0646\u062f.<\/li>\n<li>\u0644\u0645\u0633 \u0632\u06cc\u0628\u0627\u06cc\u06cc: \u062a\u0646\u0648\u0639 \u0648 \u0647\u06cc\u062c\u0627\u0646 \u0631\u0627 \u0628\u0647 \u062a\u062c\u0631\u0628\u0647 \u0628\u0627\u0632\u06cc \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<\/ul>\n<p><strong>\u0632\u0646\u062f\u06af\u06cc \u0648 \u067e\u0627\u06cc\u0627\u0646 \u0628\u0627\u0632\u06cc:<\/strong><\/p>\n<ul>\n<li>\u0647\u062f\u0641: \u0627\u0632 \u0627\u0641\u062a\u0627\u062f\u0646 \u062a\u0648\u067e \u0627\u0632 \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0628\u0631\u0627\u06cc \u062d\u0641\u0638 \u0632\u0646\u062f\u06af\u06cc \u062e\u0648\u062f\u062f\u0627\u0631\u06cc \u06a9\u0646\u06cc\u062f.<\/li>\n<li>\u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc: \u0632\u0646\u062f\u06af\u06cc \u0628\u0627 \u067e\u0631\u0634 \u0647\u0627\u06cc \u0627\u0632 \u062f\u0633\u062a \u0631\u0641\u062a\u0647 \u06a9\u0627\u0647\u0634 \u0645\u06cc \u06cc\u0627\u0628\u062f.  \u0628\u0627\u0632\u06cc \u0632\u0645\u0627\u0646\u06cc \u0631\u062e \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0632\u0646\u062f\u06af\u06cc \u0647\u0627 \u062a\u0645\u0627\u0645 \u0645\u06cc \u0634\u0648\u062f (\u0634\u0645\u0627 \u0641\u0642\u0637 3 \u0632\u0646\u062f\u06af\u06cc \u062f\u0627\u0631\u06cc\u062f).<\/li>\n<li>\u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u062c\u062f\u062f: \u067e\u0633 \u0627\u0632 \u067e\u0627\u06cc\u0627\u0646 \u0628\u0627\u0632\u06cc\u060c \u0628\u0627 \u0633\u0647 \u0632\u0646\u062f\u06af\u06cc \u0648 \u06cc\u06a9 \u0627\u0645\u062a\u06cc\u0627\u0632 \u062a\u0627\u0632\u0647 \u0634\u0631\u0648\u0639 \u0645\u062c\u062f\u062f \u06a9\u0646\u06cc\u062f.<\/li>\n<\/ul>\n<h2 id=\"how-to-code-the-game\"><span class=\"ez-toc-section\" id=\"%d8%b1%d9%88%d8%b4_%da%a9%d8%af%d9%86%d9%88%db%8c%d8%b3%db%8c_%d8%a8%d8%a7%d8%b2%db%8c\"><\/span>\u0631\u0648\u0634 \u06a9\u062f\u0646\u0648\u06cc\u0633\u06cc \u0628\u0627\u0632\u06cc<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3 id=\"app-initialization\"><span class=\"ez-toc-section\" id=\"%d9%85%d9%82%d8%af%d8%a7%d8%b1%d8%af%d9%87%db%8c_%d8%a7%d9%88%d9%84%db%8c%d9%87_%d8%a8%d8%b1%d9%86%d8%a7%d9%85%d9%87\"><\/span>\u0645\u0642\u062f\u0627\u0631\u062f\u0647\u06cc \u0627\u0648\u0644\u06cc\u0647 \u0628\u0631\u0646\u0627\u0645\u0647<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0628\u062e\u0634\u060c \u062b\u0627\u0628\u062a \u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f \u0627\u0628\u0639\u0627\u062f \u0635\u0641\u062d\u0647\u060c \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u062a\u0648\u067e \u0648 \u067e\u0644\u062a \u0641\u0631\u0645 \u0648 \u0631\u0646\u06af \u0647\u0627 \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0647\u0645\u0686\u0646\u06cc\u0646 PyGame \u0631\u0627 \u0645\u0642\u062f\u0627\u0631\u062f\u0647\u06cc \u0627\u0648\u0644\u06cc\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f\u060c \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f \u0648 \u06cc\u06a9 \u0634\u06cc \u0633\u0627\u0639\u062a \u0628\u0631\u0627\u06cc \u06a9\u0646\u062a\u0631\u0644 \u0646\u0631\u062e \u0641\u0631\u06cc\u0645 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0633\u067e\u0633 \u0645\u062a\u063a\u06cc\u0631\u0647\u0627\u06cc\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u0628\u0627\u0632\u06cc\u060c \u0627\u0632 \u062c\u0645\u0644\u0647 \u0645\u0648\u0642\u0639\u06cc\u062a \u062a\u0648\u067e\u060c \u0633\u0631\u0639\u062a\u060c \u0645\u0648\u0642\u0639\u06cc\u062a \u0633\u06a9\u0648\u060c \u0633\u0631\u0639\u062a\u060c \u0627\u0645\u062a\u06cc\u0627\u0632\u060c \u0632\u0646\u062f\u06af\u06cc\u200c\u0647\u0627 \u0648 \u0633\u0637\u062d \u0641\u0639\u0644\u06cc \u0645\u0642\u062f\u0627\u0631\u062f\u0647\u06cc \u0627\u0648\u0644\u06cc\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0627\u06cc\u0646 \u06a9\u062f \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u0647\u0645\u0647 \u0627\u06cc\u0646 \u06a9\u0627\u0631\u0647\u0627 \u0627\u0633\u062a:<\/p>\n<pre><code class=\"language-python\">import pygame\nimport sys\nimport random\n\n# Constants\nWIDTH, HEIGHT = 800, 600\nBALL_RADIUS = 20\nPLATFORM_WIDTH, PLATFORM_HEIGHT = 100, 10\nFPS = 60\nBLACK = (0, 0, 0)\nWHITE = (255, 255, 255)\nRED = (255, 0, 0)\nYELLOW = (255, 255, 0)\nORANGE = (255, 165, 0)\nLIGHT_BLUE = (173, 216, 230)  # Light blue color for the level indicator<\/code><\/pre>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u06af\u0627\u0645 \u0628\u0647 \u06af\u0627\u0645 \u06a9\u062f \u0631\u0627 \u062a\u062c\u0632\u06cc\u0647 \u06a9\u0646\u06cc\u0645:<\/p>\n<p><strong>\u0648\u0627\u0631\u062f\u0627\u062a \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0647\u0627:<\/strong><\/p>\n<ul>\n<li><code>import pygame<\/code>: \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 Pygame \u0631\u0627 \u0648\u0627\u0631\u062f \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u0628\u0627\u0632\u06cc \u0647\u0627 \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.<\/li>\n<li><code>import sys<\/code>: \u0645\u0627\u0698\u0648\u0644 sys \u0631\u0627 \u0648\u0627\u0631\u062f \u0645\u06cc \u06a9\u0646\u062f \u0648 \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0628\u0631\u062e\u06cc \u0627\u0632 \u0645\u062a\u063a\u06cc\u0631\u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06cc\u0627 \u0646\u06af\u0647\u062f\u0627\u0631\u06cc \u0634\u062f\u0647 \u062a\u0648\u0633\u0637 \u0645\u0641\u0633\u0631 \u0648 \u062a\u0648\u0627\u0628\u0639\u06cc \u06a9\u0647 \u0628\u0627 \u0645\u0641\u0633\u0631 \u062a\u0639\u0627\u0645\u0644 \u062f\u0627\u0631\u0646\u062f \u0631\u0627 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<\/ul>\n<p><strong>\u062b\u0627\u0628\u062a \u0647\u0627:<\/strong><\/p>\n<ul>\n<li><code>WIDTH, HEIGHT = 800, 600<\/code>: \u0627\u0628\u0639\u0627\u062f \u067e\u0646\u062c\u0631\u0647 \u0628\u0627\u0632\u06cc \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li><code>BALL_RADIUS = 20<\/code>: \u0634\u0639\u0627\u0639 \u062a\u0648\u067e \u067e\u0631\u0634 \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li><code>PLATFORM_WIDTH, PLATFORM_HEIGHT = 100, 10<\/code>: \u0627\u0628\u0639\u0627\u062f \u0633\u06a9\u0648 \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li><code>FPS = 60<\/code>: \u0641\u0631\u06cc\u0645 \u062f\u0631 \u062b\u0627\u0646\u06cc\u0647 \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0633\u0631\u0639\u062a \u0628\u0627\u0632\u06cc \u0631\u0627 \u06a9\u0646\u062a\u0631\u0644 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li>\u062b\u0627\u0628\u062a \u0631\u0646\u06af \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0645\u0627\u0646\u0646\u062f <code>BLACK<\/code>\u060c <code>WHITE<\/code>\u060c <code>RED<\/code>\u060c <code>YELLOW<\/code>\u060c <code>ORANGE<\/code>\u060c \u0648 <code>LIGHT_BLUE<\/code> \u0646\u0634\u0627\u0646 \u062f\u0647\u0646\u062f\u0647 \u0645\u0642\u0627\u062f\u06cc\u0631 RGB \u0628\u0631\u0627\u06cc \u0631\u0646\u06af \u0647\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u062f\u0631 \u0628\u0627\u0632\u06cc \u0627\u0633\u062a.<\/li>\n<\/ul>\n<h2 id=\"how-to-create-a-pygame-instance\"><span class=\"ez-toc-section\" id=\"%da%86%da%af%d9%88%d9%86%d9%87_%db%8c%da%a9_%d9%86%d9%85%d9%88%d9%86%d9%87_pygame_%d8%a7%db%8c%d8%ac%d8%a7%d8%af_%da%a9%d9%86%db%8c%d9%85\"><\/span>\u0686\u06af\u0648\u0646\u0647 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 PyGame \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u067e\u0646\u062c\u0631\u0647 PyGame \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u0648 \u0686\u0646\u062f \u0645\u062a\u063a\u06cc\u0631 \u062c\u0647\u0627\u0646\u06cc \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0647\u0631 \u0633\u0637\u062d \u0627\u0632 \u0628\u0627\u0632\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f:<\/p>\n<pre><code class=\"language-python\"># Initialize Pygame\npygame.init()\n\n# Create the screen\nscreen = pygame.display.set_mode((WIDTH, HEIGHT))\npygame.display.set_caption(\"Bouncing Ball Game\")\nfont = pygame.font.Font(None, 36)\n\n# Clock to control the frame rate\nclock = pygame.time.Clock()\n\n# Initialize variables for the game\nball_pos = [WIDTH \/\/ 2, HEIGHT \/\/ 2]\nball_speed = [random.uniform(2, 4), random.uniform(2, 4)]  # Faster starting speed\nplatform_pos = [WIDTH \/\/ 2 - PLATFORM_WIDTH \/\/ 2, HEIGHT - PLATFORM_HEIGHT - 10]\nplatform_speed = 10\nscore = 0\nlives = 3\ncurrent_level = 1\nplatform_color = ORANGE  # Initialize platform color<\/code><\/pre>\n<p><strong>\u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc Pygame:<\/strong><\/p>\n<ul>\n<li><code>pygame.init()<\/code>: \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 Pygame \u0631\u0627 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<\/ul>\n<p><strong>\u067e\u0646\u062c\u0631\u0647 \u0628\u0627\u0632\u06cc \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/strong><\/p>\n<ul>\n<li><code>screen = pygame.display.set_mode((WIDTH, HEIGHT))<\/code>: \u067e\u0646\u062c\u0631\u0647 \u0628\u0627\u0632\u06cc \u0631\u0627 \u0628\u0627 \u0627\u0628\u0639\u0627\u062f \u0645\u0634\u062e\u0635 \u0634\u062f\u0647 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li><code>pygame.display.set_caption(\"Bouncing Ball Game\")<\/code>: \u0639\u0646\u0648\u0627\u0646 \u067e\u0646\u062c\u0631\u0647 \u0628\u0627\u0632\u06cc \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li><code>font = pygame.font.Font(None, 36)<\/code>: \u06cc\u06a9 \u0634\u06cc \u0641\u0648\u0646\u062a \u0631\u0627 \u0628\u0631\u0627\u06cc \u0631\u0646\u062f\u0631 \u06a9\u0631\u062f\u0646 \u0645\u062a\u0646 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<\/ul>\n<p><strong>\u0633\u0627\u0639\u062a \u0628\u0631\u0627\u06cc \u06a9\u0646\u062a\u0631\u0644 \u0646\u0631\u062e \u0641\u0631\u06cc\u0645:<\/strong><\/p>\n<ul>\n<li><code>clock = pygame.time.Clock()<\/code>: \u06cc\u06a9 \u0634\u06cc \u0633\u0627\u0639\u062a \u0628\u0631\u0627\u06cc \u06a9\u0646\u062a\u0631\u0644 \u0646\u0631\u062e \u0641\u0631\u06cc\u0645 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<\/ul>\n<p><strong>\u0645\u0642\u062f\u0627\u0631\u062f\u0647\u06cc \u0627\u0648\u0644\u06cc\u0647 \u0645\u062a\u063a\u06cc\u0631\u0647\u0627\u06cc \u0628\u0627\u0632\u06cc:<\/strong><\/p>\n<ul>\n<li><code>ball_pos = [WIDTH \/\/ 2, HEIGHT \/\/ 2]<\/code>: \u0645\u0648\u0642\u0639\u06cc\u062a \u0634\u0631\u0648\u0639 \u062a\u0648\u067e \u0631\u0627 \u062f\u0631 \u0645\u0631\u06a9\u0632 \u0635\u0641\u062d\u0647 \u0634\u0631\u0648\u0639 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li><code>ball_speed = [random.uniform(2, 4), random.uniform(2, 4)]<\/code>: \u0633\u0631\u0639\u062a \u0634\u0631\u0648\u0639 \u062a\u0648\u067e \u0631\u0627 \u0628\u0627 \u0645\u0642\u0627\u062f\u06cc\u0631 \u062a\u0635\u0627\u062f\u0641\u06cc \u0627\u0648\u0644\u06cc\u0647 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li><code>platform_pos = [WIDTH \/\/ 2 - PLATFORM_WIDTH \/\/ 2, HEIGHT - PLATFORM_HEIGHT - 10]<\/code>: \u0645\u0648\u0642\u0639\u06cc\u062a \u0634\u0631\u0648\u0639 \u067e\u0644\u062a \u0641\u0631\u0645 \u0631\u0627 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li><code>platform_speed = 10<\/code>: \u0633\u0631\u0639\u062a \u062d\u0631\u06a9\u062a \u0633\u06a9\u0648 \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li><code>score = 0<\/code>: \u0627\u0645\u062a\u06cc\u0627\u0632 \u0628\u0627\u0632\u06cc\u06a9\u0646 \u0631\u0627 \u0645\u0642\u062f\u0627\u0631 \u062f\u0647\u06cc \u0627\u0648\u0644\u06cc\u0647 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li><code>lives = 3<\/code>: \u062a\u0639\u062f\u0627\u062f \u0632\u0646\u062f\u06af\u06cc \u0647\u0627\u06cc \u0628\u0627\u0632\u06cc\u06a9\u0646 \u0631\u0627 \u0645\u0642\u062f\u0627\u0631 \u062f\u0647\u06cc \u0627\u0648\u0644\u06cc\u0647 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li><code>current_level = 1<\/code>: \u0633\u0637\u062d \u0641\u0639\u0644\u06cc \u0628\u0627\u0632\u06cc \u0631\u0627 \u0645\u0642\u062f\u0627\u0631 \u062f\u0647\u06cc \u0627\u0648\u0644\u06cc\u0647 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li><code>platform_color = ORANGE<\/code>: \u0631\u0646\u06af \u067e\u0644\u062a \u0641\u0631\u0645 \u0631\u0627 \u0645\u0642\u062f\u0627\u0631 \u062f\u0647\u06cc \u0627\u0648\u0644\u06cc\u0647 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<\/ul>\n<h2 id=\"how-to-create-the-game-screens\"><span class=\"ez-toc-section\" id=\"%d8%b1%d9%88%d8%b4_%d8%a7%db%8c%d8%ac%d8%a7%d8%af_%d8%b5%d9%81%d8%ad%d9%87_%d9%86%d9%85%d8%a7%db%8c%d8%b4_%d8%a8%d8%a7%d8%b2%db%8c\"><\/span>\u0631\u0648\u0634 \u0627\u06cc\u062c\u0627\u062f \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0628\u0627\u0632\u06cc<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0634\u0645\u0627 \u062d\u062f\u0627\u0642\u0644 \u0633\u0647 \u0635\u0641\u062d\u0647 \u0627\u06cc\u062c\u0627\u062f \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f\u060c \u06cc\u06a9\u06cc \u0628\u0631\u0627\u06cc \u0634\u0631\u0648\u0639 \u0628\u0627\u0632\u06cc\u060c \u06cc\u06a9\u06cc \u0628\u0631\u0627\u06cc \u0628\u0631\u0646\u062f\u0647 \u0634\u062f\u0646 \u062f\u0631 \u0628\u0627\u0632\u06cc \u0648 \u062f\u06cc\u06af\u0631\u06cc \u0628\u0631\u0627\u06cc \u0627\u0632 \u062f\u0633\u062a \u062f\u0627\u062f\u0646 \u0628\u0627\u0632\u06cc.  \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u062a\u0645\u0627\u0645 \u0627\u06cc\u0646 \u06a9\u0627\u0631\u0647\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u06a9\u062f \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre><code class=\"language-python\"># Functions for screens\ndef start_screen():\n    screen.fill(BLACK)\n    show_text_on_screen(\"Bouncing Ball Game\", 50, HEIGHT \/\/ 4)\n    show_text_on_screen(\"Press any key to start...\", 30, HEIGHT \/\/ 3)\n    show_text_on_screen(\"Move the platform with arrow keys...\", 30, HEIGHT \/\/ 2)\n    pygame.display.flip()\n    wait_for_key()\n\ndef game_over_screen():\n    screen.fill(BLACK)\n    show_text_on_screen(\"Game Over\", 50, HEIGHT \/\/ 3)\n    show_text_on_screen(f\"Your final score: {score}\", 30, HEIGHT \/\/ 2)\n    show_text_on_screen(\"Press any key to restart...\", 20, HEIGHT * 2 \/\/ 3)\n    pygame.display.flip()\n    wait_for_key()\n\ndef victory_screen():\n    screen.fill(BLACK)\n    show_text_on_screen(\"Congratulations!\", 50, HEIGHT \/\/ 3)\n    show_text_on_screen(f\"You've won with a score of {score}\", 30, HEIGHT \/\/ 2)\n    show_text_on_screen(\"Press any key to exit...\", 20, HEIGHT * 2 \/\/ 3)\n    pygame.display.flip()\n    wait_for_key()\n\ndef wait_for_key():\n    waiting = True\n    while waiting:\n        for event in pygame.event.get():\n            if event.type == pygame.QUIT:\n                pygame.quit()\n                sys.exit()\n            elif event.type == pygame.KEYDOWN:\n                waiting = False\n\ndef show_text_on_screen(text, font_size, y_position):\n    font = pygame.font.Font(None, font_size)\n    text_render = font.render(text, True, WHITE)\n    text_rect = text_render.get_rect(center=(WIDTH \/\/ 2, y_position))\n    screen.blit(text_render, text_rect)\n\ndef change_platform_color():\n    return (random.randint(0, 255), random.randint(0, 255), random.randint(0, 255))\n<\/code><\/pre>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u062a\u0648\u0627\u0628\u0639 \u0631\u0627 \u0645\u0631\u0648\u0631 \u06a9\u0646\u06cc\u0645:<\/p>\n<p><strong><code>start_screen()<\/code>  \u062a\u0627\u0628\u0639:<\/strong><\/p>\n<ul>\n<li>\u0635\u0641\u062d\u0647 \u0628\u0627 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0633\u06cc\u0627\u0647 \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u0646 \u067e\u0627\u06a9 \u0645\u06cc \u06a9\u0646\u062f <code>screen.fill(BLACK)<\/code>.<\/li>\n<li>\u0639\u0646\u0648\u0627\u0646 \u0628\u0627\u0632\u06cc \u0648 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644 \u0647\u0627 \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u0646 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc \u062f\u0647\u062f <code>show_text_on_screen<\/code>.<\/li>\n<li>\u0646\u0645\u0627\u06cc\u0634\u06af\u0631 \u0631\u0627 \u0645\u06cc \u0686\u0631\u062e\u0627\u0646\u062f \u062a\u0627 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0628\u0627 \u0622\u0646 \u0642\u0627\u0628\u0644 \u0645\u0634\u0627\u0647\u062f\u0647 \u0628\u0627\u0634\u062f <code>pygame.display.flip()<\/code>.<\/li>\n<li>\u062a\u0645\u0627\u0633 \u0645\u06cc \u06af\u06cc\u0631\u062f <code>wait_for_key()<\/code> \u0642\u0628\u0644 \u0627\u0632 \u0627\u062f\u0627\u0645\u0647\u060c \u0645\u0646\u062a\u0638\u0631 \u0641\u0634\u0627\u0631 \u06cc\u06a9 \u06a9\u0644\u06cc\u062f \u0628\u0627\u0634\u06cc\u062f.<\/li>\n<\/ul>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/image-105.png\" class=\"kg-image\" alt=\"\u062a\u0635\u0648\u06cc\u0631-105\" width=\"791\" height=\"631\" loading=\"lazy\" title=\"\"><\/figure>\n<p><strong><code>game_over_screen()<\/code>  \u062a\u0627\u0628\u0639:<\/strong><\/p>\n<ul>\n<li>\u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0631\u0627 \u0628\u0627 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0633\u06cc\u0627\u0647 \u067e\u0627\u06a9 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li>\u0628\u0627\u0632\u06cc \u0631\u0627 \u0631\u0648\u06cc \u067e\u06cc\u0627\u0645\u060c \u0627\u0645\u062a\u06cc\u0627\u0632 \u0646\u0647\u0627\u06cc\u06cc \u0648 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644\u200c\u0647\u0627\u06cc \u0634\u0631\u0648\u0639 \u0645\u062c\u062f\u062f \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/li>\n<li>\u0646\u0645\u0627\u06cc\u0634\u06af\u0631 \u0631\u0627 \u0628\u0631\u0645\u06cc\u06af\u0631\u062f\u0627\u0646\u062f.<\/li>\n<li>\u062a\u0645\u0627\u0633 \u0645\u06cc \u06af\u06cc\u0631\u062f <code>wait_for_key()<\/code> \u0645\u0646\u062a\u0638\u0631 \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0646 \u06a9\u0644\u06cc\u062f \u0628\u0627\u0634\u06cc\u062f.<\/li>\n<\/ul>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/image-106.png\" class=\"kg-image\" alt=\"\u062a\u0635\u0648\u06cc\u0631-106\" width=\"791\" height=\"627\" loading=\"lazy\" title=\"\"><\/figure>\n<p><strong><code>victory_screen()<\/code>  \u062a\u0627\u0628\u0639:<\/strong><\/p>\n<ul>\n<li>\u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0631\u0627 \u0628\u0627 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0633\u06cc\u0627\u0647 \u067e\u0627\u06a9 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li>\u067e\u06cc\u0627\u0645 \u062a\u0628\u0631\u06cc\u06a9\u060c \u0627\u0645\u062a\u06cc\u0627\u0632 \u0646\u0647\u0627\u06cc\u06cc \u0648 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644 \u062e\u0631\u0648\u062c \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc \u062f\u0647\u062f.<\/li>\n<li>\u0646\u0645\u0627\u06cc\u0634\u06af\u0631 \u0631\u0627 \u0628\u0631\u0645\u06cc\u06af\u0631\u062f\u0627\u0646\u062f.<\/li>\n<li>\u062a\u0645\u0627\u0633 \u0645\u06cc \u06af\u06cc\u0631\u062f <code>wait_for_key()<\/code> \u0645\u0646\u062a\u0638\u0631 \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0646 \u06a9\u0644\u06cc\u062f \u0628\u0627\u0634\u06cc\u062f.<\/li>\n<\/ul>\n<p><strong><code>wait_for_key()<\/code>  \u062a\u0627\u0628\u0639:<\/strong><\/p>\n<ul>\n<li>\u0645\u0646\u062a\u0638\u0631 \u06cc\u06a9 \u0631\u0648\u06cc\u062f\u0627\u062f \u062e\u0631\u0648\u062c (\u0628\u0633\u062a\u0646 \u067e\u0646\u062c\u0631\u0647 \u0628\u0627\u0632\u06cc) \u06cc\u0627 \u06cc\u06a9 \u0631\u0648\u06cc\u062f\u0627\u062f \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0646 \u06a9\u0644\u06cc\u062f \u0627\u0633\u062a.<\/li>\n<li>\u0627\u06af\u0631 \u0631\u0648\u06cc\u062f\u0627\u062f \u062f\u0631 \u062d\u0627\u0644 \u062a\u0631\u06a9 \u0627\u0633\u062a\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0628\u0627\u0632\u06cc \u0627\u0632 \u0628\u0627\u0632\u06cc \u062e\u0627\u0631\u062c \u0645\u06cc\u200c\u0634\u0648\u062f <code>pygame.quit()<\/code> \u0648 <code>sys.exit()<\/code>.<\/li>\n<li>\u0627\u06af\u0631 \u0631\u0648\u06cc\u062f\u0627\u062f \u0628\u0627 \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0646 \u06a9\u0644\u06cc\u062f \u0628\u0627\u0634\u062f\u060c \u0627\u0632 \u062d\u0644\u0642\u0647 \u0627\u0646\u062a\u0638\u0627\u0631 \u062e\u0627\u0631\u062c \u0645\u06cc \u0634\u0648\u062f.<\/li>\n<\/ul>\n<p><strong><code>show_text_on_screen(text, font_size, y_position)<\/code>  \u062a\u0627\u0628\u0639:<\/strong><\/p>\n<ul>\n<li>\u0645\u062a\u0646 \u0631\u0627 \u0631\u0646\u062f\u0631 \u0645\u06cc \u06a9\u0646\u062f \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0628\u0627 \u0627\u0646\u062f\u0627\u0632\u0647 \u0641\u0648\u0646\u062a \u0645\u0634\u062e\u0635 \u0634\u062f\u0647 \u0648 \u0645\u0648\u0642\u0639\u06cc\u062a Y.<\/li>\n<li>\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f <code>pygame.font.Font<\/code> \u06a9\u0644\u0627\u0633 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u0634\u06cc \u0641\u0648\u0646\u062a.<\/li>\n<li>\u0645\u062a\u0646 \u0631\u0627 \u0631\u0648\u06cc \u0633\u0637\u062d\u06cc \u0628\u0627 \u0631\u0646\u06af \u0645\u0634\u062e\u0635 \u0634\u062f\u0647 (\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0648\u0631\u062f \u0633\u0641\u06cc\u062f) \u0631\u0646\u062f\u0631 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li>\u0645\u062a\u0646 \u0631\u0627 \u062f\u0631 \u0645\u0631\u06a9\u0632 \u0635\u0641\u062d\u0647 \u062f\u0631 \u0645\u0648\u0642\u0639\u06cc\u062a Y \u0645\u0634\u062e\u0635 \u0634\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc \u062f\u0647\u062f.<\/li>\n<li>\u0645\u062a\u0646 \u0631\u0627 \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0628\u0627\u0632\u06cc \u067e\u062e\u0634 \u0645\u06cc \u06a9\u0646\u062f (\u06a9\u0634\u0634 \u0645\u06cc \u06a9\u0646\u062f).<\/li>\n<\/ul>\n<p><strong><code>change_platform_color()<\/code>  \u062a\u0627\u0628\u0639:<\/strong><\/p>\n<ul>\n<li>\u06cc\u06a9 \u0631\u0646\u06af RGB \u062a\u0635\u0627\u062f\u0641\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u062a\u063a\u06cc\u06cc\u0631 \u0631\u0646\u06af \u067e\u0644\u062a\u0641\u0631\u0645 \u0628\u0631\u0645\u06cc\u200c\u06af\u0631\u062f\u0627\u0646\u062f.<\/li>\n<\/ul>\n<p>\u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u062c\u0646\u0628\u0647 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0628\u0627\u0632\u06cc\u060c \u062a\u0639\u0627\u0645\u0644\u0627\u062a \u06a9\u0627\u0631\u0628\u0631 \u0648 \u0646\u0645\u0627\u06cc\u0634 \u0645\u062a\u0646 \u0631\u0627 \u06a9\u0646\u062a\u0631\u0644 \u0645\u06cc \u06a9\u0646\u0646\u062f.  \u0622\u0646\u0647\u0627 \u0628\u0647 \u0633\u0627\u062e\u062a\u0627\u0631 \u06a9\u0644\u06cc \u0648 \u062a\u062c\u0631\u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0628\u0627\u0632\u06cc \u06a9\u0645\u06a9 \u0645\u06cc \u06a9\u0646\u0646\u062f.<\/p>\n<h2 id=\"main-game-loop\"><span class=\"ez-toc-section\" id=\"%d8%ad%d9%84%d9%82%d9%87_%d8%a8%d8%a7%d8%b2%db%8c_%d8%a7%d8%b5%d9%84%db%8c\"><\/span>\u062d\u0644\u0642\u0647 \u0628\u0627\u0632\u06cc \u0627\u0635\u0644\u06cc<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0648 \u0627\u06a9\u0646\u0648\u0646\u060c \u062d\u0644\u0642\u0647 \u0627\u0635\u0644\u06cc \u0628\u0627\u0632\u06cc \u0631\u0627 \u0628\u0627 \u0645\u06a9\u0627\u0646\u06cc\u06a9 \u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0622\u0646 \u06a9\u062f\u06af\u0630\u0627\u0631\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f.  \u0628\u06cc\u0627\u06cc\u06cc\u062f \u0627\u0628\u062a\u062f\u0627 \u06a9\u062f \u0648 \u0633\u067e\u0633 \u062a\u0648\u0636\u06cc\u062d \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u0645.<\/p>\n<p>\u0627\u06cc\u0646 \u0637\u0648\u0644\u0627\u0646\u06cc \u062a\u0631\u06cc\u0646 \u0628\u0644\u0648\u06a9 \u06a9\u062f \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0627\u0633\u062a\u060c \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0635\u0628\u0648\u0631 \u0628\u0627\u0634\u06cc\u062f \u2013 \u0627\u0631\u0632\u0634\u0634 \u0631\u0627 \u062f\u0627\u0631\u062f.<\/p>\n<pre><code class=\"language-python\"># Main game loop\nstart_screen()\ngame_running = True\n\nwhile game_running:\n    for event in pygame.event.get():\n        if event.type == pygame.QUIT:\n            game_running = False\n\n    keys = pygame.key.get_pressed()\n\n    # Move the platform\n    platform_pos[0] += (keys[pygame.K_RIGHT] - keys[pygame.K_LEFT]) * platform_speed\n    platform_pos[1] += (keys[pygame.K_DOWN] - keys[pygame.K_UP]) * platform_speed\n\n    # Ensure the platform stays within the screen boundaries\n    platform_pos[0] = max(0, min(platform_pos[0], WIDTH - PLATFORM_WIDTH))\n    platform_pos[1] = max(0, min(platform_pos[1], HEIGHT - PLATFORM_HEIGHT))\n\n    # Move the ball\n    ball_pos[0] += ball_speed[0]\n    ball_pos[1] += ball_speed[1]\n\n    # Bounce off the walls\n    if ball_pos[0] &lt;= 0 or ball_pos[0] &gt;= WIDTH:\n        ball_speed[0] = -ball_speed[0]\n\n    if ball_pos[1] &lt;= 0:\n        ball_speed[1] = -ball_speed[1]\n\n    # Check if the ball hits the platform\n    if (\n        platform_pos[0] &lt;= ball_pos[0] &lt;= platform_pos[0] + PLATFORM_WIDTH\n        and platform_pos[1] &lt;= ball_pos[1] &lt;= platform_pos[1] + PLATFORM_HEIGHT\n    ):\n        ball_speed[1] = -ball_speed[1]\n        score += 1\n\n    # Check if the player advances to the next level\n    if score &gt;= current_level * 10:\n        current_level += 1\n        ball_pos = [WIDTH \/\/ 2, HEIGHT \/\/ 2]\n        ball_speed = [random.uniform(2, 4), random.uniform(2, 4)]  # Randomize the ball speed\n        platform_color = change_platform_color()\n\n    # Check if the ball falls off the screen\n    if ball_pos[1] &gt;= HEIGHT:\n        # Decrease lives\n        lives -= 1\n        if lives == 0:\n            game_over_screen()\n            start_screen()  # Restart the game after game over\n            score = 0\n            lives = 3\n            current_level = 1\n        else:\n            # Reset the ball position\n            ball_pos = [WIDTH \/\/ 2, HEIGHT \/\/ 2]\n            # Randomize the ball speed\n            ball_speed = [random.uniform(2, 4), random.uniform(2, 4)]\n\n    # Clear the screen\n    screen.fill(BLACK)\n\n    # Draw the ball\n    pygame.draw.circle(screen, WHITE, (int(ball_pos[0]), int(ball_pos[1])), BALL_RADIUS)\n\n    # Draw the platform\n    pygame.draw.rect(screen, platform_color, (int(platform_pos[0]), int(platform_pos[1]), PLATFORM_WIDTH, PLATFORM_HEIGHT))\n\n    # Display information\n    info_line_y = 10  # Adjust the vertical position as needed\n    info_spacing = 75  # Adjust the spacing as needed\n\n    # Draw the score in an orange rectangle at the top left\n    score_text = font.render(f\"Score: {score}\", True, WHITE)\n    score_rect = score_text.get_rect(topleft=(10, info_line_y))\n    pygame.draw.rect(screen, ORANGE, score_rect.inflate(10, 5))\n    screen.blit(score_text, score_rect)\n\n    # Draw the level indicator in a light-blue rectangle at the top left (next to the score)\n    level_text = font.render(f\"Level: {current_level}\", True, WHITE)\n    level_rect = level_text.get_rect(topleft=(score_rect.topright[0] + info_spacing, info_line_y))\n    pygame.draw.rect(screen, LIGHT_BLUE, level_rect.inflate(10, 5))\n    screen.blit(level_text, level_rect)\n\n    # Draw the lives in a red rectangle at the top left (next to the level)\n    lives_text = font.render(f\"Lives: {lives}\", True, WHITE)\n    lives_rect = lives_text.get_rect(topleft=(level_rect.topright[0] + info_spacing, info_line_y))\n    pygame.draw.rect(screen, RED, lives_rect.inflate(10, 5))\n    screen.blit(lives_text, lives_rect)\n\n    # Update the display\n    pygame.display.flip()\n\n    # Control the frame rate\n    clock.tick(FPS)\n\n# Quit Pygame\npygame.quit()<\/code><\/pre>\n<p>\u0628\u0633\u06cc\u0627\u0631 \u062e\u0648\u0628\u060c \u0627\u06cc\u0646 \u0645\u0642\u062f\u0627\u0631 \u0632\u06cc\u0627\u062f\u06cc \u0628\u0648\u062f &#8211; \u0627\u0645\u0627 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0686\u06cc\u0632\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0645\u0627 \u062f\u0631 \u06a9\u062f \u0628\u0627\u0644\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f\u06cc\u0645:<\/p>\n<p><strong>\u0645\u0642\u062f\u0627\u0631\u062f\u0647\u06cc \u0627\u0648\u0644\u06cc\u0647 \u0648 \u0635\u0641\u062d\u0647 \u0634\u0631\u0648\u0639:<\/strong><\/p>\n<ul>\n<li>\u062a\u0645\u0627\u0633 \u0645\u06cc \u06af\u06cc\u0631\u062f <code>start_screen()<\/code> \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0635\u0641\u062d\u0647 \u0627\u0648\u0644\u06cc\u0647 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644.<\/li>\n<li>\u0645\u062c\u0645\u0648\u0639\u0647 \u0647\u0627 <code>game_running<\/code> \u0628\u0647 <code>True<\/code> \u0628\u0631\u0627\u06cc \u0634\u0631\u0648\u0639 \u062d\u0644\u0642\u0647 \u0627\u0635\u0644\u06cc \u0628\u0627\u0632\u06cc.<\/li>\n<\/ul>\n<p><strong>\u062d\u0644\u0642\u0647 \u0627\u0635\u0644\u06cc \u0628\u0627\u0632\u06cc:<\/strong><\/p>\n<ul>\n<li>\u0627\u062f\u0627\u0645\u0647 \u062f\u0627\u0631\u062f \u062a\u0627 <code>game_running<\/code> \u062a\u0628\u062f\u06cc\u0644 \u0645\u06cc \u0634\u0648\u062f <code>False<\/code> (\u0645\u062b\u0644\u0627 \u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u06a9\u0627\u0631\u0628\u0631 \u067e\u0646\u062c\u0631\u0647 \u0628\u0627\u0632\u06cc \u0631\u0627 \u0645\u06cc \u0628\u0646\u062f\u062f).<\/li>\n<\/ul>\n<p><strong>\u0645\u062f\u06cc\u0631\u06cc\u062a \u0631\u0648\u06cc\u062f\u0627\u062f:<\/strong><\/p>\n<ul>\n<li>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0631\u0648\u06cc\u062f\u0627\u062f\u0647\u0627 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc \u06a9\u0646\u062f <code>pygame.event.get()<\/code>.<\/li>\n<li>\u0627\u06af\u0631 \u06cc\u06a9 \u0631\u0648\u06cc\u062f\u0627\u062f \u062e\u0631\u0648\u062c (\u0628\u0633\u062a\u0646 \u067e\u0646\u062c\u0631\u0647 \u0628\u0627\u0632\u06cc) \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u0634\u0648\u062f\u060c \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc \u0634\u0648\u062f <code>game_running<\/code> \u0628\u0647 <code>False<\/code> \u0628\u0631\u0627\u06cc \u062e\u0631\u0648\u062c \u0627\u0632 \u062d\u0644\u0642\u0647<\/li>\n<\/ul>\n<p><strong>\u062c\u0646\u0628\u0634 \u0633\u06a9\u0648:<\/strong><\/p>\n<ul>\n<li>\u0648\u0636\u0639\u06cc\u062a \u06a9\u0644\u06cc\u062f\u0647\u0627\u06cc \u062c\u0647\u062a \u062f\u0627\u0631 \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u0646 \u0645\u06cc \u062e\u0648\u0627\u0646\u062f <code>pygame.key.get_pressed()<\/code>.<\/li>\n<li>\u0645\u0648\u0642\u0639\u06cc\u062a \u067e\u0644\u062a \u0641\u0631\u0645 \u0631\u0627 \u0628\u0631 \u0627\u0633\u0627\u0633 \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc \u06a9\u0646\u062f \u0631\u0648\u06cc \u0648\u0631\u0648\u062f\u06cc \u0647\u0627\u06cc \u06a9\u0644\u06cc\u062f \u0641\u0644\u0634<\/li>\n<li>\u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u067e\u0644\u062a \u0641\u0631\u0645 \u062f\u0631 \u0645\u062d\u062f\u0648\u062f\u0647 \u0647\u0627\u06cc \u0635\u0641\u062d\u0647 \u0628\u0627\u0642\u06cc \u0645\u06cc \u0645\u0627\u0646\u062f.<\/li>\n<\/ul>\n<p><strong>\u062d\u0631\u06a9\u062a \u062a\u0648\u067e \u0648 \u067e\u0631\u0634:<\/strong><\/p>\n<ul>\n<li>\u0628\u0647 \u0631\u0648\u0632 \u0631\u0633\u0627\u0646\u06cc \u0645\u0648\u0642\u0639\u06cc\u062a \u062a\u0648\u067e \u0628\u0631 \u0627\u0633\u0627\u0633 \u0631\u0648\u06cc \u0633\u0631\u0639\u062a \u0622\u0646<\/li>\n<li>\u062c\u0647\u0634 \u0627\u0632 \u062f\u06cc\u0648\u0627\u0631\u0647\u0627 \u0631\u0627 \u0628\u0627 \u0645\u0639\u06a9\u0648\u0633 \u06a9\u0631\u062f\u0646 \u0633\u0631\u0639\u062a \u0647\u0646\u06af\u0627\u0645 \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u0644\u0628\u0647 \u0647\u0627\u06cc \u0635\u0641\u062d\u0647 \u0627\u062c\u0631\u0627 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<\/ul>\n<p><strong>\u062a\u0634\u062e\u06cc\u0635 \u0628\u0631\u062e\u0648\u0631\u062f:<\/strong><\/p>\n<ul>\n<li>\u0628\u0627 \u0645\u0642\u0627\u06cc\u0633\u0647 \u0645\u0648\u0642\u0639\u06cc\u062a \u0647\u0627 \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0622\u06cc\u0627 \u062a\u0648\u067e \u0628\u0647 \u0633\u06a9\u0648 \u0628\u0631\u062e\u0648\u0631\u062f \u0645\u06cc \u06a9\u0646\u062f \u06cc\u0627 \u062e\u06cc\u0631.<\/li>\n<li>\u0627\u06af\u0631 \u0628\u0631\u062e\u0648\u0631\u062f\u06cc \u0631\u062e \u062f\u0647\u062f\u060c \u0633\u0631\u0639\u062a \u0639\u0645\u0648\u062f\u06cc \u062a\u0648\u067e \u0645\u0639\u06a9\u0648\u0633 \u0645\u06cc \u0634\u0648\u062f \u0648 \u0628\u0627\u0632\u06cc\u06a9\u0646 \u06cc\u06a9 \u0627\u0645\u062a\u06cc\u0627\u0632 \u0645\u06cc \u06af\u06cc\u0631\u062f.<\/li>\n<\/ul>\n<p><strong>\u067e\u06cc\u0634\u0631\u0641\u062a \u0633\u0637\u062d:<\/strong><\/p>\n<ul>\n<li>\u0628\u0631\u0631\u0633\u06cc \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0622\u06cc\u0627 \u0628\u0627\u0632\u06cc\u06a9\u0646 \u0627\u0645\u062a\u06cc\u0627\u0632 \u06a9\u0627\u0641\u06cc \u0628\u0631\u0627\u06cc \u0635\u0639\u0648\u062f \u0628\u0647 \u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f\u06cc \u06a9\u0633\u0628 \u06a9\u0631\u062f\u0647 \u0627\u0633\u062a \u06cc\u0627 \u062e\u06cc\u0631.<\/li>\n<li>\u0627\u06af\u0631 \u0686\u0646\u06cc\u0646 \u0627\u0633\u062a\u060c \u0633\u0637\u062d \u0631\u0627 \u0627\u0641\u0632\u0627\u06cc\u0634 \u0645\u06cc \u062f\u0647\u062f\u060c \u0645\u0648\u0642\u0639\u06cc\u062a \u062a\u0648\u067e \u0631\u0627 \u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06cc \u0645\u06cc \u06a9\u0646\u062f\u060c \u0633\u0631\u0639\u062a \u0622\u0646 \u0631\u0627 \u062a\u0635\u0627\u062f\u0641\u06cc \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0631\u0646\u06af \u067e\u0644\u062a \u0641\u0631\u0645 \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc \u062f\u0647\u062f.<\/li>\n<\/ul>\n<p><strong>\u0628\u0631\u0631\u0633\u06cc \u0628\u0627\u0632\u06cc \u067e\u0627\u06cc\u0627\u0646:<\/strong><\/p>\n<ul>\n<li>\u0627\u06af\u0631 \u062a\u0648\u067e \u0627\u0632 \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0628\u06cc\u0641\u062a\u062f \u0646\u0638\u0627\u0631\u062a \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li>\u0627\u06af\u0631 \u062a\u0648\u067e \u062f\u0631 \u0632\u06cc\u0631 \u0635\u0641\u062d\u0647 \u0628\u0627\u0634\u062f\u060c \u062a\u0639\u062f\u0627\u062f \u0632\u0646\u062f\u06af\u06cc \u0647\u0627 \u0631\u0627 \u06a9\u0627\u0647\u0634 \u0645\u06cc \u062f\u0647\u062f.<\/li>\n<li>\u0627\u06af\u0631 \u0632\u0646\u062f\u06af\u06cc\u200c\u0647\u0627 \u062a\u0645\u0627\u0645 \u0634\u0648\u062f\u060c \u0628\u0627\u0632\u06cc \u0631\u0627 \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f\u060c \u0628\u0627\u0632\u06cc \u0631\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0627\u0645\u062a\u06cc\u0627\u0632\u060c \u0632\u0646\u062f\u06af\u06cc \u0648 \u0633\u0637\u062d \u0631\u0627 \u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<\/ul>\n<p><strong>\u0631\u0646\u062f\u0631 \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634:<\/strong><\/p>\n<ul>\n<li>\u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0631\u0627 \u0628\u0627 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0633\u06cc\u0627\u0647 \u067e\u0627\u06a9 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li>\u062a\u0648\u067e \u0648 \u0633\u06a9\u0648 \u0631\u0627 \u0645\u06cc \u06a9\u0634\u062f \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634<\/li>\n<li>\u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0627\u0645\u062a\u06cc\u0627\u0632\u060c \u0633\u0637\u062d \u0648 \u0632\u0646\u062f\u06af\u06cc \u0631\u0627 \u062f\u0631 \u0645\u0633\u062a\u0637\u06cc\u0644 \u0647\u0627\u06cc\u06cc \u0628\u0627 \u0631\u0646\u06af \u0647\u0627\u06cc \u062e\u0627\u0635 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc \u062f\u0647\u062f.<\/li>\n<\/ul>\n<p><strong>\u0646\u0645\u0627\u06cc\u0634 \u0628\u0647 \u0631\u0648\u0632 \u0631\u0633\u0627\u0646\u06cc \u0648 \u06a9\u0646\u062a\u0631\u0644 \u0646\u0631\u062e \u0641\u0631\u06cc\u0645:<\/strong><\/p>\n<ul>\n<li>\u0646\u0645\u0627\u06cc\u0634\u06af\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0628\u0647 \u0631\u0648\u0632 \u0645\u06cc \u06a9\u0646\u062f.<\/li>\n<li>\u0646\u0631\u062e \u0641\u0631\u06cc\u0645 \u0631\u0627 \u0628\u0627 <code>clock.tick(FPS)<\/code>.<\/li>\n<\/ul>\n<p><strong>\u062e\u0627\u062a\u0645\u0647 \u0628\u0627\u0632\u06cc:<\/strong><\/p>\n<ul>\n<li>\u0627\u0632 PyGame \u062e\u0627\u0631\u062c \u0645\u06cc \u0634\u0648\u062f \u0648 \u0628\u0627 \u062e\u0631\u0648\u062c \u0627\u0632 \u062d\u0644\u0642\u0647 \u0627\u0635\u0644\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u062e\u0627\u062a\u0645\u0647 \u0645\u06cc \u062f\u0647\u062f.<\/li>\n<\/ul>\n<p>\u0627\u06cc\u0646 \u0633\u0627\u062e\u062a\u0627\u0631 \u06af\u06cc\u0645 \u067e\u0644\u06cc \u0645\u062f\u0627\u0648\u0645\u060c \u0645\u062f\u06cc\u0631\u06cc\u062a \u0648\u0631\u0648\u062f\u06cc \u06a9\u0627\u0631\u0628\u0631\u060c \u0628\u0647 \u0631\u0648\u0632 \u0631\u0633\u0627\u0646\u06cc \u0648\u0636\u0639\u06cc\u062a \u0628\u0627\u0632\u06cc \u0648 \u0627\u0631\u0627\u0626\u0647 \u0628\u0627\u0632\u062e\u0648\u0631\u062f \u0628\u0635\u0631\u06cc \u0628\u0647 \u0628\u0627\u0632\u06cc\u06a9\u0646 \u0631\u0627 \u062a\u0636\u0645\u06cc\u0646 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<h2 id=\"conclusion\"><span class=\"ez-toc-section\" id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87\"><\/span>\u0646\u062a\u06cc\u062c\u0647<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u0634\u0645\u0627 \u062f\u0631 \u067e\u06cc\u0686\u06cc\u062f\u06af\u06cc\u200c\u0647\u0627\u06cc \u0686\u0646\u062f\u06cc\u0646 \u0639\u0645\u0644\u06a9\u0631\u062f \u06a9\u0644\u06cc\u062f\u06cc \u06a9\u0647 \u0633\u062a\u0648\u0646 \u0641\u0642\u0631\u0627\u062a \u0628\u0627\u0632\u06cc \u062a\u0648\u067e \u067e\u0631\u0646\u062f\u0647 \u0634\u0645\u0627 \u0631\u0627 \u062a\u0634\u06a9\u06cc\u0644 \u0645\u06cc\u200c\u062f\u0647\u0646\u062f\u060c \u067e\u06cc\u0645\u0627\u06cc\u0634 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f. <\/p>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u0646\u0642\u0634 \u0622\u0646\u0647\u0627 \u0631\u0627 \u0645\u0631\u0648\u0631 \u06a9\u0646\u06cc\u0645:<\/p>\n<p>\u0627\u06cc\u0646 <strong><code>start_screen()<\/code>  \u062a\u0627\u0628\u0639 <\/strong>\u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0631\u0627 \u0628\u0627 \u067e\u0633\u200c\u0632\u0645\u06cc\u0646\u0647 \u0633\u06cc\u0627\u0647 \u067e\u0627\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u0639\u0646\u0648\u0627\u0646 \u0628\u0627\u0632\u06cc \u0648 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644\u200c\u0647\u0627 \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f\u060c \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0645\u0634\u0627\u0647\u062f\u0647 \u0628\u0631 \u0645\u06cc\u200c\u06af\u0631\u062f\u0627\u0646\u062f \u0648 \u0645\u0646\u062a\u0638\u0631 \u0641\u0634\u0627\u0631 \u06a9\u0644\u06cc\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 <code>wait_for_key()<\/code>.<\/p>\n<p>\u0627\u06cc\u0646 <strong><code>game_over_screen()<\/code>  \u062a\u0627\u0628\u0639 <\/strong>\u0635\u0641\u062d\u0647 \u0631\u0627 \u0628\u0627 \u067e\u0633\u200c\u0632\u0645\u06cc\u0646\u0647 \u0633\u06cc\u0627\u0647 \u067e\u0627\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u0628\u0627\u0632\u06cc \u0631\u0627 \u0631\u0648\u06cc \u067e\u06cc\u0627\u0645\u060c \u0627\u0645\u062a\u06cc\u0627\u0632 \u0646\u0647\u0627\u06cc\u06cc \u0648 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644\u200c\u0647\u0627\u06cc \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u062c\u062f\u062f \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f\u060c \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 \u0631\u0627 \u0628\u0631\u0645\u06cc\u200c\u06af\u0631\u062f\u0627\u0646\u062f \u0648 \u0645\u0646\u062a\u0638\u0631 \u0641\u0634\u0627\u0631 \u06a9\u0644\u06cc\u062f \u0628\u0627 <code>wait_for_key()<\/code>.<\/p>\n<p>\u0627\u06cc\u0646 <strong><code>victory_screen()<\/code>  \u062a\u0627\u0628\u0639 <\/strong>\u0635\u0641\u062d\u0647 \u0631\u0627 \u0628\u0627 \u067e\u0633\u200c\u0632\u0645\u06cc\u0646\u0647 \u0633\u06cc\u0627\u0647 \u067e\u0627\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u067e\u06cc\u0627\u0645 \u062a\u0628\u0631\u06cc\u06a9\u060c \u0627\u0645\u062a\u06cc\u0627\u0632 \u0646\u0647\u0627\u06cc\u06cc \u0648 \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644\u200c\u0647\u0627\u06cc \u062e\u0631\u0648\u062c \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f\u060c \u0646\u0645\u0627\u06cc\u0634\u06af\u0631 \u0631\u0627 \u0628\u0631\u0645\u06cc\u200c\u06af\u0631\u062f\u0627\u0646\u062f \u0648 \u0645\u0646\u062a\u0638\u0631 \u0641\u0634\u0627\u0631 \u06a9\u0644\u06cc\u062f \u0628\u0627 <code>wait_for_key()<\/code>.<\/p>\n<p>\u0627\u06cc\u0646 <strong><code>wait_for_key()<\/code>  \u062a\u0627\u0628\u0639 <\/strong>\u0645\u0646\u062a\u0638\u0631 \u06cc\u06a9 \u0631\u0648\u06cc\u062f\u0627\u062f \u062e\u0631\u0648\u062c (\u0628\u0633\u062a\u0646 \u067e\u0646\u062c\u0631\u0647 \u0628\u0627\u0632\u06cc) \u06cc\u0627 \u06cc\u06a9 \u0631\u0648\u06cc\u062f\u0627\u062f \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0646 \u06a9\u0644\u06cc\u062f \u0627\u0633\u062a.  \u062f\u0631 \u0635\u0648\u0631\u062a \u062a\u0631\u06a9 \u0628\u0627\u0632\u06cc \u0627\u0632 \u0628\u0627\u0632\u06cc \u062e\u0627\u0631\u062c \u0645\u06cc \u0634\u0648\u062f \u0648 \u0627\u06af\u0631 \u06a9\u0644\u06cc\u062f\u06cc \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0647 \u0634\u0648\u062f \u0627\u0632 \u062d\u0644\u0642\u0647 \u0627\u0646\u062a\u0638\u0627\u0631 \u062e\u0627\u0631\u062c \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<p>\u0627\u06cc\u0646 <strong><code>show_text_on_screen(text, font_size, y_position)<\/code>  \u062a\u0627\u0628\u0639 <\/strong>\u0645\u062a\u0646 \u0631\u0627 \u0631\u0646\u062f\u0631 \u0645\u06cc \u06a9\u0646\u062f \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0628\u0627 \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u0645\u0634\u062e\u0635 \u0634\u062f\u0647\u060c \u0627\u0632 <code>pygame.font.Font<\/code> \u06a9\u0644\u0627\u0633 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u0634\u06cc \u0641\u0648\u0646\u062a\u060c \u0648 \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0646 \u0648 \u062a\u0631\u0633\u06cc\u0645 \u0645\u062a\u0646 \u062f\u0631 \u0645\u0631\u06a9\u0632 \u0635\u0641\u062d\u0647.<\/p>\n<p>\u0648 <strong><code>change_platform_color()<\/code>  \u062a\u0627\u0628\u0639 <\/strong>\u06cc\u06a9 \u0631\u0646\u06af RGB \u062a\u0635\u0627\u062f\u0641\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u062a\u063a\u06cc\u06cc\u0631 \u0631\u0646\u06af \u067e\u0644\u062a \u0641\u0631\u0645 \u0628\u0631\u0645\u06cc \u06af\u0631\u062f\u0627\u0646\u062f.<\/p>\n<p>\u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639\u060c \u0634\u0645\u0627 \u0628\u0647 \u062d\u0644\u0642\u0647 \u0627\u0635\u0644\u06cc \u0628\u0627\u0632\u06cc\u060c \u0642\u0644\u0628 \u0628\u0627\u0632\u06cc \u0645\u0627\u060c \u067e\u0631\u062f\u0627\u062e\u062a\u06cc\u062f.  \u0645\u06a9\u0627\u0646\u06cc\u06a9 \u0647\u0627\u06cc \u0628\u0627\u0632\u06cc \u0627\u0632 \u062c\u0645\u0644\u0647 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0631\u0648\u06cc\u062f\u0627\u062f\u060c \u062d\u0631\u06a9\u062a \u067e\u0644\u062a \u0641\u0631\u0645 \u0648 \u062a\u0648\u067e\u060c \u062a\u0634\u062e\u06cc\u0635 \u0628\u0631\u062e\u0648\u0631\u062f\u060c \u067e\u06cc\u0634\u0631\u0641\u062a \u0633\u0637\u062d \u0648 \u067e\u0627\u06cc\u0627\u0646 \u0628\u0627\u0632\u06cc \u0631\u0627 \u0647\u0645\u0627\u0647\u0646\u06af \u0645\u06cc \u06a9\u0646\u062f. <\/p>\n<p>\u0634\u0645\u0627 \u0634\u0627\u0647\u062f \u0628\u0648\u062f\u06cc\u062f \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0627\u06cc\u0646 \u062d\u0644\u0642\u0647 \u06af\u06cc\u0645 \u067e\u0644\u06cc \u0645\u062f\u0627\u0648\u0645\u060c \u062a\u0639\u0627\u0645\u0644\u0627\u062a \u06a9\u0627\u0631\u0628\u0631 \u067e\u0627\u0633\u062e\u06af\u0648 \u0648 \u062a\u0635\u0627\u0648\u06cc\u0631 \u067e\u0648\u06cc\u0627 \u0631\u0627 \u062a\u0636\u0645\u06cc\u0646 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u06a9\u0647 \u0628\u0647 \u062f\u0631\u06a9 \u0627\u06cc\u0646 \u062a\u0648\u0627\u0628\u0639 \u0648 \u062d\u0644\u0642\u0647 \u0627\u0635\u0644\u06cc \u0645\u062c\u0647\u0632 \u0634\u062f\u0647 \u0627\u06cc\u062f\u060c \u062f\u0627\u0646\u0634 \u0622\u0632\u0645\u0627\u06cc\u0634\u060c \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0627\u062f\u0646 \u0648 \u06af\u0633\u062a\u0631\u0634 \u0628\u0627\u0632\u06cc \u062e\u0648\u062f \u0631\u0627 \u062f\u0627\u0631\u06cc\u062f.  \u0627\u062d\u0633\u0627\u0633 \u0642\u062f\u0631\u062a \u0628\u0631\u0627\u06cc \u0633\u0648\u0627\u0631 \u0634\u062f\u0646 \u06a9\u0646\u06cc\u062f \u0631\u0648\u06cc \u0633\u0641\u0631 \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 \u062a\u0648\u0633\u0639\u0647 \u0628\u0627\u0632\u06cc\u060c \u06a9\u0634\u0641 \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u062c\u062f\u06cc\u062f\u060c \u0648 \u0627\u06cc\u062c\u0627\u062f \u062a\u062c\u0631\u0628\u0647 \u0647\u0627\u06cc \u0645\u0646\u062d\u0635\u0631 \u0628\u0647 \u0641\u0631\u062f \u0628\u0627\u0632\u06cc.  \u06a9\u062f \u0646\u0648\u06cc\u0633\u06cc \u0645\u0628\u0627\u0631\u06a9!<\/p>\n<p>\u0627\u06af\u0631 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u062f \u0631\u0627 \u062f\u0627\u0646\u0644\u0648\u062f \u06a9\u0646\u06cc\u062f \u06cc\u0627 \u0628\u0627\u0632\u06cc \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0646 \u0631\u0627 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<figure class=\"kg-card kg-bookmark-card\">\n<div class=\"kg-bookmark-content\">\n<div class=\"kg-bookmark-title\">GitHub &#8211; jpromanonet\/bouncing_ball_game: \u06cc\u06a9 \u0628\u0627\u0632\u06cc \u06a9\u0647 \u062f\u0631 \u0622\u0646 \u0634\u0645\u0627 \u06cc\u06a9 \u067e\u0644\u062a\u0641\u0631\u0645 \u0631\u0627 \u06a9\u0646\u062a\u0631\u0644 \u0645\u06cc \u06a9\u0646\u06cc\u062f \u062a\u0627 \u062a\u0648\u067e \u0631\u0627 \u0628\u062f\u0648\u0646 \u0627\u06cc\u0646\u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u062f\u0647\u06cc\u062f \u0627\u0632 \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0628\u06cc\u0641\u062a\u062f\u060c \u062c\u0647\u0634 \u06a9\u0646\u062f.<\/div>\n<div class=\"kg-bookmark-description\">\u06cc\u06a9 \u0628\u0627\u0632\u06cc \u06a9\u0647 \u062f\u0631 \u0622\u0646 \u0634\u0645\u0627 \u06cc\u06a9 \u067e\u0644\u062a \u0641\u0631\u0645 \u0631\u0627 \u06a9\u0646\u062a\u0631\u0644 \u0645\u06cc \u06a9\u0646\u06cc\u062f \u062a\u0627 \u062a\u0648\u067e \u0631\u0627 \u0628\u062f\u0648\u0646 \u0627\u06cc\u0646\u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u062f\u0647\u06cc\u062f \u0627\u0632 \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0628\u06cc\u0641\u062a\u062f\u060c \u062c\u0647\u0634 \u06a9\u0646\u062f.  &#8211; GitHub &#8211; jpromanonet\/bouncing_ball_game: \u06cc\u06a9 \u0628\u0627\u0632\u06cc \u06a9\u0647 \u062f\u0631 \u0622\u0646 \u0634\u0645\u0627 \u06cc\u06a9 \u067e\u0644\u062a\u0641\u0631\u0645 \u0631\u0627 \u06a9\u0646\u062a\u0631\u0644 \u0645\u06cc \u06a9\u0646\u06cc\u062f \u062a\u0627 \u062a\u0648\u067e \u0631\u0627 \u0646\u06af\u0647 \u062f\u0627\u0631\u06cc\u062f&#8230;<\/div>\n<div class=\"kg-bookmark-metadata\"><span class=\"kg-bookmark-author\">jpromanonet<\/span><span class=\"kg-bookmark-publisher\">GitHub<\/span><\/div>\n<\/div>\n<div class=\"kg-bookmark-thumbnail\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2024\/01\/bouncing_ball_game.png\" width=\"1200\" height=\"600\" alt=\"\u067e\u0631\u0634_\u062a\u0648\u067e_\u0628\u0627\u0632\u06cc\" loading=\"lazy\" title=\"\"><\/div>\n<\/figure>\n<\/section>\n<p><br \/>\n<br \/>\u0645\u0646\u062a\u0634\u0631 \u0634\u062f\u0647 \u062f\u0631 1403-01-24 12:07:05<br \/>\n<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;16387&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628&quot;,&quot;legend&quot;:&quot;0\\\/5 (0 \u0631\u0627\u06cc)&quot;,&quot;size&quot;:&quot;30&quot;,&quot;title&quot;:&quot;\u0622\u0645\u0648\u0632\u0634 PyGame \u2013 \u0686\u06af\u0648\u0646\u0647 \u06cc\u06a9 \u0628\u0627\u0632\u06cc \u062a\u0648\u067e \u067e\u0631\u0646\u062f\u0647 \u0628\u0633\u0627\u0632\u06cc\u0645&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} ({count} \u0631\u0627\u06cc)&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 24px;\">\n            <span class=\"kksr-muted\">\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 10<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span>\u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u06cc\u0627\u062f \u062e\u0648\u0627\u0647\u06cc\u062f \u06af\u0631\u0641\u062a \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 PyGame \u06cc\u06a9 \u0628\u0627\u0632\u06cc \u062a\u0648\u067e \u067e\u0631\u0634 \u0633\u0627\u062f\u0647 \u0648 \u062f\u0631 \u0639\u06cc\u0646 \u062d\u0627\u0644 \u062e\u0646\u062f\u0647 \u062f\u0627\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0686\u0647 \u0645\u0628\u062a\u062f\u06cc \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u062f\u0631\u06a9 \u0627\u0635\u0648\u0644 \u062a\u0648\u0633\u0639\u0647 \u0628\u0627\u0632\u06cc \u0647\u0633\u062a\u06cc\u062f \u06cc\u0627 \u06cc\u06a9 \u0645\u0634\u062a\u0627\u0642 \u0628\u0647 \u06a9\u0634\u0641 \u0642\u0627\u0628\u0644\u06cc\u062a \u0647\u0627\u06cc PyGame\u060c \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0634\u0645\u0627 \u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a \u06cc\u06a9 \u0628\u0627\u0632\u06cc \u0633\u0627\u062f\u0647 \u0648 [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":16388,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1743],"tags":[3240,1958,1313,1844,1938,1916,2209,1924,4492,4491,1959,1822,2002,1745,1813],"class_list":["post-16387","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-pygame","tag-1958","tag-1313","tag-1844","tag-1938","tag-1916","tag-2209","tag-1924","tag-4492","tag-4491","tag-1959","tag-1822","tag-python","tag-1745","tag-1813"],"acf":[],"_links":{"self":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/16387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/comments?post=16387"}],"version-history":[{"count":0,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/16387\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media\/16388"}],"wp:attachment":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media?parent=16387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/categories?post=16387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/tags?post=16387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}