{"id":84733,"date":"2024-11-21T05:18:12","date_gmt":"2024-11-21T01:48:12","guid":{"rendered":"https:\/\/nabfollower.com\/blog\/menu-de-game-retro-com-godot4-3m91\/"},"modified":"2024-11-21T05:18:12","modified_gmt":"2024-11-21T01:48:12","slug":"menu-de-game-retro-com-godot4-3m91","status":"publish","type":"post","link":"https:\/\/nabfollower.com\/blog\/menu-de-game-retro-com-godot4-3m91\/","title":{"rendered":"\u0645\u0646\u0648\u06cc \u0628\u0627\u0632\u06cc Retro \u0628\u0627 Godot4"},"content":{"rendered":"<p>Summarize this content to 400 words in Persian Lang<br \/>\n              \u06af\u0648\u062f\u0648 \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0639\u0631\u0648\u0641 \u062a\u0631\u06cc\u0646 \u0645\u0648\u062a\u0648\u0631\u0647\u0627\u06cc \u0628\u0627\u0632\u06cc \u0645\u0627\u0646\u0646\u062f Unreal Engine \u0648 Unit \u0627\u0633\u062a. \u06af\u0648\u062f\u0648 \u0645\u0627\u0646\u0646\u062f \u0631\u0642\u0628\u0627\u06cc \u062e\u0648\u062f \u0627\u062c\u0627\u0632\u0647 \u0633\u0627\u062e\u062a \u0628\u0627\u0632\u06cc \u0647\u0627\u06cc \u062f\u0648 \u0628\u0639\u062f\u06cc \u0648 \u0633\u0647 \u0628\u0639\u062f\u06cc \u0631\u0627 \u0628\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0628\u0635\u0631\u06cc \u0645\u06cc \u062f\u0647\u062f. \u0648\u062c\u0647 \u062a\u0645\u0627\u06cc\u0632 \u0627\u0635\u0644\u06cc \u0622\u0646 \u0645\u0646\u0628\u0639 \u0628\u0627\u0632 \u0628\u0648\u062f\u0646 \u0622\u0646 \u0627\u0633\u062a. \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0627\u06cc\u0646\u060c \u0627\u06cc\u0646 \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f \u062a\u0627 \u0628\u0647 \u0632\u0628\u0627\u0646\u06cc \u0628\u0647 \u0646\u0627\u0645 Godot Script \u0628\u0646\u0648\u06cc\u0633\u062f \u06a9\u0647 \u0628\u0633\u06cc\u0627\u0631 \u0634\u0628\u06cc\u0647 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0627\u0633\u062a.<\/p>\n<p>\u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u06a9\u0648\u062a\u0627\u0647 \u0628\u0647 \u0633\u0631\u0639\u062a \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0642\u0633\u0645\u062a \u0645\u0646\u0648\u06cc \u06cc\u06a9 \u0628\u0627\u0632\u06cc \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0645\u0648\u062a\u0648\u0631 \u062f\u0631 \u062c\u062f\u06cc\u062f\u062a\u0631\u06cc\u0646 \u0646\u0633\u062e\u0647 \u0627\u0635\u0644\u06cc \u0622\u0646\u060c \u0646\u0633\u062e\u0647 4 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f. \u0645\u0646\u0648\u06cc \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0635\u0641\u062d\u0647 \u0627\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0628\u0627\u0632\u06cc\u06a9\u0646 \u0628\u0627 \u0634\u062e\u0635\u06cc\u062a \u062e\u0648\u062f \u0648\u0627\u0631\u062f \u0641\u0631\u0648\u0634\u06af\u0627\u0647 \u0645\u06cc \u0634\u0648\u062f \u062a\u0627 \u0622\u06cc\u062a\u0645 \u0647\u0627\u06cc\u06cc \u0628\u0627 \u0637\u0644\u0627 \u062e\u0631\u06cc\u062f\u0627\u0631\u06cc \u06a9\u0646\u062f. \u062f\u0631 \u0628\u0627\u0632\u06cc \u062c\u0645\u0639 \u0622\u0648\u0631\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a \u0647\u0645\u0647 \u06a9\u0633\u0627\u0646\u06cc \u06a9\u0647 \u062a\u0627 \u0628\u0647 \u062d\u0627\u0644 \u06cc\u06a9 JRPG \u0628\u0627\u0632\u06cc \u06a9\u0631\u062f\u0647 \u0627\u0646\u062f \u0628\u0627 \u0627\u06cc\u0646 \u0646\u0648\u0639 \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0622\u0634\u0646\u0627 \u0647\u0633\u062a\u0646\u062f.<\/p>\n<p>  \u0628\u0647 \u062f\u0633\u062a \u0622\u0648\u0631\u062f\u0646 \u062f\u0627\u0631\u0627\u06cc\u06cc<\/p>\n<p>\u062f\u0627\u0631\u0627\u06cc\u06cc \u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062f\u0631 \u0635\u062d\u0646\u0647 \u0628\u0633\u06cc\u0627\u0631 \u0627\u0628\u062a\u062f\u0627\u06cc\u06cc \u0647\u0633\u062a\u0646\u062f \u06a9\u0647 \u062a\u0648\u0633\u0637 \u0647\u0648\u0634 \u0645\u0635\u0646\u0648\u0639\u06cc \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0627\u0646\u062f.<\/p>\n<p>  \u0627\u06cc\u062c\u0627\u062f \u062f\u0631\u062e\u062a \u0635\u062d\u0646\u0647<\/p>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u067e\u0631\u0648\u0698\u0647 \u062c\u062f\u06cc\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0645\u0648\u062a\u0648\u0631\u060c \u0627\u0648\u0644\u06cc\u0646 \u0634\u06cc \u0631\u0627 \u062f\u0631 \u062f\u0631\u062e\u062a \u0635\u062d\u0646\u0647 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0645 \u06a9\u0647 \u06cc\u06a9 Node2D \u0627\u0633\u062a \u06a9\u0647 \u0622\u0646 \u0631\u0627 InGameShop \u0646\u0627\u0645\u06cc\u062f\u0645. \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u0627\u0635\u0644\u06cc \u0635\u062d\u0646\u0647 \u0627\u0633\u062a. \u06af\u0648\u062f\u0648 \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u0622\u0646 \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u0645\u0646\u0628\u0639 \u0642\u0627\u0628\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u062c\u062f\u062f \u0635\u0627\u062f\u0631 \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0628\u0647 \u0634\u0645\u0627 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0628\u0647 \u0633\u0627\u062f\u06af\u06cc \u0627\u06cc\u0646 \u06af\u0631\u0647 \u0631\u0627 \u06a9\u067e\u06cc \u06a9\u0631\u062f\u0647 \u0648 \u0622\u0646 \u0631\u0627 \u062f\u0631 \u06cc\u06a9 \u0635\u062d\u0646\u0647 \u067e\u06cc\u0686\u06cc\u062f\u0647 \u062a\u0631 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f.<\/p>\n<p>\u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0641\u0631\u0632\u0646\u062f \u06af\u0631\u0647 \u0631\u06cc\u0634\u0647\u060c \u06cc\u06a9 \u0634\u06cc \u0627\u0632 \u0646\u0648\u0639 &#8220;Sprite&#8221; \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0645\u0646\u0648 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/p>\n<p>\u0634\u06cc &#8220;Background&#8221; \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u0648 \u0628\u0627\u0641\u062a \u0622\u0646 \u0631\u0627 \u0628\u0647 \u062a\u0635\u0648\u06cc\u0631 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0627\u0632 \u0645\u062c\u0645\u0648\u0639\u0647 \u062f\u0627\u0631\u0627\u06cc\u06cc \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc \u062f\u0647\u06cc\u0645.<\/p>\n<p>\u0627\u0632 \u0622\u0646\u062c\u0627\u06cc\u06cc \u06a9\u0647 \u062a\u0635\u0648\u06cc\u0631 \u0645\u0642\u06cc\u0627\u0633 \u0645\u062a\u0641\u0627\u0648\u062a\u06cc \u0646\u0633\u0628\u062a \u0628\u0647 \u0635\u0641\u062d\u0647 \u062f\u0627\u0631\u062f (\u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u0645 \u0637\u0631\u062d \u06a9\u0644\u06cc \u0635\u0641\u062d\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0646\u0647\u0627\u06cc\u06cc \u0631\u0627 \u0628\u0647 \u0631\u0646\u06af \u0622\u0628\u06cc \u062f\u0631 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0628\u0628\u06cc\u0646\u06cc\u0645)\u060c \u0628\u06cc\u0627\u06cc\u06cc\u062f \u0627\u0646\u062f\u0627\u0632\u0647 \u0631\u0627 \u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0647\u06cc\u0645.\u0627\u0632 \u062a\u0635\u0648\u06cc\u0631 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0628\u0647 \u0637\u0648\u0631\u06cc \u06a9\u0647 \u0641\u0636\u0627\u06cc \u0628\u06cc\u0634\u062a\u0631\u06cc \u0646\u0633\u0628\u062a \u0628\u0647 \u0635\u0641\u062d\u0647 \u0627\u0634\u063a\u0627\u0644 \u0645\u06cc \u06a9\u0646\u062f. (\u0627\u06cc\u0646 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u062f\u0631 \u0648\u06cc\u0698\u06af\u06cc Transform >> Scale \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f).<\/p>\n<p>\u0647\u0646\u0648\u0632 \u062f\u0631 \u0648\u06cc\u0698\u06af\u06cc\u200c\u0647\u0627\u06cc \u062a\u0635\u0648\u06cc\u0631\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u0645 \u0631\u0646\u06af\u200c\u0647\u0627\u06cc \u062a\u0635\u0648\u06cc\u0631 \u0631\u0627 \u062a\u0639\u062f\u06cc\u0644 \u06a9\u0646\u06cc\u0645 \u062a\u0627 \u06a9\u0645\u062a\u0631 \u062c\u0644\u0628 \u062a\u0648\u062c\u0647 \u06a9\u0646\u062f\u060c \u0632\u06cc\u0631\u0627 \u067e\u0633\u200c\u0632\u0645\u06cc\u0646\u0647 \u0646\u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0645\u0627\u0646\u0639 \u0645\u0634\u0627\u0647\u062f\u0647 \u0622\u06cc\u062a\u0645\u200c\u0647\u0627\u06cc \u0645\u0646\u0648 \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0634\u0648\u062f. \u0627\u06af\u0631 \u062a\u0631\u062c\u06cc\u062d \u0645\u06cc \u062f\u0647\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0645\u0633\u062a\u0642\u06cc\u0645\u0627\u064b \u0631\u0648\u06cc \u062a\u0635\u0648\u06cc\u0631 \u0628\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631\u06cc \u0645\u0627\u0646\u0646\u062f Photoshop \u06cc\u0627 Gimp \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f.<\/p>\n<p>\u062d\u0627\u0644\u060c \u0628\u06cc\u0627\u06cc\u06cc\u062f \u062f\u0648 \u0634\u06cc \u062f\u06cc\u06af\u0631 \u062f\u0631 \u0632\u06cc\u0631 &#8220;InGameShop&#8221; \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645. \u0622\u0646\u0647\u0627 \u0627\u0632 \u0646\u0648\u0639 &#8220;Node2D&#8221; \u0647\u0633\u062a\u0646\u062f \u0648 \u0645\u0627 \u0622\u0646\u0647\u0627 \u0631\u0627 &#8220;MenuLeft&#8221; \u0648 &#8220;MenuRight&#8221; \u0645\u06cc \u0646\u0627\u0645\u06cc\u0645.<\/p>\n<p>\u062f\u0631 \u062f\u0627\u062e\u0644 &#8220;MenuLeft&#8221; \u0648 &#8220;MenuRight&#8221;\u060c \u0628\u0631\u0627\u06cc \u0647\u0631 \u06cc\u06a9 \u0627\u0632 \u0622\u0646\u0647\u0627\u060c \u06cc\u06a9 \u0634\u06cc \u0641\u0631\u0632\u0646\u062f \u0627\u0632 \u0646\u0648\u0639 &#8220;Sprite&#8221; \u0628\u0647 \u0646\u0627\u0645 &#8220;Background&#8221; \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u0645.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0647\u0631 \u06cc\u06a9 \u0627\u0632 \u0627\u0633\u067e\u0631\u0627\u06cc\u062a \u0647\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0642\u0628\u0644\u06cc\u060c \u062a\u0635\u0648\u06cc\u0631\u06cc \u06a9\u0647 \u06cc\u06a9 \u067e\u0646\u0644 \u0622\u0628\u06cc \u0627\u0633\u062a \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0628\u0627\u0641\u062a \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u067e\u0633 \u0627\u0632 \u0622\u0646\u060c \u0627\u0646\u062f\u0627\u0632\u0647 \u0622\u0646\u060c \u0627\u0646\u062f\u0627\u0632\u0647 \u0647\u0631 \u067e\u0646\u0644 \u0631\u0627 \u0628\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u0627\u0646\u062f\u0627\u0632\u0647 \u0627\u0633\u067e\u0631\u0627\u06cc\u062a \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u0627\u06cc\u0646 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0648\u06cc\u0698\u06af\u06cc transform \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f. \u0633\u067e\u0633\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0648\u06cc\u0698\u06af\u06cc position \u06cc\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0628\u0627\u0644\u0627\u06cc \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631\u060c \u0622\u0646\u0647\u0627 \u0631\u0627 \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc \u062f\u0647\u06cc\u0645.<\/p>\n<p>\u0627\u06af\u0631 \u067e\u0631\u0648\u0698\u0647 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u0645\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0645\u0627\u062f &#8220;play&#8221; \u062f\u0631 \u0628\u0627\u0644\u0627\u06cc \u0635\u0641\u062d\u0647\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0646\u0645\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0646\u0647\u0627\u06cc\u06cc \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u0645.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u067e\u0646\u0644 \u062f\u0631 \u0648\u0633\u0637 \u0628\u0627 \u0645\u0642\u062f\u0627\u0631 \u0633\u06a9\u0647\u060c \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0628\u0647 \u0647\u0645\u0627\u0646 \u0631\u0648\u0634\u06cc \u06a9\u0647 \u067e\u0627\u0646\u0644 \u0647\u0627\u06cc \u062f\u06cc\u06af\u0631 \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f\u06cc\u0645 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc \u062f\u0647\u06cc\u0645. \u0645\u0627 \u06cc\u06a9 &#8220;Node2D&#8221; \u062f\u0631 \u0632\u06cc\u0631 \u0634\u06cc root \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u0645\u060c \u0622\u0646 \u0631\u0627 \u0646\u0627\u0645 \u06af\u0630\u0627\u0631\u06cc \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u0648 \u06cc\u06a9 \u0634\u06cc &#8220;Sprite&#8221; \u0631\u0627 \u062f\u0631 \u062f\u0627\u062e\u0644 \u0622\u0646 \u0642\u0631\u0627\u0631 \u0645\u06cc \u062f\u0647\u06cc\u0645. \u0645\u0646 \u0627\u0633\u0645\u0634 \u0631\u0627 \u06af\u0630\u0627\u0634\u062a\u0645 &#8220;CoinPanel&#8221;<\/p>\n<p>\u0645\u0646 \u06cc\u06a9 \u0634\u06cc \u0627\u0632 \u0646\u0648\u0639 &#8220;Label&#8221; \u0631\u0627 \u062f\u0631 \u062f\u0627\u062e\u0644 &#8220;CoinPanel&#8221; \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0645\u060c \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0627\u0632 \u0646\u0627\u0645 \u0622\u0646 \u067e\u06cc\u062f\u0627\u0633\u062a\u060c \u0627\u06cc\u0646 \u0634\u06cc \u0645\u062a\u0646 \u0631\u0627 \u062f\u0631\u062c \u0645\u06cc \u06a9\u0646\u062f. \u062f\u0631 \u0648\u06cc\u0698\u06af\u06cc &#8220;text&#8221; \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062a\u0646 \u0627\u0648\u0644\u06cc\u0647\u060c \u0645\u0642\u062f\u0627\u0631 &#8220;0000&#8221; \u062f\u0631\u062c \u0634\u062f. \u0628\u0631\u0627\u06cc \u06a9\u0646\u062a\u0631\u0644 \u0627\u0646\u062f\u0627\u0632\u0647 \u0648 \u0645\u0648\u0642\u0639\u06cc\u062a \u0622\u0646\u060c \u0645\u0648\u0642\u0639\u06cc\u062a \u0648 \u0645\u0642\u06cc\u0627\u0633 \u0631\u0627 \u0645\u0627\u0646\u0646\u062f \u0627\u0634\u06cc\u0627\u0621 &#8220;Sprite&#8221; \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f.<\/p>\n<p>\u06cc\u06a9 \u0627\u0633\u067e\u0631\u0627\u06cc\u062a \u062f\u06cc\u06af\u0631 \u062f\u0631 &#8220;CoinPanel&#8221; \u0627\u0636\u0627\u0641\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \u0627\u06cc\u0646 \u0627\u0633\u067e\u0631\u0627\u06cc\u062a \u0628\u0647 \u0646\u0645\u0627\u062f \u0633\u06a9\u0647 \u062f\u0631 \u0633\u0645\u062a \u0686\u067e\u060c \u062f\u0631 \u0634\u0645\u0627\u0631\u0646\u062f\u0647 \u0633\u06a9\u0647 \u06a9\u0648\u0686\u06a9 \u0627\u0634\u0627\u0631\u0647 \u062f\u0627\u0631\u062f. \u0627\u0646\u062f\u0627\u0632\u0647 \u0648 \u0645\u0648\u0642\u0639\u06cc\u062a \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0647\u0645\u0627\u0646 \u062e\u0648\u0627\u0635 \u0630\u06a9\u0631 \u0634\u062f\u0647 \u062f\u0631 \u0628\u0627\u0644\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f.<\/p>\n<p>\u062f\u0648 \u0634\u06cc &#8220;Labels&#8221; \u062f\u06cc\u06af\u0631 \u0628\u0627\u06cc\u062f \u0627\u06cc\u062c\u0627\u062f \u0634\u0648\u062f\u060c \u06cc\u06a9\u06cc \u062f\u0631 &#8220;MenuLeft&#8221; \u0648 \u062f\u06cc\u06af\u0631\u06cc \u062f\u0631 &#8220;MenuRight&#8221;. \u0622\u0646\u0647\u0627 \u06cc\u06a9 \u0645\u0648\u0631\u062f \u0631\u0627 \u062f\u0631 \u06cc\u06a9 \u067e\u0627\u0646\u0644 \u0646\u0634\u0627\u0646 \u062e\u0648\u0627\u0647\u0646\u062f \u062f\u0627\u062f. \u0627\u0646\u062f\u0627\u0632\u0647 \u0627\u06cc\u0646 \u0645\u0648\u0627\u0631\u062f \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u0647 \u0648 \u062f\u0631 \u0627\u0648\u0644\u06cc\u0646 \u062e\u0637 \u0645\u0648\u0627\u0631\u062f \u062f\u0631 \u0647\u0631 \u067e\u0627\u0646\u0644 \u062f\u0631\u062c \u0645\u06cc \u0634\u0648\u062f. \u0627\u06cc\u0646 \u0628\u0631\u0686\u0633\u0628 \u0647\u0627 \u0642\u0628\u0644 \u0627\u0632 \u0634\u0631\u0648\u0639 \u0635\u062d\u0646\u0647\u060c \u062f\u06cc\u062f \u062e\u0648\u062f \u0631\u0627 \u0627\u0632 \u062f\u0633\u062a \u062e\u0648\u0627\u0647\u0646\u062f \u062f\u0627\u062f. \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0627\u06cc\u0646 \u0645\u0648\u0627\u0631\u062f \u0631\u0627 \u0634\u0628\u06cc\u0647 \u0633\u0627\u0632\u06cc \u0645\u06cc \u06a9\u0646\u062f \u062a\u0627 \u0644\u06cc\u0633\u062a \u0648\u0627\u0642\u0639\u06cc \u0622\u06cc\u062a\u0645 \u0647\u0627 \u0631\u0627 \u062f\u0631 \u0635\u062d\u0646\u0647 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0647\u062f.<\/p>\n<p>\u062d\u0628\u0627\u0628 \u067e\u06cc\u0627\u0645 \u0641\u0631\u0648\u0634\u0646\u062f\u0647 \u0628\u0627 \u062f\u0631\u062c \u06cc\u06a9 &#8220;Node2D&#8221; \u062f\u06cc\u06af\u0631 \u062f\u0631 \u062f\u0627\u062e\u0644 \u0634\u06cc \u0631\u06cc\u0634\u0647 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u0634\u0648\u062f. \u0645\u0646 \u0627\u06cc\u0646 \u06af\u0631\u0647 \u0631\u0627 &#8220;SalesmanDialog&#8221; \u0646\u0627\u0645\u06cc\u062f\u0645. \u0627\u06cc\u0646 \u06af\u0631\u0647 \u062f\u0627\u0631\u0627\u06cc \u06cc\u06a9 Sprite \u0648 \u06cc\u06a9 Label \u062f\u0631 \u062f\u0627\u062e\u0644 \u0622\u0646 \u0627\u0633\u062a. Sprite \u062a\u0635\u0648\u06cc\u0631 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0627\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0645\u0646 \u0628\u0631\u0627\u06cc \u062a\u0635\u0648\u06cc\u0631 \u062d\u0628\u0627\u0628 \u06af\u0641\u062a\u0627\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0645. Label \u0628\u0631 \u0631\u0648\u06cc \u0628\u0627\u0644\u0648\u0646 \u0645\u062a\u0645\u0631\u06a9\u0632 \u0634\u062f\u0647 \u0648 \u0631\u0646\u06af \u0622\u0646 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0648\u06cc\u0698\u06af\u06cc Material >> New Canvas item >> \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0645\u0648\u0631\u062f \u0628\u0648\u0645 \u0648 \u062a\u063a\u06cc\u06cc\u0631 \u062d\u0627\u0644\u062a Blend \u0628\u0647 &#8220;Subtract&#8221; \u0628\u0647 \u0631\u0646\u06af \u062a\u06cc\u0631\u0647 \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<p>\u0648\u0642\u062a\u06cc \u062f\u0648\u0628\u0627\u0631\u0647 \u067e\u0631\u0648\u0698\u0647 \u0631\u0627 \u0627\u062c\u0631\u0627 \u0645\u06cc \u06a9\u0646\u06cc\u0645\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0628\u0628\u06cc\u0646\u06cc\u0645 \u06a9\u0647 \u0628\u0627\u0644\u0648\u0646 \u0686\u06af\u0648\u0646\u0647 \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0642\u0631\u0627\u0631 \u06af\u0631\u0641\u062a\u0647 \u0627\u0633\u062a.<\/p>\n<p>\u062f\u0631 \u062f\u0627\u0631\u0627\u06cc\u06cc \u0647\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u062f\u0647\u060c \u06cc\u06a9 png \u0627\u0632 \u06cc\u06a9 \u067e\u0627\u0646\u0644 \u0633\u0641\u06cc\u062f \u0628\u0627 \u06a9\u062f\u0648\u0631\u062a \u062a\u0635\u0648\u06cc\u0631 \u062f\u0631 \u0646\u0635\u0641 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f. \u0627\u06cc\u0646 \u0628\u062f\u0627\u0646 \u0645\u0639\u0646\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0627\u06cc\u0646 \u067e\u0627\u0646\u0644 \u0628\u0627 \u0633\u0627\u06cc\u0631 \u0639\u0646\u0627\u0635\u0631 \u067e\u0634\u062a \u062e\u0648\u062f \u0647\u0645\u067e\u0648\u0634\u0627\u0646\u06cc \u0646\u062e\u0648\u0627\u0647\u062f \u062f\u0627\u0634\u062a. \u062f\u0631 \u0639\u0648\u0636\u060c \u0645\u0627\u0646\u0646\u062f \u0646\u0648\u0631 (\u0628\u0631\u0627\u06cc \u0631\u0646\u06af\u200c\u0647\u0627\u06cc \u0631\u0648\u0634\u0646) \u06cc\u0627 \u0633\u0627\u06cc\u0647 (\u0628\u0631\u0627\u06cc \u0631\u0646\u06af\u200c\u0647\u0627\u06cc \u062a\u06cc\u0631\u0647) \u0631\u0641\u062a\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u06cc\u06a9 \u0634\u06cc Sprite \u0628\u0627 \u0628\u0627\u0641\u062a \u0627\u06cc\u0646 \u067e\u0627\u0646\u0644 \u062f\u0631 &#8220;MenuRight&#8221; \u062f\u0631\u062c \u0634\u062f \u06a9\u0647 \u0631\u0648\u06cc \u0645\u0648\u0631\u062f \u0627\u0648\u0644 \u0647\u0645\u067e\u0648\u0634\u0627\u0646\u06cc \u062f\u0627\u0631\u062f.<\/p>\n<p>\u067e\u0633 \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645 \u0645\u0648\u0642\u0639\u06cc\u062a\u060c \u062d\u0628\u0627\u0628 \u06af\u0641\u062a\u0627\u0631 \u0641\u0631\u0648\u0634\u0646\u062f\u0647 \u0628\u0627\u06cc\u062f \u0648\u06cc\u0698\u06af\u06cc &#8220;\u0645\u0631\u0626\u06cc&#8221; \u0622\u0646 \u0628\u0647 false \u062a\u063a\u06cc\u06cc\u0631 \u06a9\u0646\u062f. \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0645\u0627\u062f &#8220;\u0686\u0634\u0645&#8221; \u062f\u0631 \u0645\u0646\u0648\u06cc \u0633\u0645\u062a \u0686\u067e \u06cc\u0627 \u0628\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u062e\u0648\u062f \u0634\u06cc \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f.<\/p>\n<p>\u0628\u0631\u0686\u0633\u0628\u200c\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0647\u0631 \u0645\u0648\u0631\u062f \u062f\u0631 \u0633\u0645\u062a \u0686\u067e \u06cc\u0627 \u0631\u0627\u0633\u062a \u062a\u06a9\u0631\u0627\u0631 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f\u060c \u062f\u06cc\u062f\u0634\u0627\u0646 \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f \u062a\u0627 \u0646\u0627\u0645\u0631\u0626\u06cc \u0628\u0627\u0634\u0646\u062f. \u0646\u0645\u0627\u062f &#8220;\u0686\u0634\u0645&#8221; \u062f\u0631 \u067e\u0627\u0646\u0644 \u0633\u0645\u062a \u0686\u067e \u0648 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0648\u06cc\u0698\u06af\u06cc \u0642\u0627\u0628\u0644 \u0645\u0634\u0627\u0647\u062f\u0647 \u062f\u0631 \u067e\u0627\u0646\u0644 \u0633\u0645\u062a \u0631\u0627\u0633\u062a \u0642\u0627\u0628\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p>\u06cc\u06a9 \u06af\u0648\u062f\u0648 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0628\u0627 \u06a9\u0644\u06cc\u06a9 \u0631\u0627\u0633\u062a \u0631\u0648\u06cc \u0622\u0646 \u0628\u0647 \u06af\u0631\u0647 \u0627\u0635\u0644\u06cc \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc \u0634\u0648\u062f. \u0641\u06cc\u0644\u0645\u0646\u0627\u0645\u0647 \u0627\u06cc \u06a9\u0647 \u0631\u0641\u062a\u0627\u0631 \u0635\u062d\u0646\u0647 \u0631\u0627 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u06cc\u0632\u06cc \u0645\u06cc \u06a9\u0646\u062f \u062f\u0631 \u0632\u06cc\u0631 \u0622\u0645\u062f\u0647 \u0627\u0633\u062a. \u06a9\u0627\u0645\u0646\u062a \u06af\u0630\u0627\u0631\u06cc \u0634\u062f\u0647 \u0648 \u0628\u0627 \u0646\u0627\u0645 \u0647\u0627\u06cc \u0645\u062a\u063a\u06cc\u0631 \u0628\u0647 \u062e\u0648\u0628\u06cc \u062a\u0648\u0635\u06cc\u0641 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0627\u0632 \u0627\u06cc\u0646 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u06cc\u0627 \u0686\u06cc\u0632\u06cc \u0645\u0634\u0627\u0628\u0647 \u062f\u0631 \u067e\u0631\u0648\u0698\u0647\u200c\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f\u060c \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc\u200c\u06a9\u0646\u0645 \u0641\u0647\u0631\u0633\u062a\u200c\u0647\u0627 \u0648 \u067e\u06cc\u0627\u0645\u200c\u0647\u0627 \u0631\u0627 \u062f\u0631 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a\u200c\u0647\u0627\u06cc \u062c\u062f\u0627\u06af\u0627\u0646\u0647 \u0627\u0633\u062a\u062e\u0631\u0627\u062c \u06a9\u0646\u06cc\u062f.<\/p>\n<p>extends Node2D<\/p>\n<p># Max amount of itens on panel, without scrolling<br \/>\nconst max_amount_vertically = 8<\/p>\n<p># Store itens available enum<br \/>\nenum Adquirance {<br \/>\n    MUSHROOM,<br \/>\n    MUSHROOM_5x,<br \/>\n    RING,<br \/>\n    RING_10x,<br \/>\n    GREEN_MUSHROOM,<br \/>\n    GREEN_MUSHROOM_5x,<br \/>\n    GREEN_MUSHROOM_10x,<br \/>\n    GREEN_MUSHROOM_20x,<br \/>\n    LEAF,<br \/>\n    LEAF_5x,<br \/>\n    LEAF_10x,<br \/>\n}<\/p>\n<p>var adquirances = []\nvar menu_left_items = []\nvar menu_right_items = []\nvar menu_left_scroll_top = 0<br \/>\nvar menu_right_scroll_top = 0<br \/>\nvar selectedItemIndex = 0<br \/>\nvar focusInitialPosition = 0<br \/>\nvar game_state = null<br \/>\nvar coin_available = 800<br \/>\nvar coin_transfering = 0<br \/>\nvar salesman_talking = 0<\/p>\n<p># Store itens available on this store<br \/>\nvar salesman_store = [<br \/>\n    Adquirance.MUSHROOM,<br \/>\n    Adquirance.MUSHROOM_5x,<br \/>\n    Adquirance.RING,<br \/>\n    Adquirance.RING_10x,<br \/>\n    Adquirance.GREEN_MUSHROOM,<br \/>\n    Adquirance.GREEN_MUSHROOM_5x,<br \/>\n    Adquirance.GREEN_MUSHROOM_10x,<br \/>\n    Adquirance.GREEN_MUSHROOM_20x,<br \/>\n    Adquirance.LEAF,<br \/>\n    Adquirance.LEAF_5x,<br \/>\n    Adquirance.LEAF_10x,<br \/>\n]\n<p># Internationalization messages<br \/>\nvar i18n_messages = {<br \/>\n    &#8216;MUSHROOM&#8217;: &#8216;Mushroom&#8217;,<br \/>\n    &#8216;MUSHROOM_5x&#8217;: &#8216;Mushroom 5x&#8217;,<br \/>\n    &#8216;RING&#8217;: &#8216;Ring&#8217;,<br \/>\n    &#8216;RING_10x&#8217;: &#8216;Ring 10x&#8217;,<br \/>\n    &#8216;GREEN_MUSHROOM&#8217;: &#8216;Green Mushroom&#8217;,<br \/>\n    &#8216;GREEN_MUSHROOM_5x&#8217;: &#8216;Green Mushroom 5x&#8217;,<br \/>\n    &#8216;GREEN_MUSHROOM_10x&#8217;: &#8216;Green Mushroom 10x&#8217;,<br \/>\n    &#8216;GREEN_MUSHROOM_20x&#8217;: &#8216;Green Mushroom 20x&#8217;,<br \/>\n    &#8216;LEAF&#8217;: &#8216;Leaf&#8217;,<br \/>\n    &#8216;LEAF_5x&#8217;: &#8216;Leaf 5x&#8217;,<br \/>\n    &#8216;LEAF_10x&#8217;: &#8216;Leaf 10x&#8217;,<br \/>\n    &#8216;THX&#8217;: &#8216;Thanks!&#8217;,<br \/>\n    &#8216;NOT_ENOUGHT_COINS&#8217;: &#8216;Not enough coins.&#8217;<br \/>\n}<\/p>\n<p># price mapping<br \/>\nvar price_table = [<br \/>\n    {<br \/>\n        &#8216;item&#8217;: Adquirance.MUSHROOM,<br \/>\n        &#8216;price&#8217;: 30<br \/>\n    },<br \/>\n    {<br \/>\n        &#8216;item&#8217;: Adquirance.MUSHROOM_5x,<br \/>\n        &#8216;price&#8217;: 70<br \/>\n    },<br \/>\n    {<br \/>\n        &#8216;item&#8217;: Adquirance.RING,<br \/>\n        &#8216;price&#8217;: 90<br \/>\n    },<br \/>\n    {<br \/>\n        &#8216;item&#8217;: Adquirance.RING_10x,<br \/>\n        &#8216;price&#8217;: 140<br \/>\n    },<br \/>\n    {<br \/>\n        &#8216;item&#8217;: Adquirance.GREEN_MUSHROOM,<br \/>\n        &#8216;price&#8217;: 60<br \/>\n    },<br \/>\n    {<br \/>\n        &#8216;item&#8217;: Adquirance.GREEN_MUSHROOM_5x,<br \/>\n        &#8216;price&#8217;: 90<br \/>\n    },<br \/>\n    {<br \/>\n        &#8216;item&#8217;: Adquirance.GREEN_MUSHROOM_10x,<br \/>\n        &#8216;price&#8217;: 120<br \/>\n    },<br \/>\n    {<br \/>\n        &#8216;item&#8217;: Adquirance.GREEN_MUSHROOM_20x,<br \/>\n        &#8216;price&#8217;: 120<br \/>\n    },<br \/>\n    {<br \/>\n        &#8216;item&#8217;: Adquirance.LEAF,<br \/>\n        &#8216;price&#8217;: 50<br \/>\n    },<br \/>\n    {<br \/>\n        &#8216;item&#8217;: Adquirance.LEAF_5x,<br \/>\n        &#8216;price&#8217;: 200<br \/>\n    },<br \/>\n]\n<p># Called when the node enters the scene tree for the first time.<br \/>\nfunc _ready():<br \/>\n    rearrange_store()<br \/>\n    focusInitialPosition = $MenuRight\/Selection.position.y<br \/>\n    pass<\/p>\n<p># Called every frame. &#8216;delta&#8217; is the elapsed time since the previous frame.<br \/>\nfunc _physics_process(delta):<br \/>\n    if coin_transfering &gt; 0:<br \/>\n        coin_available -= 1<br \/>\n        coin_transfering -= 1<br \/>\n        $CoinPanel\/Label.text = str(coin_available)<br \/>\n    else:<br \/>\n        if Input.is_action_just_released(&#8220;ui_down&#8221;):<br \/>\n            selectedItemIndex += 1<br \/>\n            # $PopAudio.play()<br \/>\n        if Input.is_action_just_released(&#8220;ui_up&#8221;):<br \/>\n            selectedItemIndex -= 1<br \/>\n            # $PopAudio.play()<br \/>\n        if Input.is_action_just_released(&#8220;ui_accept&#8221;):<br \/>\n            buy_item(salesman_store[selectedItemIndex + menu_right_scroll_top])<br \/>\n            # $PopAudio.play()<br \/>\n    if selectedItemIndex &lt; 0:<br \/>\n        selectedItemIndex = 0<br \/>\n        if menu_right_scroll_top &gt; 0:<br \/>\n            menu_left_scroll_top -= 1<br \/>\n            do_menu_right_scroll_up()<br \/>\n    if selectedItemIndex &gt; salesman_store.size():<br \/>\n        selectedItemIndex = salesman_store.size()<br \/>\n    if (selectedItemIndex + menu_right_scroll_top) &gt; (salesman_store.size()-1):<br \/>\n        selectedItemIndex -= 1<br \/>\n    if selectedItemIndex &gt; (max_amount_vertically-1):<br \/>\n        do_menu_right_scroll_down()<br \/>\n        selectedItemIndex = (max_amount_vertically-1)<br \/>\n    $MenuRight\/Selection.position.y = focusInitialPosition + (selectedItemIndex * 35)<br \/>\n    if salesman_talking &gt; 0:<br \/>\n        salesman_talking -= 1<br \/>\n        if salesman_talking == 0:<br \/>\n            $SalesmanDialog.visible = false<br \/>\n    pass<\/p>\n<p>func do_menu_right_scroll_down():<br \/>\n    menu_right_scroll_top += 1<br \/>\n    rearrange_store()<\/p>\n<p>func do_menu_right_scroll_up():<br \/>\n    menu_right_scroll_top -= 1<br \/>\n    rearrange_store()<\/p>\n<p>func get_item_name(item):<br \/>\n    match item:<br \/>\n        &#8216;mushroom&#8217;:<br \/>\n            return i18n_messages[&#8216;MUSHROOM&#8217;]\n        &#8216;ring&#8217;:<br \/>\n            return i18n_messages[&#8216;RING&#8217;]\n        &#8216;green_mushroom&#8217;:<br \/>\n            return i18n_messages[&#8216;GREEN_MUSHROOM&#8217;]\n        &#8216;leaf&#8217;:<br \/>\n            return i18n_messages[&#8216;LEAF&#8217;]\n        Adquirance.MUSHROOM:<br \/>\n            return i18n_messages[&#8216;MUSHROOM&#8217;]\n        Adquirance.MUSHROOM_5x:<br \/>\n            return i18n_messages[&#8216;MUSHROOM_5x&#8217;]\n        Adquirance.RING:<br \/>\n            return i18n_messages[&#8216;RING&#8217;]\n        Adquirance.RING_10x:<br \/>\n            return i18n_messages[&#8216;RING_10x&#8217;]\n        Adquirance.GREEN_MUSHROOM:<br \/>\n            return i18n_messages[&#8216;GREEN_MUSHROOM&#8217;]\n        Adquirance.GREEN_MUSHROOM_5x:<br \/>\n            return i18n_messages[&#8216;GREEN_MUSHROOM_5x&#8217;]\n        Adquirance.GREEN_MUSHROOM_10x:<br \/>\n            return i18n_messages[&#8216;GREEN_MUSHROOM_10x&#8217;]\n        Adquirance.GREEN_MUSHROOM_20x:<br \/>\n            return i18n_messages[&#8216;GREEN_MUSHROOM_20x&#8217;]\n        Adquirance.LEAF:<br \/>\n            return i18n_messages[&#8216;LEAF&#8217;]\n        Adquirance.LEAF_5x:<br \/>\n            return i18n_messages[&#8216;LEAF_5x&#8217;]\n        Adquirance.LEAF_10x:<br \/>\n            return i18n_messages[&#8216;LEAF_10x&#8217;]\n    return &#8220;&#8221;<\/p>\n<p>func get_product_price(item):<br \/>\n    for price_table_item in price_table:<br \/>\n        if price_table_item[&#8216;item&#8217;] == item:<br \/>\n            return price_table_item[&#8216;price&#8217;]\n    return 0 <\/p>\n<p>func rearrange_store():<br \/>\n    $CoinPanel\/Label.text = str(coin_available)<br \/>\n    var amount = 0<br \/>\n    for item in menu_right_items:<br \/>\n        $MenuRight.remove_child(item[&#8216;node&#8217;])<br \/>\n    for item in menu_left_items:<br \/>\n        $MenuLeft.remove_child(item[&#8216;node&#8217;])<br \/>\n    menu_right_items = []\n    var scrolling = menu_right_scroll_top<br \/>\n    for item in salesman_store:<br \/>\n        if scrolling &gt; 0:<br \/>\n            scrolling -= 1<br \/>\n            continue<br \/>\n        var item_node = $MenuRight\/Item.duplicate()<br \/>\n        var in_list_item = {<br \/>\n            &#8216;kind&#8217;: item,<br \/>\n            &#8216;node&#8217;: item_node<br \/>\n        }<br \/>\n        menu_right_items.push_back(in_list_item)<br \/>\n        if amount &lt; max_amount_vertically:<br \/>\n            $MenuRight.add_child(item_node)<br \/>\n            item_node.position.y += 35 * amount<br \/>\n            item_node.set_visible(true)<br \/>\n            item_node.text = get_item_name(item) + &#8221; $&#8221; + str(get_product_price(item))<br \/>\n        amount += 1<br \/>\n        if amount == max_amount_vertically:<br \/>\n            var more_indicator = $MenuRight\/Item.duplicate()<br \/>\n            more_indicator.text = &#8220;&#8230;&#8221;<br \/>\n            more_indicator.set_visible(true)<br \/>\n            more_indicator.position.y += 35 * amount<br \/>\n            $MenuRight.add_child(more_indicator)<br \/>\n    amount = 0<br \/>\n    for adquirance in adquirances:<br \/>\n        var item_node = $MenuLeft\/Item.duplicate()<br \/>\n        item_node.visible = true<br \/>\n        item_node.position.y += 35 * amount<br \/>\n        item_node.text = get_item_name(adquirance.type) + &#8221; x&#8221; + str(adquirance.amount)<br \/>\n        var in_list_item = {<br \/>\n            &#8216;kind&#8217;: adquirance.type,<br \/>\n            &#8216;amount&#8217;: adquirance.amount,<br \/>\n            &#8216;node&#8217;: item_node<br \/>\n        }<br \/>\n        menu_left_items.push_back(in_list_item)<br \/>\n        $MenuLeft.add_child(item_node)<br \/>\n        amount += 1<\/p>\n<p>func buy_item(item):<br \/>\n    var price = get_product_price(item)<br \/>\n    if coin_available &lt; price:<br \/>\n        salesman_talks(i18n_messages[&#8216;NOT_ENOUGHT_COINS&#8217;])<br \/>\n        return; # TODO more coins needed<br \/>\n    coin_transfering = price<br \/>\n    salesman_talks(i18n_messages[&#8216;THX&#8217;])<br \/>\n    match item:<br \/>\n        Adquirance.MUSHROOM:<br \/>\n            add_item_to_bag(&#8216;mushroom&#8217;, 1)<br \/>\n            return;<br \/>\n        Adquirance.MUSHROOM_5x:<br \/>\n            add_item_to_bag(&#8216;mushroom&#8217;, 5)<br \/>\n            return;<br \/>\n        Adquirance.RING:<br \/>\n            add_item_to_bag(&#8216;ring&#8217;, 1)<br \/>\n            return;<br \/>\n        Adquirance.RING_10x:<br \/>\n            add_item_to_bag(&#8216;ring&#8217;, 10)<br \/>\n            return;<br \/>\n        Adquirance.GREEN_MUSHROOM:<br \/>\n            add_item_to_bag(&#8216;green_mushroom&#8217;, 1)<br \/>\n            return;<br \/>\n        Adquirance.GREEN_MUSHROOM_5x:<br \/>\n            add_item_to_bag(&#8216;green_mushroom&#8217;, 5)<br \/>\n            return;<br \/>\n        Adquirance.GREEN_MUSHROOM_10x:<br \/>\n            add_item_to_bag(&#8216;green_mushroom&#8217;, 10)<br \/>\n            return;<br \/>\n        Adquirance.GREEN_MUSHROOM_20x:<br \/>\n            add_item_to_bag(&#8216;green_mushroom&#8217;, 20)<br \/>\n            return;<br \/>\n        Adquirance.LEAF:<br \/>\n            add_item_to_bag(&#8216;leaf&#8217;, 1)<br \/>\n            return;<br \/>\n        Adquirance.LEAF_5x:<br \/>\n            add_item_to_bag(&#8216;leaf&#8217;, 5)<br \/>\n            return;<br \/>\n        Adquirance.LEAF_10x:<br \/>\n            add_item_to_bag(&#8216;leaf&#8217;, 10)<br \/>\n            return;<\/p>\n<p>func add_item_to_bag(type, amount):<br \/>\n    for adquired in adquirances:<br \/>\n        if adquired.type == type:<br \/>\n            adquired.amount += amount<br \/>\n            rearrange_store()<br \/>\n            return;<br \/>\n    adquirances.push_back({ &#8216;type&#8217;: type, &#8216;amount&#8217;: amount })<br \/>\n    rearrange_store()<\/p>\n<p>func salesman_talks(message):<br \/>\n    $SalesmanDialog\/Label.text = message<br \/>\n    $SalesmanDialog.visible = true<br \/>\n    salesman_talking = 200<\/p>\n<p>    \u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/p>\n<p>    \u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/p>\n<p>\u06cc\u06a9 \u0645\u062e\u0632\u0646 \u0628\u0627 \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u062f\u0631 \u0622\u062f\u0631\u0633 \u0632\u06cc\u0631 \u067e\u06cc\u062f\u0627 \u06a9\u0631\u062f: https:\/\/github.com\/misabitencourt\/in-game-shop<\/p>\n<div data-article-id=\"2114423\" id=\"article-body\">\n<p>\u06af\u0648\u062f\u0648 \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0639\u0631\u0648\u0641 \u062a\u0631\u06cc\u0646 \u0645\u0648\u062a\u0648\u0631\u0647\u0627\u06cc \u0628\u0627\u0632\u06cc \u0645\u0627\u0646\u0646\u062f Unreal Engine \u0648 Unit \u0627\u0633\u062a. \u06af\u0648\u062f\u0648 \u0645\u0627\u0646\u0646\u062f \u0631\u0642\u0628\u0627\u06cc \u062e\u0648\u062f \u0627\u062c\u0627\u0632\u0647 \u0633\u0627\u062e\u062a \u0628\u0627\u0632\u06cc \u0647\u0627\u06cc \u062f\u0648 \u0628\u0639\u062f\u06cc \u0648 \u0633\u0647 \u0628\u0639\u062f\u06cc \u0631\u0627 \u0628\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0628\u0635\u0631\u06cc \u0645\u06cc \u062f\u0647\u062f. \u0648\u062c\u0647 \u062a\u0645\u0627\u06cc\u0632 \u0627\u0635\u0644\u06cc \u0622\u0646 \u0645\u0646\u0628\u0639 \u0628\u0627\u0632 \u0628\u0648\u062f\u0646 \u0622\u0646 \u0627\u0633\u062a. \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0627\u06cc\u0646\u060c \u0627\u06cc\u0646 \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f \u062a\u0627 \u0628\u0647 \u0632\u0628\u0627\u0646\u06cc \u0628\u0647 \u0646\u0627\u0645 Godot Script \u0628\u0646\u0648\u06cc\u0633\u062f \u06a9\u0647 \u0628\u0633\u06cc\u0627\u0631 \u0634\u0628\u06cc\u0647 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0627\u0633\u062a.<\/p>\n<p>\u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u06a9\u0648\u062a\u0627\u0647 \u0628\u0647 \u0633\u0631\u0639\u062a \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0642\u0633\u0645\u062a \u0645\u0646\u0648\u06cc \u06cc\u06a9 \u0628\u0627\u0632\u06cc \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0645\u0648\u062a\u0648\u0631 \u062f\u0631 \u062c\u062f\u06cc\u062f\u062a\u0631\u06cc\u0646 \u0646\u0633\u062e\u0647 \u0627\u0635\u0644\u06cc \u0622\u0646\u060c \u0646\u0633\u062e\u0647 4 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f. \u0645\u0646\u0648\u06cc \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0635\u0641\u062d\u0647 \u0627\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0628\u0627\u0632\u06cc\u06a9\u0646 \u0628\u0627 \u0634\u062e\u0635\u06cc\u062a \u062e\u0648\u062f \u0648\u0627\u0631\u062f \u0641\u0631\u0648\u0634\u06af\u0627\u0647 \u0645\u06cc \u0634\u0648\u062f \u062a\u0627 \u0622\u06cc\u062a\u0645 \u0647\u0627\u06cc\u06cc \u0628\u0627 \u0637\u0644\u0627 \u062e\u0631\u06cc\u062f\u0627\u0631\u06cc \u06a9\u0646\u062f. \u062f\u0631 \u0628\u0627\u0632\u06cc \u062c\u0645\u0639 \u0622\u0648\u0631\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a \u0647\u0645\u0647 \u06a9\u0633\u0627\u0646\u06cc \u06a9\u0647 \u062a\u0627 \u0628\u0647 \u062d\u0627\u0644 \u06cc\u06a9 JRPG \u0628\u0627\u0632\u06cc \u06a9\u0631\u062f\u0647 \u0627\u0646\u062f \u0628\u0627 \u0627\u06cc\u0646 \u0646\u0648\u0639 \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 \u0622\u0634\u0646\u0627 \u0647\u0633\u062a\u0646\u062f.<\/p>\n<p><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter-rtl ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0641\u0647\u0631\u0633\u062a \u0645\u0637\u0627\u0644\u0628<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"\u062a\u063a\u06cc\u06cc\u0631 \u0648\u0636\u0639\u06cc\u062a \u0641\u0647\u0631\u0633\u062a \u0645\u0637\u0627\u0644\u0628\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<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:\/\/nabfollower.com\/blog\/menu-de-game-retro-com-godot4-3m91\/#%D8%A8%D9%87_%D8%AF%D8%B3%D8%AA_%D8%A2%D9%88%D8%B1%D8%AF%D9%86_%D8%AF%D8%A7%D8%B1%D8%A7%DB%8C%DB%8C\" >\u0628\u0647 \u062f\u0633\u062a \u0622\u0648\u0631\u062f\u0646 \u062f\u0627\u0631\u0627\u06cc\u06cc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/nabfollower.com\/blog\/menu-de-game-retro-com-godot4-3m91\/#%D8%A7%DB%8C%D8%AC%D8%A7%D8%AF_%D8%AF%D8%B1%D8%AE%D8%AA_%D8%B5%D8%AD%D9%86%D9%87\" >\u0627\u06cc\u062c\u0627\u062f \u062f\u0631\u062e\u062a \u0635\u062d\u0646\u0647<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%D8%A8%D9%87_%D8%AF%D8%B3%D8%AA_%D8%A2%D9%88%D8%B1%D8%AF%D9%86_%D8%AF%D8%A7%D8%B1%D8%A7%DB%8C%DB%8C\"><\/span>\n<p>  \u0628\u0647 \u062f\u0633\u062a \u0622\u0648\u0631\u062f\u0646 \u062f\u0627\u0631\u0627\u06cc\u06cc<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u062f\u0627\u0631\u0627\u06cc\u06cc \u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062f\u0631 \u0635\u062d\u0646\u0647 \u0628\u0633\u06cc\u0627\u0631 \u0627\u0628\u062a\u062f\u0627\u06cc\u06cc \u0647\u0633\u062a\u0646\u062f \u06a9\u0647 \u062a\u0648\u0633\u0637 \u0647\u0648\u0634 \u0645\u0635\u0646\u0648\u0639\u06cc \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0627\u0646\u062f.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj16cu2ac6pztpzi5hxy4.png\" alt=\"\u062f\u0627\u0631\u0627\u06cc\u06cc \u0647\u0627\" loading=\"lazy\" width=\"800\" height=\"218\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%D8%A7%DB%8C%D8%AC%D8%A7%D8%AF_%D8%AF%D8%B1%D8%AE%D8%AA_%D8%B5%D8%AD%D9%86%D9%87\"><\/span>\n<p>  \u0627\u06cc\u062c\u0627\u062f \u062f\u0631\u062e\u062a \u0635\u062d\u0646\u0647<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u067e\u0631\u0648\u0698\u0647 \u062c\u062f\u06cc\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0645\u0648\u062a\u0648\u0631\u060c \u0627\u0648\u0644\u06cc\u0646 \u0634\u06cc \u0631\u0627 \u062f\u0631 \u062f\u0631\u062e\u062a \u0635\u062d\u0646\u0647 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0645 \u06a9\u0647 \u06cc\u06a9 Node2D \u0627\u0633\u062a \u06a9\u0647 \u0622\u0646 \u0631\u0627 InGameShop \u0646\u0627\u0645\u06cc\u062f\u0645. \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u0627\u0635\u0644\u06cc \u0635\u062d\u0646\u0647 \u0627\u0633\u062a. \u06af\u0648\u062f\u0648 \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u0622\u0646 \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u0645\u0646\u0628\u0639 \u0642\u0627\u0628\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u062c\u062f\u062f \u0635\u0627\u062f\u0631 \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0628\u0647 \u0634\u0645\u0627 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0628\u0647 \u0633\u0627\u062f\u06af\u06cc \u0627\u06cc\u0646 \u06af\u0631\u0647 \u0631\u0627 \u06a9\u067e\u06cc \u06a9\u0631\u062f\u0647 \u0648 \u0622\u0646 \u0631\u0627 \u062f\u0631 \u06cc\u06a9 \u0635\u062d\u0646\u0647 \u067e\u06cc\u0686\u06cc\u062f\u0647 \u062a\u0631 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f.<\/p>\n<p>\u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0641\u0631\u0632\u0646\u062f \u06af\u0631\u0647 \u0631\u06cc\u0634\u0647\u060c \u06cc\u06a9 \u0634\u06cc \u0627\u0632 \u0646\u0648\u0639 &#8220;Sprite&#8221; \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0645\u0646\u0648 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftdyo93n2x0ee5oyf4efm.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 1\" loading=\"lazy\" width=\"800\" height=\"394\" title=\"\"><\/p>\n<p>\u0634\u06cc &#8220;Background&#8221; \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u0648 \u0628\u0627\u0641\u062a \u0622\u0646 \u0631\u0627 \u0628\u0647 \u062a\u0635\u0648\u06cc\u0631 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0627\u0632 \u0645\u062c\u0645\u0648\u0639\u0647 \u062f\u0627\u0631\u0627\u06cc\u06cc \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc \u062f\u0647\u06cc\u0645.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyzh767if458we85xmoi3.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 2\" loading=\"lazy\" width=\"800\" height=\"315\" title=\"\"><\/p>\n<p>\u0627\u0632 \u0622\u0646\u062c\u0627\u06cc\u06cc \u06a9\u0647 \u062a\u0635\u0648\u06cc\u0631 \u0645\u0642\u06cc\u0627\u0633 \u0645\u062a\u0641\u0627\u0648\u062a\u06cc \u0646\u0633\u0628\u062a \u0628\u0647 \u0635\u0641\u062d\u0647 \u062f\u0627\u0631\u062f (\u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u0645 \u0637\u0631\u062d \u06a9\u0644\u06cc \u0635\u0641\u062d\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0646\u0647\u0627\u06cc\u06cc \u0631\u0627 \u0628\u0647 \u0631\u0646\u06af \u0622\u0628\u06cc \u062f\u0631 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0628\u0628\u06cc\u0646\u06cc\u0645)\u060c \u0628\u06cc\u0627\u06cc\u06cc\u062f \u0627\u0646\u062f\u0627\u0632\u0647 \u0631\u0627 \u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0647\u06cc\u0645.<br \/>\u0627\u0632 \u062a\u0635\u0648\u06cc\u0631 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0628\u0647 \u0637\u0648\u0631\u06cc \u06a9\u0647 \u0641\u0636\u0627\u06cc \u0628\u06cc\u0634\u062a\u0631\u06cc \u0646\u0633\u0628\u062a \u0628\u0647 \u0635\u0641\u062d\u0647 \u0627\u0634\u063a\u0627\u0644 \u0645\u06cc \u06a9\u0646\u062f. (\u0627\u06cc\u0646 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u062f\u0631 \u0648\u06cc\u0698\u06af\u06cc Transform >> Scale \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f).<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4v2lg20rdlp4gkxz5qed.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 3\" loading=\"lazy\" width=\"800\" height=\"269\" title=\"\"><\/p>\n<p>\u0647\u0646\u0648\u0632 \u062f\u0631 \u0648\u06cc\u0698\u06af\u06cc\u200c\u0647\u0627\u06cc \u062a\u0635\u0648\u06cc\u0631\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u0645 \u0631\u0646\u06af\u200c\u0647\u0627\u06cc \u062a\u0635\u0648\u06cc\u0631 \u0631\u0627 \u062a\u0639\u062f\u06cc\u0644 \u06a9\u0646\u06cc\u0645 \u062a\u0627 \u06a9\u0645\u062a\u0631 \u062c\u0644\u0628 \u062a\u0648\u062c\u0647 \u06a9\u0646\u062f\u060c \u0632\u06cc\u0631\u0627 \u067e\u0633\u200c\u0632\u0645\u06cc\u0646\u0647 \u0646\u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0645\u0627\u0646\u0639 \u0645\u0634\u0627\u0647\u062f\u0647 \u0622\u06cc\u062a\u0645\u200c\u0647\u0627\u06cc \u0645\u0646\u0648 \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0634\u0648\u062f. \u0627\u06af\u0631 \u062a\u0631\u062c\u06cc\u062d \u0645\u06cc \u062f\u0647\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0645\u0633\u062a\u0642\u06cc\u0645\u0627\u064b \u0631\u0648\u06cc \u062a\u0635\u0648\u06cc\u0631 \u0628\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631\u06cc \u0645\u0627\u0646\u0646\u062f Photoshop \u06cc\u0627 Gimp \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6ikq6qys1xszd7bve8wm.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 4\" loading=\"lazy\" width=\"800\" height=\"282\" title=\"\"><\/p>\n<p>\u062d\u0627\u0644\u060c \u0628\u06cc\u0627\u06cc\u06cc\u062f \u062f\u0648 \u0634\u06cc \u062f\u06cc\u06af\u0631 \u062f\u0631 \u0632\u06cc\u0631 &#8220;InGameShop&#8221; \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645. \u0622\u0646\u0647\u0627 \u0627\u0632 \u0646\u0648\u0639 &#8220;Node2D&#8221; \u0647\u0633\u062a\u0646\u062f \u0648 \u0645\u0627 \u0622\u0646\u0647\u0627 \u0631\u0627 &#8220;MenuLeft&#8221; \u0648 &#8220;MenuRight&#8221; \u0645\u06cc \u0646\u0627\u0645\u06cc\u0645.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgthmabdk767bb3sc3gmc.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 5\" loading=\"lazy\" width=\"800\" height=\"450\" title=\"\"><\/p>\n<p>\u062f\u0631 \u062f\u0627\u062e\u0644 &#8220;MenuLeft&#8221; \u0648 &#8220;MenuRight&#8221;\u060c \u0628\u0631\u0627\u06cc \u0647\u0631 \u06cc\u06a9 \u0627\u0632 \u0622\u0646\u0647\u0627\u060c \u06cc\u06a9 \u0634\u06cc \u0641\u0631\u0632\u0646\u062f \u0627\u0632 \u0646\u0648\u0639 &#8220;Sprite&#8221; \u0628\u0647 \u0646\u0627\u0645 &#8220;Background&#8221; \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u0645.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7a2rk2sxstz63e6gnxk9.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 6\" loading=\"lazy\" width=\"800\" height=\"376\" title=\"\"><br \/><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqodd663o1pw8c200j7yq.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 7\" loading=\"lazy\" width=\"800\" height=\"566\" title=\"\"><\/p>\n<p>\u0628\u0631\u0627\u06cc \u0647\u0631 \u06cc\u06a9 \u0627\u0632 \u0627\u0633\u067e\u0631\u0627\u06cc\u062a \u0647\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0642\u0628\u0644\u06cc\u060c \u062a\u0635\u0648\u06cc\u0631\u06cc \u06a9\u0647 \u06cc\u06a9 \u067e\u0646\u0644 \u0622\u0628\u06cc \u0627\u0633\u062a \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0628\u0627\u0641\u062a \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u067e\u0633 \u0627\u0632 \u0622\u0646\u060c \u0627\u0646\u062f\u0627\u0632\u0647 \u0622\u0646\u060c \u0627\u0646\u062f\u0627\u0632\u0647 \u0647\u0631 \u067e\u0646\u0644 \u0631\u0627 \u0628\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u0627\u0646\u062f\u0627\u0632\u0647 \u0627\u0633\u067e\u0631\u0627\u06cc\u062a \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u0627\u06cc\u0646 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0648\u06cc\u0698\u06af\u06cc transform \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f. \u0633\u067e\u0633\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0648\u06cc\u0698\u06af\u06cc position \u06cc\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0628\u0627\u0644\u0627\u06cc \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631\u060c \u0622\u0646\u0647\u0627 \u0631\u0627 \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc \u062f\u0647\u06cc\u0645.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1uxpo9xtqvnv5ysinq0t.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 8\" loading=\"lazy\" width=\"800\" height=\"558\" title=\"\"><br \/><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffldtlizgpke8u61rskyl.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 9\" loading=\"lazy\" width=\"800\" height=\"466\" title=\"\"><br \/><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcb4aj6jd2wwiinz025ug.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 10\" loading=\"lazy\" width=\"800\" height=\"582\" title=\"\"><br \/><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm38i2q9rfbvniq66tzbg.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 11\" loading=\"lazy\" width=\"800\" height=\"575\" title=\"\"><\/p>\n<p>\u0627\u06af\u0631 \u067e\u0631\u0648\u0698\u0647 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u0645\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0645\u0627\u062f &#8220;play&#8221; \u062f\u0631 \u0628\u0627\u0644\u0627\u06cc \u0635\u0641\u062d\u0647\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0646\u0645\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0646\u0647\u0627\u06cc\u06cc \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u0645.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6qrqkm0vef7wkfgsj9nn.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 12\" loading=\"lazy\" width=\"800\" height=\"419\" title=\"\"><\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u067e\u0646\u0644 \u062f\u0631 \u0648\u0633\u0637 \u0628\u0627 \u0645\u0642\u062f\u0627\u0631 \u0633\u06a9\u0647\u060c \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0628\u0647 \u0647\u0645\u0627\u0646 \u0631\u0648\u0634\u06cc \u06a9\u0647 \u067e\u0627\u0646\u0644 \u0647\u0627\u06cc \u062f\u06cc\u06af\u0631 \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f\u06cc\u0645 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc \u062f\u0647\u06cc\u0645. \u0645\u0627 \u06cc\u06a9 &#8220;Node2D&#8221; \u062f\u0631 \u0632\u06cc\u0631 \u0634\u06cc root \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u0645\u060c \u0622\u0646 \u0631\u0627 \u0646\u0627\u0645 \u06af\u0630\u0627\u0631\u06cc \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u0648 \u06cc\u06a9 \u0634\u06cc &#8220;Sprite&#8221; \u0631\u0627 \u062f\u0631 \u062f\u0627\u062e\u0644 \u0622\u0646 \u0642\u0631\u0627\u0631 \u0645\u06cc \u062f\u0647\u06cc\u0645. \u0645\u0646 \u0627\u0633\u0645\u0634 \u0631\u0627 \u06af\u0630\u0627\u0634\u062a\u0645 &#8220;CoinPanel&#8221;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flawkjt2gtedpam1ue08y.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 13\" loading=\"lazy\" width=\"800\" height=\"256\" title=\"\"><br \/><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbgypptgbzdwdevfr52um.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 14\" loading=\"lazy\" width=\"800\" height=\"280\" title=\"\"><br \/><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiimtuc5p63bos0zvdlc2.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 15\" loading=\"lazy\" width=\"800\" height=\"563\" title=\"\"><\/p>\n<p>\u0645\u0646 \u06cc\u06a9 \u0634\u06cc \u0627\u0632 \u0646\u0648\u0639 &#8220;Label&#8221; \u0631\u0627 \u062f\u0631 \u062f\u0627\u062e\u0644 &#8220;CoinPanel&#8221; \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0645\u060c \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0627\u0632 \u0646\u0627\u0645 \u0622\u0646 \u067e\u06cc\u062f\u0627\u0633\u062a\u060c \u0627\u06cc\u0646 \u0634\u06cc \u0645\u062a\u0646 \u0631\u0627 \u062f\u0631\u062c \u0645\u06cc \u06a9\u0646\u062f. \u062f\u0631 \u0648\u06cc\u0698\u06af\u06cc &#8220;text&#8221; \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062a\u0646 \u0627\u0648\u0644\u06cc\u0647\u060c \u0645\u0642\u062f\u0627\u0631 &#8220;0000&#8221; \u062f\u0631\u062c \u0634\u062f. \u0628\u0631\u0627\u06cc \u06a9\u0646\u062a\u0631\u0644 \u0627\u0646\u062f\u0627\u0632\u0647 \u0648 \u0645\u0648\u0642\u0639\u06cc\u062a \u0622\u0646\u060c \u0645\u0648\u0642\u0639\u06cc\u062a \u0648 \u0645\u0642\u06cc\u0627\u0633 \u0631\u0627 \u0645\u0627\u0646\u0646\u062f \u0627\u0634\u06cc\u0627\u0621 &#8220;Sprite&#8221; \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg2864du7to8kns0pzhsp.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 16\" loading=\"lazy\" width=\"800\" height=\"411\" title=\"\"><br \/><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx1ou197ipwvpxsobi43d.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 17\" loading=\"lazy\" width=\"800\" height=\"407\" title=\"\"><br \/><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F88y84gl4cq6pmop103v3.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 18\" loading=\"lazy\" width=\"800\" height=\"441\" title=\"\"><\/p>\n<p>\u06cc\u06a9 \u0627\u0633\u067e\u0631\u0627\u06cc\u062a \u062f\u06cc\u06af\u0631 \u062f\u0631 &#8220;CoinPanel&#8221; \u0627\u0636\u0627\u0641\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \u0627\u06cc\u0646 \u0627\u0633\u067e\u0631\u0627\u06cc\u062a \u0628\u0647 \u0646\u0645\u0627\u062f \u0633\u06a9\u0647 \u062f\u0631 \u0633\u0645\u062a \u0686\u067e\u060c \u062f\u0631 \u0634\u0645\u0627\u0631\u0646\u062f\u0647 \u0633\u06a9\u0647 \u06a9\u0648\u0686\u06a9 \u0627\u0634\u0627\u0631\u0647 \u062f\u0627\u0631\u062f. \u0627\u0646\u062f\u0627\u0632\u0647 \u0648 \u0645\u0648\u0642\u0639\u06cc\u062a \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0647\u0645\u0627\u0646 \u062e\u0648\u0627\u0635 \u0630\u06a9\u0631 \u0634\u062f\u0647 \u062f\u0631 \u0628\u0627\u0644\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F35dqxd7mds22qn55oak4.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 19\" loading=\"lazy\" width=\"800\" height=\"297\" title=\"\"><\/p>\n<p>\u062f\u0648 \u0634\u06cc &#8220;Labels&#8221; \u062f\u06cc\u06af\u0631 \u0628\u0627\u06cc\u062f \u0627\u06cc\u062c\u0627\u062f \u0634\u0648\u062f\u060c \u06cc\u06a9\u06cc \u062f\u0631 &#8220;MenuLeft&#8221; \u0648 \u062f\u06cc\u06af\u0631\u06cc \u062f\u0631 &#8220;MenuRight&#8221;. \u0622\u0646\u0647\u0627 \u06cc\u06a9 \u0645\u0648\u0631\u062f \u0631\u0627 \u062f\u0631 \u06cc\u06a9 \u067e\u0627\u0646\u0644 \u0646\u0634\u0627\u0646 \u062e\u0648\u0627\u0647\u0646\u062f \u062f\u0627\u062f. \u0627\u0646\u062f\u0627\u0632\u0647 \u0627\u06cc\u0646 \u0645\u0648\u0627\u0631\u062f \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u0647 \u0648 \u062f\u0631 \u0627\u0648\u0644\u06cc\u0646 \u062e\u0637 \u0645\u0648\u0627\u0631\u062f \u062f\u0631 \u0647\u0631 \u067e\u0627\u0646\u0644 \u062f\u0631\u062c \u0645\u06cc \u0634\u0648\u062f. \u0627\u06cc\u0646 \u0628\u0631\u0686\u0633\u0628 \u0647\u0627 \u0642\u0628\u0644 \u0627\u0632 \u0634\u0631\u0648\u0639 \u0635\u062d\u0646\u0647\u060c \u062f\u06cc\u062f \u062e\u0648\u062f \u0631\u0627 \u0627\u0632 \u062f\u0633\u062a \u062e\u0648\u0627\u0647\u0646\u062f \u062f\u0627\u062f. \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0627\u06cc\u0646 \u0645\u0648\u0627\u0631\u062f \u0631\u0627 \u0634\u0628\u06cc\u0647 \u0633\u0627\u0632\u06cc \u0645\u06cc \u06a9\u0646\u062f \u062a\u0627 \u0644\u06cc\u0633\u062a \u0648\u0627\u0642\u0639\u06cc \u0622\u06cc\u062a\u0645 \u0647\u0627 \u0631\u0627 \u062f\u0631 \u0635\u062d\u0646\u0647 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0647\u062f.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2zgrpcukowztgllao9nz.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 20\" loading=\"lazy\" width=\"800\" height=\"334\" title=\"\"><br \/><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9hpzo2o6mh3udgmj71o9.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 21\" loading=\"lazy\" width=\"800\" height=\"377\" title=\"\"><\/p>\n<p>\u062d\u0628\u0627\u0628 \u067e\u06cc\u0627\u0645 \u0641\u0631\u0648\u0634\u0646\u062f\u0647 \u0628\u0627 \u062f\u0631\u062c \u06cc\u06a9 &#8220;Node2D&#8221; \u062f\u06cc\u06af\u0631 \u062f\u0631 \u062f\u0627\u062e\u0644 \u0634\u06cc \u0631\u06cc\u0634\u0647 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u0634\u0648\u062f. \u0645\u0646 \u0627\u06cc\u0646 \u06af\u0631\u0647 \u0631\u0627 &#8220;SalesmanDialog&#8221; \u0646\u0627\u0645\u06cc\u062f\u0645. \u0627\u06cc\u0646 \u06af\u0631\u0647 \u062f\u0627\u0631\u0627\u06cc \u06cc\u06a9 Sprite \u0648 \u06cc\u06a9 Label \u062f\u0631 \u062f\u0627\u062e\u0644 \u0622\u0646 \u0627\u0633\u062a. Sprite \u062a\u0635\u0648\u06cc\u0631 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0627\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0645\u0646 \u0628\u0631\u0627\u06cc \u062a\u0635\u0648\u06cc\u0631 \u062d\u0628\u0627\u0628 \u06af\u0641\u062a\u0627\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0645. Label \u0628\u0631 \u0631\u0648\u06cc \u0628\u0627\u0644\u0648\u0646 \u0645\u062a\u0645\u0631\u06a9\u0632 \u0634\u062f\u0647 \u0648 \u0631\u0646\u06af \u0622\u0646 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0648\u06cc\u0698\u06af\u06cc Material >> New Canvas item >> \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0645\u0648\u0631\u062f \u0628\u0648\u0645 \u0648 \u062a\u063a\u06cc\u06cc\u0631 \u062d\u0627\u0644\u062a Blend \u0628\u0647 &#8220;Subtract&#8221; \u0628\u0647 \u0631\u0646\u06af \u062a\u06cc\u0631\u0647 \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faetyh89cptfyl68kpoj5.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 22\" loading=\"lazy\" width=\"800\" height=\"289\" title=\"\"><\/p>\n<p>\u0648\u0642\u062a\u06cc \u062f\u0648\u0628\u0627\u0631\u0647 \u067e\u0631\u0648\u0698\u0647 \u0631\u0627 \u0627\u062c\u0631\u0627 \u0645\u06cc \u06a9\u0646\u06cc\u0645\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0628\u0628\u06cc\u0646\u06cc\u0645 \u06a9\u0647 \u0628\u0627\u0644\u0648\u0646 \u0686\u06af\u0648\u0646\u0647 \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u0642\u0631\u0627\u0631 \u06af\u0631\u0641\u062a\u0647 \u0627\u0633\u062a.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F70j4a95c6ttk92lvf0wl.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 23\" loading=\"lazy\" width=\"800\" height=\"456\" title=\"\"><\/p>\n<p>\u062f\u0631 \u062f\u0627\u0631\u0627\u06cc\u06cc \u0647\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u062f\u0647\u060c \u06cc\u06a9 png \u0627\u0632 \u06cc\u06a9 \u067e\u0627\u0646\u0644 \u0633\u0641\u06cc\u062f \u0628\u0627 \u06a9\u062f\u0648\u0631\u062a \u062a\u0635\u0648\u06cc\u0631 \u062f\u0631 \u0646\u0635\u0641 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f. \u0627\u06cc\u0646 \u0628\u062f\u0627\u0646 \u0645\u0639\u0646\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0627\u06cc\u0646 \u067e\u0627\u0646\u0644 \u0628\u0627 \u0633\u0627\u06cc\u0631 \u0639\u0646\u0627\u0635\u0631 \u067e\u0634\u062a \u062e\u0648\u062f \u0647\u0645\u067e\u0648\u0634\u0627\u0646\u06cc \u0646\u062e\u0648\u0627\u0647\u062f \u062f\u0627\u0634\u062a. \u062f\u0631 \u0639\u0648\u0636\u060c \u0645\u0627\u0646\u0646\u062f \u0646\u0648\u0631 (\u0628\u0631\u0627\u06cc \u0631\u0646\u06af\u200c\u0647\u0627\u06cc \u0631\u0648\u0634\u0646) \u06cc\u0627 \u0633\u0627\u06cc\u0647 (\u0628\u0631\u0627\u06cc \u0631\u0646\u06af\u200c\u0647\u0627\u06cc \u062a\u06cc\u0631\u0647) \u0631\u0641\u062a\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u06cc\u06a9 \u0634\u06cc Sprite \u0628\u0627 \u0628\u0627\u0641\u062a \u0627\u06cc\u0646 \u067e\u0627\u0646\u0644 \u062f\u0631 &#8220;MenuRight&#8221; \u062f\u0631\u062c \u0634\u062f \u06a9\u0647 \u0631\u0648\u06cc \u0645\u0648\u0631\u062f \u0627\u0648\u0644 \u0647\u0645\u067e\u0648\u0634\u0627\u0646\u06cc \u062f\u0627\u0631\u062f.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F25t9igea1dfuudsuez11.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 24\" loading=\"lazy\" width=\"800\" height=\"441\" title=\"\"><\/p>\n<p>\u067e\u0633 \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645 \u0645\u0648\u0642\u0639\u06cc\u062a\u060c \u062d\u0628\u0627\u0628 \u06af\u0641\u062a\u0627\u0631 \u0641\u0631\u0648\u0634\u0646\u062f\u0647 \u0628\u0627\u06cc\u062f \u0648\u06cc\u0698\u06af\u06cc &#8220;\u0645\u0631\u0626\u06cc&#8221; \u0622\u0646 \u0628\u0647 false \u062a\u063a\u06cc\u06cc\u0631 \u06a9\u0646\u062f. \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0645\u0627\u062f &#8220;\u0686\u0634\u0645&#8221; \u062f\u0631 \u0645\u0646\u0648\u06cc \u0633\u0645\u062a \u0686\u067e \u06cc\u0627 \u0628\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u062e\u0648\u062f \u0634\u06cc \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv7p12u2852mktmglduwd.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 25\" loading=\"lazy\" width=\"800\" height=\"294\" title=\"\"><\/p>\n<p>\u0628\u0631\u0686\u0633\u0628\u200c\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0647\u0631 \u0645\u0648\u0631\u062f \u062f\u0631 \u0633\u0645\u062a \u0686\u067e \u06cc\u0627 \u0631\u0627\u0633\u062a \u062a\u06a9\u0631\u0627\u0631 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f\u060c \u062f\u06cc\u062f\u0634\u0627\u0646 \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f \u062a\u0627 \u0646\u0627\u0645\u0631\u0626\u06cc \u0628\u0627\u0634\u0646\u062f. \u0646\u0645\u0627\u062f &#8220;\u0686\u0634\u0645&#8221; \u062f\u0631 \u067e\u0627\u0646\u0644 \u0633\u0645\u062a \u0686\u067e \u0648 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0648\u06cc\u0698\u06af\u06cc \u0642\u0627\u0628\u0644 \u0645\u0634\u0627\u0647\u062f\u0647 \u062f\u0631 \u067e\u0627\u0646\u0644 \u0633\u0645\u062a \u0631\u0627\u0633\u062a \u0642\u0627\u0628\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftzl9qs0ep23dy4b6lrhq.jpg\" alt=\"\u0645\u0631\u062d\u0644\u0647 26\" loading=\"lazy\" width=\"800\" height=\"442\" title=\"\"><\/p>\n<p>\u06cc\u06a9 \u06af\u0648\u062f\u0648 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0628\u0627 \u06a9\u0644\u06cc\u06a9 \u0631\u0627\u0633\u062a \u0631\u0648\u06cc \u0622\u0646 \u0628\u0647 \u06af\u0631\u0647 \u0627\u0635\u0644\u06cc \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc \u0634\u0648\u062f. \u0641\u06cc\u0644\u0645\u0646\u0627\u0645\u0647 \u0627\u06cc \u06a9\u0647 \u0631\u0641\u062a\u0627\u0631 \u0635\u062d\u0646\u0647 \u0631\u0627 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u06cc\u0632\u06cc \u0645\u06cc \u06a9\u0646\u062f \u062f\u0631 \u0632\u06cc\u0631 \u0622\u0645\u062f\u0647 \u0627\u0633\u062a. \u06a9\u0627\u0645\u0646\u062a \u06af\u0630\u0627\u0631\u06cc \u0634\u062f\u0647 \u0648 \u0628\u0627 \u0646\u0627\u0645 \u0647\u0627\u06cc \u0645\u062a\u063a\u06cc\u0631 \u0628\u0647 \u062e\u0648\u0628\u06cc \u062a\u0648\u0635\u06cc\u0641 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0627\u0632 \u0627\u06cc\u0646 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u06cc\u0627 \u0686\u06cc\u0632\u06cc \u0645\u0634\u0627\u0628\u0647 \u062f\u0631 \u067e\u0631\u0648\u0698\u0647\u200c\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f\u060c \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc\u200c\u06a9\u0646\u0645 \u0641\u0647\u0631\u0633\u062a\u200c\u0647\u0627 \u0648 \u067e\u06cc\u0627\u0645\u200c\u0647\u0627 \u0631\u0627 \u062f\u0631 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a\u200c\u0647\u0627\u06cc \u062c\u062f\u0627\u06af\u0627\u0646\u0647 \u0627\u0633\u062a\u062e\u0631\u0627\u062c \u06a9\u0646\u06cc\u062f.<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>extends Node2D\n\n# Max amount of itens on panel, without scrolling\nconst max_amount_vertically = 8\n\n# Store itens available enum\nenum Adquirance {\n    MUSHROOM,\n    MUSHROOM_5x,\n    RING,\n    RING_10x,\n    GREEN_MUSHROOM,\n    GREEN_MUSHROOM_5x,\n    GREEN_MUSHROOM_10x,\n    GREEN_MUSHROOM_20x,\n    LEAF,\n    LEAF_5x,\n    LEAF_10x,\n}\n\nvar adquirances = []\nvar menu_left_items = []\nvar menu_right_items = []\nvar menu_left_scroll_top = 0\nvar menu_right_scroll_top = 0\nvar selectedItemIndex = 0\nvar focusInitialPosition = 0\nvar game_state = null\nvar coin_available = 800\nvar coin_transfering = 0\nvar salesman_talking = 0\n\n# Store itens available on this store\nvar salesman_store = [\n    Adquirance.MUSHROOM,\n    Adquirance.MUSHROOM_5x,\n    Adquirance.RING,\n    Adquirance.RING_10x,\n    Adquirance.GREEN_MUSHROOM,\n    Adquirance.GREEN_MUSHROOM_5x,\n    Adquirance.GREEN_MUSHROOM_10x,\n    Adquirance.GREEN_MUSHROOM_20x,\n    Adquirance.LEAF,\n    Adquirance.LEAF_5x,\n    Adquirance.LEAF_10x,\n]\n\n# Internationalization messages\nvar i18n_messages = {\n    'MUSHROOM': 'Mushroom',\n    'MUSHROOM_5x': 'Mushroom 5x',\n    'RING': 'Ring',\n    'RING_10x': 'Ring 10x',\n    'GREEN_MUSHROOM': 'Green Mushroom',\n    'GREEN_MUSHROOM_5x': 'Green Mushroom 5x',\n    'GREEN_MUSHROOM_10x': 'Green Mushroom 10x',\n    'GREEN_MUSHROOM_20x': 'Green Mushroom 20x',\n    'LEAF': 'Leaf',\n    'LEAF_5x': 'Leaf 5x',\n    'LEAF_10x': 'Leaf 10x',\n    'THX': 'Thanks!',\n    'NOT_ENOUGHT_COINS': 'Not enough coins.'\n}\n\n# price mapping\nvar price_table = [\n    {\n        'item': Adquirance.MUSHROOM,\n        'price': 30\n    },\n    {\n        'item': Adquirance.MUSHROOM_5x,\n        'price': 70\n    },\n    {\n        'item': Adquirance.RING,\n        'price': 90\n    },\n    {\n        'item': Adquirance.RING_10x,\n        'price': 140\n    },\n    {\n        'item': Adquirance.GREEN_MUSHROOM,\n        'price': 60\n    },\n    {\n        'item': Adquirance.GREEN_MUSHROOM_5x,\n        'price': 90\n    },\n    {\n        'item': Adquirance.GREEN_MUSHROOM_10x,\n        'price': 120\n    },\n    {\n        'item': Adquirance.GREEN_MUSHROOM_20x,\n        'price': 120\n    },  \n    {\n        'item': Adquirance.LEAF,\n        'price': 50\n    },\n    {\n        'item': Adquirance.LEAF_5x,\n        'price': 200\n    },\n]\n\n# Called when the node enters the scene tree for the first time.\nfunc _ready():\n    rearrange_store()\n    focusInitialPosition = $MenuRight\/Selection.position.y\n    pass\n\n# Called every frame. 'delta' is the elapsed time since the previous frame.\nfunc _physics_process(delta):\n    if coin_transfering &gt; 0:\n        coin_available -= 1\n        coin_transfering -= 1\n        $CoinPanel\/Label.text = str(coin_available)\n    else:\n        if Input.is_action_just_released(\"ui_down\"):\n            selectedItemIndex += 1\n            # $PopAudio.play()\n        if Input.is_action_just_released(\"ui_up\"):\n            selectedItemIndex -= 1\n            # $PopAudio.play()\n        if Input.is_action_just_released(\"ui_accept\"):          \n            buy_item(salesman_store[selectedItemIndex + menu_right_scroll_top])\n            # $PopAudio.play()\n    if selectedItemIndex &lt; 0:\n        selectedItemIndex = 0\n        if menu_right_scroll_top &gt; 0:\n            menu_left_scroll_top -= 1\n            do_menu_right_scroll_up()\n    if selectedItemIndex &gt; salesman_store.size():\n        selectedItemIndex = salesman_store.size()\n    if (selectedItemIndex + menu_right_scroll_top) &gt; (salesman_store.size()-1):\n        selectedItemIndex -= 1\n    if selectedItemIndex &gt; (max_amount_vertically-1):\n        do_menu_right_scroll_down()\n        selectedItemIndex = (max_amount_vertically-1)\n    $MenuRight\/Selection.position.y = focusInitialPosition + (selectedItemIndex * 35)\n    if salesman_talking &gt; 0:\n        salesman_talking -= 1\n        if salesman_talking == 0:\n            $SalesmanDialog.visible = false\n    pass\n\n\nfunc do_menu_right_scroll_down():\n    menu_right_scroll_top += 1\n    rearrange_store()\n\n\nfunc do_menu_right_scroll_up():\n    menu_right_scroll_top -= 1\n    rearrange_store()\n\n\nfunc get_item_name(item):\n    match item:\n        'mushroom':\n            return i18n_messages['MUSHROOM']\n        'ring':\n            return i18n_messages['RING']\n        'green_mushroom':\n            return i18n_messages['GREEN_MUSHROOM']\n        'leaf':\n            return i18n_messages['LEAF']\n        Adquirance.MUSHROOM:\n            return i18n_messages['MUSHROOM']\n        Adquirance.MUSHROOM_5x:\n            return i18n_messages['MUSHROOM_5x']\n        Adquirance.RING:\n            return i18n_messages['RING']\n        Adquirance.RING_10x:\n            return i18n_messages['RING_10x']\n        Adquirance.GREEN_MUSHROOM:\n            return i18n_messages['GREEN_MUSHROOM']\n        Adquirance.GREEN_MUSHROOM_5x:\n            return i18n_messages['GREEN_MUSHROOM_5x']\n        Adquirance.GREEN_MUSHROOM_10x:\n            return i18n_messages['GREEN_MUSHROOM_10x']\n        Adquirance.GREEN_MUSHROOM_20x:\n            return i18n_messages['GREEN_MUSHROOM_20x']\n        Adquirance.LEAF:\n            return i18n_messages['LEAF']\n        Adquirance.LEAF_5x:\n            return i18n_messages['LEAF_5x']\n        Adquirance.LEAF_10x:\n            return i18n_messages['LEAF_10x']\n    return \"\"\n\n\nfunc get_product_price(item):\n    for price_table_item in price_table:\n        if price_table_item['item'] == item:\n            return price_table_item['price']\n    return 0 \n\n\nfunc rearrange_store():\n    $CoinPanel\/Label.text = str(coin_available)\n    var amount = 0\n    for item in menu_right_items:\n        $MenuRight.remove_child(item['node']) \n    for item in menu_left_items:\n        $MenuLeft.remove_child(item['node']) \n    menu_right_items = []\n    var scrolling = menu_right_scroll_top\n    for item in salesman_store:\n        if scrolling &gt; 0:\n            scrolling -= 1\n            continue\n        var item_node = $MenuRight\/Item.duplicate()\n        var in_list_item = {\n            'kind': item,\n            'node': item_node\n        }\n        menu_right_items.push_back(in_list_item)\n        if amount &lt; max_amount_vertically:\n            $MenuRight.add_child(item_node)\n            item_node.position.y += 35 * amount\n            item_node.set_visible(true)\n            item_node.text = get_item_name(item) + \" $\" + str(get_product_price(item))\n        amount += 1\n        if amount == max_amount_vertically:\n            var more_indicator = $MenuRight\/Item.duplicate()\n            more_indicator.text = \"...\"\n            more_indicator.set_visible(true)\n            more_indicator.position.y += 35 * amount\n            $MenuRight.add_child(more_indicator)\n    amount = 0\n    for adquirance in adquirances:\n        var item_node = $MenuLeft\/Item.duplicate()\n        item_node.visible = true\n        item_node.position.y += 35 * amount\n        item_node.text = get_item_name(adquirance.type) + \" x\" + str(adquirance.amount)\n        var in_list_item = {\n            'kind': adquirance.type,\n            'amount': adquirance.amount,\n            'node': item_node\n        }\n        menu_left_items.push_back(in_list_item)\n        $MenuLeft.add_child(item_node)\n        amount += 1\n\n\nfunc buy_item(item):\n    var price = get_product_price(item)\n    if coin_available &lt; price:\n        salesman_talks(i18n_messages['NOT_ENOUGHT_COINS'])\n        return; # TODO more coins needed\n    coin_transfering = price\n    salesman_talks(i18n_messages['THX'])\n    match item:\n        Adquirance.MUSHROOM:\n            add_item_to_bag('mushroom', 1)\n            return;\n        Adquirance.MUSHROOM_5x:\n            add_item_to_bag('mushroom', 5)\n            return;\n        Adquirance.RING:\n            add_item_to_bag('ring', 1)\n            return;\n        Adquirance.RING_10x:\n            add_item_to_bag('ring', 10)\n            return;\n        Adquirance.GREEN_MUSHROOM:\n            add_item_to_bag('green_mushroom', 1)\n            return;\n        Adquirance.GREEN_MUSHROOM_5x:\n            add_item_to_bag('green_mushroom', 5)\n            return;\n        Adquirance.GREEN_MUSHROOM_10x:\n            add_item_to_bag('green_mushroom', 10)\n            return;\n        Adquirance.GREEN_MUSHROOM_20x:\n            add_item_to_bag('green_mushroom', 20)\n            return;\n        Adquirance.LEAF:\n            add_item_to_bag('leaf', 1)\n            return;\n        Adquirance.LEAF_5x:\n            add_item_to_bag('leaf', 5)\n            return;\n        Adquirance.LEAF_10x:\n            add_item_to_bag('leaf', 10)\n            return;\n\n\nfunc add_item_to_bag(type, amount): \n    for adquired in adquirances:\n        if adquired.type == type:\n            adquired.amount += amount\n            rearrange_store()\n            return;\n    adquirances.push_back({ 'type': type, 'amount': amount })\n    rearrange_store()\n\n\nfunc salesman_talks(message):\n    $SalesmanDialog\/Label.text = message\n    $SalesmanDialog.visible = true\n    salesman_talking = 200\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>\u06cc\u06a9 \u0645\u062e\u0632\u0646 \u0628\u0627 \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u062f\u0631 \u0622\u062f\u0631\u0633 \u0632\u06cc\u0631 \u067e\u06cc\u062f\u0627 \u06a9\u0631\u062f: https:\/\/github.com\/misabitencourt\/in-game-shop<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Summarize this content to 400 words in Persian Lang \u06af\u0648\u062f\u0648 \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0639\u0631\u0648\u0641 \u062a\u0631\u06cc\u0646 \u0645\u0648\u062a\u0648\u0631\u0647\u0627\u06cc \u0628\u0627\u0632\u06cc \u0645\u0627\u0646\u0646\u062f Unreal Engine \u0648 Unit \u0627\u0633\u062a. \u06af\u0648\u062f\u0648 \u0645\u0627\u0646\u0646\u062f \u0631\u0642\u0628\u0627\u06cc \u062e\u0648\u062f \u0627\u062c\u0627\u0632\u0647 \u0633\u0627\u062e\u062a \u0628\u0627\u0632\u06cc \u0647\u0627\u06cc \u062f\u0648 \u0628\u0639\u062f\u06cc \u0648 \u0633\u0647 \u0628\u0639\u062f\u06cc \u0631\u0627 \u0628\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0628\u0635\u0631\u06cc \u0645\u06cc \u062f\u0647\u062f. \u0648\u062c\u0647 \u062a\u0645\u0627\u06cc\u0632 \u0627\u0635\u0644\u06cc \u0622\u0646 \u0645\u0646\u0628\u0639 \u0628\u0627\u0632 \u0628\u0648\u062f\u0646 \u0622\u0646 \u0627\u0633\u062a. \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0627\u06cc\u0646\u060c \u0627\u06cc\u0646 \u0628\u0647 &hellip;<\/p>\n","protected":false},"author":2,"featured_media":84734,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[339],"tags":[],"class_list":["post-84733","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev"],"_links":{"self":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/84733","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/comments?post=84733"}],"version-history":[{"count":0,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/84733\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media\/84734"}],"wp:attachment":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media?parent=84733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/categories?post=84733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/tags?post=84733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}