{"id":443049,"date":"2024-12-26T04:31:26","date_gmt":"2024-12-26T04:31:26","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=443049"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-12-26T04:31:26","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=443049","title":{"rendered":"<span>\u0414\u0435\u043b\u0430\u0435\u043c \u0437\u0432\u043e\u043d\u043e\u043a \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0432 \u0438\u0433\u0440\u0435 \u043d\u0430 \u0434\u0432\u0438\u0436\u043a\u0435 Godot 4<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u0437\u0432\u043e\u043d\u043e\u043a \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0432 \u0438\u0433\u0440\u0435 \u043d\u0430 \u0434\u0432\u0438\u0436\u043a\u0435 Godot 4<\/p>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u0432\u0430\u043c \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u043e \u043f\u043e\u0437\u0434\u0440\u0430\u0432\u0438\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u043d\u0443 \u0438\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u043e\u0432\u0443\u044e \u0430\u043a\u0446\u0438\u044e. \u0412 \u0433\u043e\u043b\u043e\u0432\u0435 \u0443\u0436\u0435 \u0441\u043e\u0437\u0440\u0435\u043b \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u2013 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0437\u0432\u043e\u043d\u0438\u0442 \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440. \u0410 \u043c\u044b \u043d\u0430 \u0442\u043e\u043c \u043a\u043e\u043d\u0446\u0435 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u043c \u0435\u043c\u0443 \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u0443\u044e \u043d\u043e\u0432\u043e\u0441\u0442\u044c. \u0427\u0443\u0434\u0435\u0441\u0430 \u0434\u0430 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e!<\/p>\n<p>\u041d\u043e \u0432\u043e\u0442 \u043d\u0435\u0437\u0430\u0434\u0430\u0447\u0430, \u043e\u043f\u043b\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u043a\u0443\u0440\u0441\u044b \u00ab\u041a\u0430\u043a \u0441\u0442\u0430\u0442\u044c \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434-\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u043c \u0441 \u043d\u0443\u043b\u044f \u0434\u043e \u0442\u0435\u0445\u043b\u0438\u0434\u0430 \u0437\u0430 \u0434\u0432\u0430 \u0434\u043d\u044f\u00bb \u043d\u0430\u0447\u043d\u0443\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0434\u0435\u043b\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u0443\u043f\u0435\u0440 \u043a\u0440\u0443\u0442\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u2013 \u043f\u043e\u043a\u0430 \u0437\u0430 \u0433\u0440\u0430\u043d\u044c\u044e \u0432\u0430\u0448\u0438\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439.<\/p>\n<p>\u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e \u0432 \u0430\u043a\u0442\u0438\u0432\u0435 \u0435\u0441\u0442\u044c \u0436\u0433\u0443\u0447\u0435\u0435 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0433\u0440\u044b \u043d\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u043c \u0434\u0432\u0438\u0436\u043a\u0435 Godot, \u043f\u0430\u0440\u0430 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u0438 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0432 <a href=\"https:\/\/exolve.ru\/products\/mobile-sdk\/?utm_source=habr&amp;utm_medium=refferal&amp;utm_campaign=websdk_article&amp;utm_content=article_sdkgamegodot&amp;utm_term=websdk_exolve\">\u041c\u0422\u0421 Exolve<\/a>.<\/p>\n<p>\u041d\u0435 \u0431\u0443\u0434\u0435\u043c \u0442\u0435\u0440\u044f\u0442\u044c \u043d\u0438 \u043c\u0438\u043d\u0443\u0442\u044b \u0438 \u043d\u0430\u0447\u043d\u0435\u043c \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u0440\u0435\u0448\u0430\u0442\u044c.<\/p>\n<p>\u041e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435:<\/p>\n<ul>\n<li>\n<p><a href=\"#a1\">\u041f\u0430\u0440\u0430 \u0441\u043b\u043e\u0432 \u043f\u0440\u043e Godot \u0438 \u041c\u0422\u0421 Exolve WebSDK<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#a2\">\u0427\u0442\u043e \u0445\u043e\u0442\u0438\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#a3\">\u041f\u0430\u0440\u0430 \u0441\u043b\u043e\u0432 \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#a4\">\u0410\u0432\u0442\u043e\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 events.gd<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#a5\">\u0421\u0446\u0435\u043d\u0430 \u0441 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043d\u043e\u043c\u0435\u0440\u0430<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#a6\">\u0421\u0446\u0435\u043d\u0430 \u0441 \u043f\u0430\u043d\u0435\u043b\u044f\u043c\u0438 \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u043d\u043e\u043c\u0435\u0440\u043e\u0432<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#a7\">\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0446\u0435\u043d\u0430 \u0438\u0433\u0440\u044b<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#a8\">\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/a><\/p>\n<\/li>\n<\/ul>\n<p><a class=\"anchor\" name=\"a1\" id=\"a1\"><\/a><\/p>\n<h2>\u041f\u0430\u0440\u0430 \u0441\u043b\u043e\u0432 \u043f\u0440\u043e Godot \u0438 \u041c\u0422\u0421 Exolve WebSDK<\/h2>\n<p><a href=\"http:\/\/godotengine.org\"><strong><u>Godot<\/u><\/strong><\/a> \u2013 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 \u0434\u0432\u0438\u0436\u043e\u043a \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 2D \u0438 3D \u0438\u0433\u0440 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0440\u0435\u0434\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 Godot \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u041f\u041a \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c Windows\/Linux\/Mac, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043d\u0430 Android \/ IOS \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430\u0445 \u0438 \u0434\u0430\u0436\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 (\u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438). \u0412\u044b\u0431\u043e\u0440 \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0442\u043e\u0436\u0435 \u0432\u0435\u043b\u0438\u043a, \u043d\u043e \u043d\u0430\u0441 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u0443 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442 HTML 5.<\/p>\n<p><a href=\"https:\/\/docs.exolve.ru\/docs\/ru\/web-sdk\/?utm_source=habr&amp;utm_medium=refferal&amp;utm_campaign=websdk_article&amp;utm_content=article_sdkgamegodot&amp;utm_term=websdk_exolve\"><strong><u>WebSDK<\/u><\/strong><\/a> \u2013 \u044d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u0442 <a href=\"http:\/\/exolve.ru\/?utm_source=habr&amp;utm_medium=refferal&amp;utm_campaign=websdk_article&amp;utm_content=article_sdkgamegodot&amp;utm_term=websdk_exolve\"><u>\u041c\u0422\u0421 Exolve<\/u><\/a> \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0435\u0439 \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.<\/p>\n<p>Web SDK \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 npm \u043f\u0430\u043a\u0435\u0442\u0430. \u0414\u043b\u044f \u0438\u043c\u043f\u043e\u0440\u0442\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u00ab<a href=\"https:\/\/habr.com\/ru\/companies\/exolve\/articles\/847766\/#a2\"><u>\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0438\u0434\u0436\u0435\u0442 \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 XWiki<\/u><\/a>\u00bb \u043c\u044b \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u0441\u0432\u043e\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"https:\/\/github.com\/bosonbeard\/mts-habr\/tree\/main\/godot_web_sdk\/lib\"><u>bundle.js<\/u><\/a> \u043d\u0430 \u0431\u0430\u0437\u0435 WebSDK. \u041e\u043d\u0430 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p><a class=\"anchor\" name=\"a2\" id=\"a2\"><\/a><\/p>\n<h2>\u0427\u0442\u043e \u0445\u043e\u0442\u0438\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c<\/h2>\n<p>\u0418\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0446\u0435\u043b\u044f\u0445, \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0438\u0433\u0440\u0443.<\/p>\n<p>\u0412\u043e\u0437\u044c\u043c\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0431\u0435\u0437 \u043a\u043e\u0434\u0430 \u0441\u0442\u0440\u0430\u043d\u044b (\u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u0432\u0441\u0435\u0433\u0434\u0430 \u00ab7\u00bb) \u0438 \u0440\u0430\u0437\u043e\u0431\u044c\u0435\u043c \u0435\u0433\u043e \u043d\u0430 5 \u043f\u0430\u0440 \u043f\u043e \u0434\u0432\u0435 \u0446\u0438\u0444\u0440\u044b. \u041f\u0435\u0440\u0435\u043c\u0435\u0448\u0430\u0435\u043c \u043f\u0430\u0440\u044b \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043c \u0438\u0433\u0440\u043e\u043a\u0443 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u0435\u0440\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442 \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430 \u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0441\u0442\u0430\u043d\u0435\u0442 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0430 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0432\u044b\u0437\u043e\u0432\u0430. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0432\u044b\u0437\u043e\u0432, \u0430 \u043c\u044b \u0441\u043d\u0438\u043c\u0430\u0435\u043c \u0442\u0440\u0443\u0431\u043a\u0443 \u0438 \u0447\u0435\u0441\u0442\u0432\u0443\u0435\u043c \u0432\u0435\u043b\u0438\u0447\u0430\u0439\u0448\u0435\u0433\u043e \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u044b!<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5e0\/e32\/a7d\/5e0e32a7d153b997d5753fcf52a2099b.png\" alt=\"\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0440\u0430\u0431\u043e\u0442\u044b\" title=\"\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0440\u0430\u0431\u043e\u0442\u044b\" width=\"451\" height=\"770\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5e0\/e32\/a7d\/5e0e32a7d153b997d5753fcf52a2099b.png\"\/><\/p>\n<div><figcaption><em>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0440\u0430\u0431\u043e\u0442\u044b<\/em><\/figcaption><\/div>\n<\/figure>\n<p>\u0427\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0432\u043e\u043f\u043b\u043e\u0442\u0438\u0442\u044c \u0432 \u0436\u0438\u0437\u043d\u044c, \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0431\u0440\u0430\u0442\u044c \u043a \u0441\u0435\u0431\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 bundle.js, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043b \u0432\u044b\u0448\u0435, \u043d\u043e \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c SIP-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0432 \u043b\u0438\u0447\u043d\u043e\u043c \u043a\u0430\u0431\u0438\u043d\u0435\u0442\u0435 MT\u0421 Evolve. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <a href=\"https:\/\/habr.com\/ru\/companies\/exolve\/articles\/847766\/#a1\">\u00ab\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u044b\u00bb \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e WebSDK \u0438 XWiki<\/a>.<\/p>\n<p><a class=\"anchor\" name=\"a3\" id=\"a3\"><\/a><\/p>\n<h2>\u041f\u0430\u0440\u0430 \u0441\u043b\u043e\u0432 \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b<\/h2>\n<p>\u0424\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0437\u0430\u0434\u0438, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 Godot. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0432\u0435\u0440\u0441\u0438\u044e \u0434\u0432\u0438\u0436\u043a\u0430 4.3.<\/p>\n<p>\u0418\u0437\u0443\u0447\u0438\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 <a href=\"https:\/\/github.com\/bosonbeard\/mts-habr\/tree\/main\/godot_web_sdk\">GitHub<\/a>.<\/p>\n<p>\u0422\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0434\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440: \u044f \u043d\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043d\u044f\u0442\u044b\u0435 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u0441\u0430\u043c\u044b\u043c\u0438 \u043b\u0443\u0447\u0448\u0438\u043c\u0438. \u042d\u0442\u043e \u043b\u0438\u0448\u044c \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043a\u043e\u043d\u0446\u0435\u043f\u0442\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u0432 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<\/p>\n<p>\u042f \u0440\u0435\u0448\u0438\u043b \u043d\u0435 \u00ab\u0440\u0430\u0437\u0434\u0443\u0432\u0430\u0442\u044c\u00bb \u0441\u0442\u0430\u0442\u044c\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u0431\u0443\u0434\u0443 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u0443\u0437\u043b\u043e\u0432 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u043b\u043e\u0433\u0438\u043a\u043e\u0439. \u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0435 \u043f\u0440\u043e \u043a\u0440\u0430\u0441\u043e\u0442\u0443. \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438. \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0438 \u043f\u0440\u043e\u0449\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0438\u0437\u0443\u0447\u0438\u0442\u044c <a href=\"https:\/\/github.com\/bosonbeard\/mts-habr\/tree\/main\/godot_web_sdk\/\"><u>\u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442<\/u><\/a>.<\/p>\n<p>\u0418\u0433\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u0442\u0440\u0435\u0445 \u0441\u0446\u0435\u043d \u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430.<\/p>\n<ul>\n<li>\n<p>\u0421\u0446\u0435\u043d\u0430 game.tscn \u2013 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0441\u0446\u0435\u043d\u0430 \u0438\u0433\u0440\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u043a\u043b\u044e\u0447\u0435\u0432\u0430\u044f \u0442\u0435\u0445\u043d\u0438\u043a\u0430<\/p>\n<\/li>\n<li>\n<p>\u0421\u0446\u0435\u043d\u0430 number.tscn \u2013 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u043e\u043c\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430<\/p>\n<\/li>\n<li>\n<p>\u0421\u0446\u0435\u043d\u0430 number_pannel.tscn \u2013 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u0435\u043c\u043d\u0438\u043a\u0430 \u0434\u043b\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u043e\u043c\u0435\u0440\u0430.<\/p>\n<\/li>\n<li>\n<p>events.gd \u2013 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043b, \u043f\u043e \u0441\u0443\u0442\u0438 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0448\u0438\u043d\u044b \u0441\u043e\u0431\u044b\u0442\u0438\u0439.<\/p>\n<\/li>\n<\/ul>\n<p><a class=\"anchor\" name=\"a4\" id=\"a4\"><\/a><\/p>\n<h2>\u0410\u0432\u0442\u043e\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 events.gd<\/h2>\n<p>Events.gd \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0439 \u0434\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u0438\u0433\u043d\u0430\u043b <code>pannel_change_number<\/code>.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u043a \u0441\u0446\u0435\u043d\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 events.gd<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434  <\/summary>\n<div class=\"spoiler__content\">\n<pre><code>extends Node signal pannel_change_number func _ready() -&gt; void: pass # Replace with function body. func _process(delta: float) -&gt; void: pass<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 (Project Settings -&gt; Globals) \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443.<\/p>\n<p><a class=\"anchor\" name=\"a5\" id=\"a5\"><\/a><\/p>\n<h2>\u0421\u0446\u0435\u043d\u0430 \u0441 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043d\u043e\u043c\u0435\u0440\u0430<\/h2>\n<p>\u0421\u0446\u0435\u043d\u0430 number.tscn \u0421\u0446\u0435\u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043b\u043e\u0433\u0438\u043a\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u043d\u043e\u043c\u0435\u0440\u0430 \u0438 \u0435\u0433\u043e \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3d4\/9bb\/936\/3d49bb936fb863955a9a0fd12a276be7.png\" width=\"483\" height=\"317\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3d4\/9bb\/936\/3d49bb936fb863955a9a0fd12a276be7.png\"\/><\/figure>\n<p>\u00a0\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u044b (\u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438):<\/p>\n<ul>\n<li>\n<p>Number (Control) \u2013\u00a0 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/p>\n<ul>\n<li>\n<p>Panel \u2013\u00a0 \u043f\u0430\u043d\u0435\u043b\u044c \u0441 \u0437\u0430\u043b\u0438\u0432\u043a\u043e\u0439 \u0438 \u0440\u0430\u043c\u043a\u043e\u0439.<\/p>\n<ul>\n<li>\n<p>NumberLabel (Label) \u2013 \u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u043d\u043e\u043c\u0435\u0440\u0430<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><em>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0437\u0434\u0435\u0441\u044c \u0438 \u0434\u0430\u043b\u0435\u0435 \u0435\u0441\u043b\u0438 \u0442\u0438\u043f \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0443\u0437\u043b\u0430 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442, \u0442\u0438\u043f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u043a\u043e\u0431\u043a\u0430\u0445.<\/em><\/p>\n<p>\u041a \u0441\u0446\u0435\u043d\u0435 \u043f\u0440\u0438\u0432\u044f\u0436\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 <em>number.gd.<\/em><\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434.<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>extends Control  @export var current_number := \"00\" var drag_preview  # Called when the node enters the scene tree for the first time. func _ready() -&gt; void: $Panel\/NumberLabel.text =\u00a0 current_number  func change_color(hexcolor:String): $Panel\/NumberLabel.set(\"theme_override_colors\/font_color\",hexcolor)  func change_current_number(number:String): current_number = number $Panel\/NumberLabel.text =\u00a0 current_number  # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -&gt; void: pass  func _get_drag_data(at_position: Vector2): var preview = load('res:\/\/scenes\/number\/number.tscn').instantiate() set_drag_preview(preview) preview.change_current_number(current_number) drag_preview = preview return self<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043a\u043e\u0434 \u043f\u043e \u0447\u0430\u0441\u0442\u044f\u043c<\/p>\n<p><code>@export var currentNumber := \"00\"<\/code><\/p>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0443 \u043d\u043e\u043c\u0435\u0440\u0430.<br \/>\u041e\u0442\u043c\u0435\u0447\u0435\u043d\u0430 \u043a\u0430\u043a @export \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440.<\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438 <em>\u00a0<\/em><code>change_color<\/code><em> \u0438 <\/em><code>change_current_number<\/code> \u043f\u0440\u043e\u0441\u0442\u044b \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0438\u0445 \u043c\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043c.<\/p>\n<p>\u0410 \u0432\u043e\u0442 \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435.<\/p>\n<pre><code>func _get_drag_data(at_position: Vector2): var preview = load('res:\/\/scenes\/number\/number.tscn').instantiate() set_drag_preview(preview) preview.change_current_number(current_number) drag_preview = preview return self<\/code><\/pre>\n<p><code>_get_drag_data<\/code><em> \u2013<\/em>\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u0432\u0438\u0436\u043a\u0430, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0435\u0451 \u0441\u0432\u043e\u0435\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439.<\/p>\n<p>\u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0430\u0436\u043d\u044b \u0434\u0432\u0435 \u0432\u0435\u0449\u0438: \u043f\u0440\u0435\u0432\u044c\u044e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u044f, \u0438 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u0438\u0435\u043c\u043d\u0438\u043a\u0443.<\/p>\n<p>\u0412 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u0438\u043b\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <code>drag_preview<\/code><em>, <\/em>\u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0435\u0451 \u0432 \u043f\u0440\u0438\u0435\u043c\u043d\u0438\u043a \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0441\u0446\u0435\u043d\u044b.<\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e \u0441\u0443\u0442\u0438 \u043a\u043e\u043f\u0438\u044e \u0441\u0446\u0435\u043d\u044b <em>number.tscn, <\/em>\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u0434\u0432\u0438\u0436\u043a\u0443 \u0447\u0442\u043e \u0435\u0451 \u043d\u0430\u0434\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043f\u0440\u0435\u0432\u044c\u044e \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430.<\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0443\u0436\u043d\u044b\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043d\u043e\u043c\u0435\u0440\u0430 \u043c\u044b \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0441\u0446\u0435\u043d\u0435, \u0442\u043e \u0432 \u043f\u0440\u0435\u0432\u044c\u044e \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 <code>current_number<\/code><em> <\/em>\u0441\u0446\u0435\u043d\u044b, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0443\u0436\u043d\u044b\u0445 \u0446\u0438\u0444\u0440 \u0431\u0443\u0434\u0435\u043c \u0432\u0438\u0434\u0435\u0442\u044c \u00ab00\u00bb.<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043c\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0432\u0441\u044e \u0441\u0446\u0435\u043d\u0443 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0435\u0451 \u043f\u0440\u0435\u0432\u044c\u044e, \u044d\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430\u043c \u0432 \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440.<\/p>\n<p><a class=\"anchor\" name=\"a6\" id=\"a6\"><\/a><\/p>\n<h2>\u0421\u0446\u0435\u043d\u0430 \u0441 \u043f\u0430\u043d\u0435\u043b\u044f\u043c\u0438 \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u043d\u043e\u043c\u0435\u0440\u043e\u0432<\/h2>\n<p>\u0421\u0446\u0435\u043d\u0430 number_pannel.tscn \u0421\u0446\u0435\u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043b\u043e\u0433\u0438\u043a\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u043d\u043e\u043c\u0435\u0440\u0430 \u0438 \u0435\u0433\u043e \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b84\/e45\/838\/b84e458388a41ff20bb2d881aa355d83.png\" width=\"620\" height=\"272\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b84\/e45\/838\/b84e458388a41ff20bb2d881aa355d83.png\"\/><\/figure>\n<p>\u00a0\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u044b (\u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438):<\/p>\n<ul>\n<li>\n<p>NumberPannel (Control) \u2013\u00a0 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/p>\n<ul>\n<li>\n<p>Panel \u2013\u00a0 \u043f\u0430\u043d\u0435\u043b\u044c \u0441 \u0437\u0430\u043b\u0438\u0432\u043a\u043e\u0439 \u0438 \u0440\u0430\u043c\u043a\u043e\u0439.<\/p>\n<ul>\n<li>\n<p>NumberLabel (Label) \u2013 \u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u043d\u043e\u043c\u0435\u0440\u0430 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u041a \u0441\u0446\u0435\u043d\u0435 \u043f\u0440\u0438\u0432\u044f\u0436\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 number_pannel.gd<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>extends Control  @export var correct_number := \"00\" @export var current_number = \"--\"  func _ready() -&gt; void: pass # Replace with function body.  # change container number func change_current_number(number:String): current_number = number $Panel\/NumberLabel.text =  current_number  func change_correct_number(number:String): correct_number = number  func _process(delta: float) -&gt; void: pass  func _can_drop_data(at_position: Vector2, data: Variant):  # color hint for drag and drop if data.current_number == self.correct_number: data.drag_preview.change_color(\"#00FF00\") return true else: data.drag_preview.change_color(\"#FF0000\") return false  func _drop_data(at_position: Vector2, data: Variant): # change number in receiver container and delete dropped panel change_current_number (data.current_number) data.queue_free() Events.pannel_change_number.emit() <\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0421\u0446\u0435\u043d\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 number.tscn \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445 <code>can_drop_data<\/code><em> <\/em>\u0438 <code>can_drop_data<\/code>. \u041a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 <code>_get_drag_data \u044d\u0442\u043e<\/code> \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u0432\u0438\u0436\u043a\u0430, \u043b\u043e\u0433\u0438\u043a\u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c.<\/p>\n<pre><code>func _can_drop_data(at_position: Vector2, data: Variant):  # color hint for drag and drop if data.current_number == self.correct_number: data.drag_preview.change_color(\"#00FF00\") return true else: data.drag_preview.change_color(\"#FF0000\") return false<\/code><\/pre>\n<p>\u041e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0442\u043e, \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u043d\u0430\u043c \u00ab\u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c\u00bb \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u043d\u0430 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0441\u0446\u0435\u043d\u044b number_pannel.tscn.<\/p>\n<p>\u041c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u043b\u0438 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043d\u043e\u043c\u0435\u0440\u0430 \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c. \u0415\u0441\u043b\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442, \u0442\u043e \u043c\u044b \u043a\u0440\u0430\u0441\u0438\u043c \u043f\u0440\u0435\u0432\u044c\u044e \u0437\u0435\u043b\u0435\u043d\u044b\u043c \u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0441\u0431\u0440\u043e\u0441, \u0438\u043d\u0430\u0447\u0435 \u2013 \u043a\u0440\u0430\u0441\u0438\u043c \u0432 \u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0438 \u043d\u0435 \u0434\u0430\u0435\u043c \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442.<\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0443 \u043d\u0430\u0441 \u0432 \u0441\u0446\u0435\u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d \u0442\u0438\u043f \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0438\u0437\u043b\u0438\u0448\u043d\u0438\u043c\u0438.<\/p>\n<pre><code>func _drop_data(at_position: Vector2, data: Variant):  # change number in receiver container and delete dropped panel change_current_number (data.current_number) data.queue_free() Events.pannel_change_number.emit()<\/code><\/pre>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u044b:<\/p>\n<ol>\n<li>\n<p>\u043c\u0435\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u043e\u043c\u0435\u0440\u0430 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043d\u043e\u043c\u0435\u0440\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0441\u044b\u043b\u0430\u0435\u043c \u0441\u0438\u0433\u043d\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u043d\u044c\u0448\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0432 events.gd, \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u0438\u0433\u043d\u0430\u043b \u043c\u044b \u043f\u043e\u0434\u043f\u0438\u0448\u0435\u043c\u0441\u044f \u0432 \u0441\u0446\u0435\u043d\u0435 game.tscn \u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u043d.<\/p>\n<\/li>\n<\/ol>\n<p><a class=\"anchor\" name=\"a7\" id=\"a7\"><\/a><\/p>\n<h2>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0446\u0435\u043d\u0430 \u0438\u0433\u0440\u044b<\/h2>\n<p>\u0412\u043e\u0442 \u0438 \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u044b \u0438\u0433\u0440\u044b.<\/p>\n<p>\u0421\u0446\u0435\u043d\u0430 game.tscn \u0421\u0446\u0435\u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0433\u043b\u0430\u0432\u043d\u0443\u044e. \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0443 \u0438\u0433\u0440\u044b, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u00ab\u0437\u0432\u043e\u043d\u043e\u043a \u0434\u0440\u0443\u0433\u0443\u00bb.<\/p>\n<p>\u00a0<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ad5\/1bf\/4f8\/ad51bf4f8f3c32709f66367b6a1bf61e.png\" width=\"1159\" height=\"896\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ad5\/1bf\/4f8\/ad51bf4f8f3c32709f66367b6a1bf61e.png\"\/><\/figure>\n<p>\u00a0\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u044b (\u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438):<\/p>\n<ul>\n<li>\n<p>Background (TextureRect) \u2013 backround \u0438\u0433\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>VBoxContainer \u2013 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f<\/p>\n<ul>\n<li>\n<p>HeaderTable (GridContainer) \u2013 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442 \u0442\u0440\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043a\u0430\u043a \u0442\u0440\u0438 \u043a\u043e\u043b\u043e\u043d\u043a\u0438 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b.<\/p>\n<ul>\n<li>\n<p>HeaderMargin1 (MarginContainer) \u2013 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u043e\u0442\u0441\u0442\u0443\u043f\u0430 Label<\/p>\n<ul>\n<li>\n<p>Label \u2013 \u0442\u0435\u043a\u0441\u0442 \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438 \u0438\u0433\u0440\u044b<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Container (MarginContainer) \u2013 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u043e\u0442\u0441\u0442\u0443\u043f\u0430 \u043f\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435<\/p>\n<\/li>\n<li>\n<p>HeaderMargin2 (MarginContainer) \u2013 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u043e\u0442\u0441\u0442\u0443\u043f\u0430 Button<\/p>\n<ul>\n<li>\n<p>NewGameButton (Button) \u2013 \u043a\u043d\u043e\u043f\u043a\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043d\u043e\u0432\u043e\u0439 \u0438\u0433\u0440\u044b<\/p>\n<ul>\n<li>\n<p>\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0438\u0433\u043d\u0430\u043b pressed() \u2013 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u00a0 _on_new_game_pressed())<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>HBoxContainer2 \u2013 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f<\/p>\n<ul>\n<li>\n<p>MarginContainer \u2013 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u043e\u0441\u0442\u0443\u043f\u0430<\/p>\n<ul>\n<li>\n<p>Number1 \u2013 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0441\u0446\u0435\u043d\u044b number.tscn<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><em>\u2026 \u0434\u0430\u043b\u0435\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u043e \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e Number5<\/em><\/p>\n<\/li>\n<li>\n<p>HBoxContainer3 \u2013 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f<\/p>\n<ul>\n<li>\n<p>Label \u2013\u00a0 \u0442\u0435\u043a\u0441\u0442 \u00ab+7\u00bb<\/p>\n<\/li>\n<li>\n<p>%NP1\u00a0 \u2013 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0441\u0446\u0435\u043d\u044b number_pannel.tscn<\/p>\n<ul>\n<li>\n<p>\u0441\u0438\u043c\u0432\u043e\u043b \u00ab%\u00bb \u2013 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043d\u0430\u043c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0443\u0437\u043b\u0443 \u043f\u0440\u044f\u043c\u043e \u043f\u043e \u0435\u0433\u043e \u0438\u043c\u0435\u043d\u0438.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u2026 \u0434\u0430\u043b\u0435\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u043e \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e NP5<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>HBoxContainer3 \u2013 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f<\/p>\n<ul>\n<li>\n<p>CallButton (Button) \u2013 \u043a\u043d\u043e\u043f\u043a\u0430 \u0434\u043b\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0432\u044b\u0437\u043e\u0432\u0430.<\/p>\n<ul>\n<li>\n<p>\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0438\u0433\u043d\u0430\u043b pressed() \u2013 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a _on_button_pressed()<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u041a \u0441\u0446\u0435\u043d\u0435 \u043f\u0440\u0438\u0432\u044f\u0436\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 game.gd.<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>extends Control  const COUNTRY_CODE: = \"7\" @onready var game_scene = preload(\"res:\/\/scenes\/game\/game.tscn\") var sip_login:= \"&lt;your_sip_login&gt;\" var sip_password:= \"&lt;your_sip_password&gt;\" var window var correct_phone  func fload(): var file = FileAccess.open(\"res:\/\/game-config.json\", FileAccess.READ) var content = file.get_as_text() file.close() var result_json = JSON.parse_string(content) return result_json  func string_to_array_pairs(text: String) -&gt; Array: var result = [] for i in range(0, text.length() - (text.length() % 2), 2): # Adjust range to avoid odd last char result.append(text.substr(i, 2)) return result  # Called when the node enters the scene tree for the first time. func _ready() -&gt; void: Events.connect(\"pannel_change_number\",on_pannel_change_number) var user_config = fload() correct_phone = user_config[\"phone\"] var phone_array = string_to_array_pairs(correct_phone)  # fill number containers var number_containers = [%NP1,%NP2,%NP3,%NP4,%NP5] for i in number_containers.size(): number_containers[i].change_correct_number(phone_array[i]) # shuffle for random fill numbers phone_array.shuffle() var nodes :=get_tree().get_nodes_in_group(\"Numbers\") for i in nodes.size(): nodes[i].change_current_number(phone_array[i])  # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -&gt; void: pass  func get_numbers(numbers:Array) -&gt; String: var text:= \"\" for n in numbers: text += n.current_number return text  func _on_button_pressed() -&gt; void: # get phone number to call var np_array := [%NP1,%NP2,%NP3,%NP4,%NP5] var phone := get_numbers(np_array) # make phone call via SIP connection window.sip_instance.call(COUNTRY_CODE+phone)  func on_pannel_change_number(): var np_array := [%NP1,%NP2,%NP3,%NP4,%NP5] var phone := get_numbers(np_array) if phone == correct_phone: # create SIP connection in JS window object\u00a0 %CallButton.text = \"\u041f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c \u043d\u0430 \u043d\u043e\u043c\u0435\u0440 +{0}{1}\".format([COUNTRY_CODE,phone]) JavaScriptBridge.eval(\"window.sip_instance=WebVoiceSdk.createSipInstance({ \u00a0 sipLogin: '{0}', \u00a0 sipPassword: '{1}', })\".format([sip_login,sip_password]),true)  # register SIP connection JavaScriptBridge.eval(\"window.sip_instance.register()\",true)  # get JS window object as godot object window = JavaScriptBridge.get_interface(\"window\")  if (window): %CallButton.disabled = false  else: push_error(\"Works only in browser\") %CallButton.text = \"\u0427\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0437\u043e\u0432 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0438\u0433\u0440\u0443 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435\"  # instance new game scene for reset func _on_new_game_pressed() -&gt; void: get_tree().change_scene_to_packed(game_scene)<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435<\/p>\n<ul>\n<li>\n<p><code>@onready var game_scene = preload(\"res:\/\/scenes\/game\/game.tscn\")<\/code><em> \u2013 <\/em>\u00a0\u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u0430\u044f \u0441\u0446\u0435\u043d\u0430 \u0434\u043b\u044f \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0430 \u0438\u0433\u0440\u044b.<em>\u00a0<\/em><\/p>\n<\/li>\n<li>\n<p><code>var sip_login:= \"&lt;your_sip_login&gt;\"<\/code><em> <\/em>\u2013 \u043b\u043e\u0433\u0438\u043d \u0434\u043b\u044f SIP-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0438\u0437 \u0432\u0430\u0448\u0435\u0433\u043e \u041b\u041a \u041c\u0422\u0421 Exolve<\/p>\n<\/li>\n<li>\n<p><code>var sip_password:= \"&lt;your_sip_password&gt;\"<\/code>\u00a0 \u2013 \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f SIP-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0438\u0437 \u0432\u0430\u0448\u0435\u0433\u043e \u041b\u041a \u041c\u0422\u0421 Exolve<\/p>\n<\/li>\n<li>\n<p><code>var window<\/code><em> \u2013 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u043b\u044f JS \u043e\u0431\u044a\u0435\u043a\u0442\u0430 window<\/em><\/p>\n<\/li>\n<li>\n<p><code>var correct_phone<\/code> \u2013 \u0432\u0435\u0440\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d (\u0431\u0435\u0440\u0435\u0442\u0441\u044f \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0430)<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c SIP \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 (\u043d\u0435 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0435):<\/p>\n<pre><code>func string_to_array_pairs \u2013 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u043d\u0430 \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u043e 2 \u0446\u0438\u0444\u0440\u044b, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u043b\u0438\u0442\u043a\u0438.  func get_numbers \u2013 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0441\u0440\u043e\u043a\u0443 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430.  func fload() \u2013 \u0447\u0438\u0442\u0430\u0435\u0442 \u0438 \u043f\u0430\u0440\u0441\u0438\u0442 json \u0444\u0430\u0439\u043b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043d\u043e\u043c\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0438\u0437 res:\/\/game-config.json.<\/code><\/pre>\n<p>\u0411\u0443\u0434\u0435\u0442 \u0443\u043c\u0435\u0441\u0442\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u043e \u0444\u0430\u0439\u043b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 game-config.json<\/p>\n<p>\u0412 \u0444\u0430\u0439\u043b\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u2013 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0443\u0433\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u0431\u0435\u0437 \u043a\u043e\u0434\u0430 \u0441\u0442\u0440\u0430\u043d\u044b<\/p>\n<pre><code>{ \"phone\":\"0001234567\" }<\/code><\/pre>\n<p>\u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0438 \u0432 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443, \u043d\u043e \u043f\u0440\u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u043c game-config.json \u0432 \u0441\u043e\u0441\u0442\u0430\u0432 \u0444\u0430\u0439\u043b\u0430 index.pck.<\/p>\n<p>\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043e\u043f\u0446\u0438\u0439 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 (\u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u0437\u0436\u0435), \u043d\u0443 \u0430 \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0433\u0438\u043f\u043e\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 .pck \u0444\u0430\u0439\u043b \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0431\u0435\u0437 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e GodotPCKExplorer (\u0441\u043c. <a href=\"https:\/\/github.com\/DmitriySalnikov\/GodotPCKExplorer\"><u>GitHub<\/u><\/a>).<\/p>\n<p>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441 \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u043e\u043c \u043a\u043e\u0434\u0430.<\/p>\n<pre><code>func _on_new_game_pressed() -&gt; void: get_tree().change_scene_to_packed(game_scene)<\/code><\/pre>\n<p>\u042d\u0442\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u041d\u0430\u0447\u0430\u0442\u044c \u0437\u0430\u043d\u043e\u0432\u043e\u00bb. \u041f\u043e \u0441\u0443\u0442\u0438 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0441\u0446\u0435\u043d\u0443 game.scn \u043d\u043e\u0432\u044b\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u043c.<\/p>\n<pre><code>func on_pannel_change_number():  var np_array := [%NP1,%NP2,%NP3,%NP4,%NP5] var phone := get_numbers(np_array) if phone == correct_phone:  # create SIP connection in JS window object\u00a0 %CallButton.text = \"\u041f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c \u043d\u0430 \u043d\u043e\u043c\u0435\u0440 +{0}{1}\".format([COUNTRY_CODE,phone]) JavaScriptBridge.eval(\"window.sip_instance=WebVoiceSdk.createSipInstance({ \u00a0 sipLogin: '{0}', \u00a0 sipPassword: '{1}', })\".format([sip_login,sip_password]),true) # register SIP connection JavaScriptBridge.eval(\"window.sip_instance.register()\",true) # get JS window object as godot object window = JavaScriptBridge.get_interface(\"window\") if (window): %CallButton.disabled = false else: push_error(\"Works only in browser\") %CallButton.text = \"\u0427\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0437\u043e\u0432, \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0438\u0433\u0440\u0443 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435\"<\/code><\/pre>\n<p>\u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0438\u0437 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u043e\u043c\u0435\u0440 \u0441 \u0432\u0435\u0440\u043d\u044b\u043c, \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u0442\u043e \u043c\u0435\u043d\u044f\u0435\u043c \u0442\u0435\u043a\u0441\u0442 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0435.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 Godot \u0438 JavaScript.<\/p>\n<p>\u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0438 \u043c\u044b \u0434\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0431\u0430.<\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0437\u0432\u043e\u043d\u043a\u0430 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0431\u0440\u0430\u0442\u044c \u0438\u0437 bundle.js. \u041a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043a \u0438\u0433\u0440\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u043e\u0437\u0436\u0435 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p><code>JavaScriptBridge.eval<\/code><em> \u2013 <\/em>\u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 JS \u043a\u043e\u0434. \u042d\u0442\u043e \u043f\u043e\u0447\u0442\u0438 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043a\u0430\u043a \u0435\u0441\u043b\u0438 \u0431\u044b \u0432\u044b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u0442\u043a\u0440\u044b\u043b\u0438 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0438 \u043a\u043e\u0434.<\/p>\n<p>\u0412 \u043f\u0435\u0440\u0432\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435 <em>eval <\/em>\u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c SIP-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e WebSDK.<\/p>\n<p>\u0412\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435, \u043c\u044b \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u044d\u0442\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435.<\/p>\n<p>\u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0432\u0441\u0435 \u2013 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0442\u044c \u0432\u044b\u0437\u043e\u0432, \u043d\u043e \u0443 \u043d\u0430\u0441 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430 \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430.<\/p>\n<p><code>window = JavaScriptBridge.get_interface(\"window\")<\/code><\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435 \u043c\u044b \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c JS \u043e\u0431\u044a\u0435\u043a\u0442 window \u0432 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 \u0434\u043b\u044f Godot \u043e\u0431\u044a\u0435\u043a\u0442.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c: \u0435\u0441\u043b\u0438 \u043e\u0431\u044a\u0435\u043a\u0442 window \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0437\u043d\u0430\u0447\u0438\u0442 \u0438\u0433\u0440\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0430 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0432\u044b\u0437\u043e\u0432.<br \/>\u0418\u043d\u0430\u0447\u0435, WebSDK \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u0432\u044b\u0437\u043e\u0432\u0430 \u043d\u0435\u043b\u044c\u0437\u044f.<\/p>\n<p>\u041c\u044b \u043f\u043b\u0430\u0432\u043d\u043e \u043f\u043e\u0434\u043e\u0448\u043b\u0438 \u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u0432\u044b\u0437\u043e\u0432\u0430.<\/p>\n<pre><code>func _on_button_pressed() -&gt; void:  # get phone number to call var np_array := [%NP1,%NP2,%NP3,%NP4,%NP5] var phone := get_numbers(np_array)  # make phone call via SIP connection window.sip_instance.call(COUNTRY_CODE+phone)<\/code><\/pre>\n<p>\u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0432\u0441\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u043d\u043e\u043c\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0432\u043c\u0435\u0441\u0442\u0435 \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u044b\u0437\u043e\u0432\u0430 \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0430 \u0432 WebSDK.<\/p>\n<p>\u041e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435, \u043d\u043e \u043d\u0435 \u043f\u043e \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0441\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <em>_ready<\/em><\/p>\n<p>\u043e\u043d\u0430 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u0433\u0434\u0430 \u0441\u0446\u0435\u043d\u0430 \u0433\u043e\u0442\u043e\u0432\u0430. \u041f\u043e \u0441\u0443\u0442\u0438 \u0432 \u043d\u0435\u0439 \u043c\u044b \u0437\u0430\u0434\u0430\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u0441\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c \u0441\u0446\u0435\u043d\u044b, \u043e\u0441\u043e\u0431\u043e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u043c\u044b\u0441\u043b\u0430 \u043a\u043e\u0434 \u043d\u0435\u0442.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0432\u0441\u0451 \u0433\u043e\u0442\u043e\u0432\u043e, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 \u0438 \u0443\u0431\u0435\u0434\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2f7\/d60\/fd6\/2f7d60fd6056563e0fec1854935a6fef.png\" width=\"1061\" height=\"637\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2f7\/d60\/fd6\/2f7d60fd6056563e0fec1854935a6fef.png\"\/><\/figure>\n<p>\u0412\u0441\u0451 \u043a\u0430\u043a \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c, \u043d\u043e\u043c\u0435\u0440 \u0441\u043e\u0431\u0440\u0430\u043d \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e, \u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0437\u043e\u0432 \u043d\u0435 \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c. \u041f\u043e\u0440\u0430 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0443.<\/p>\n<p><a class=\"anchor\" name=\"a8\" id=\"a8\"><\/a><\/p>\n<h2>\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/h2>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b Project-&gt;Export\u2026 \u0438 \u0432 \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u043a\u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u00abWeb\u00bb.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u0432\u0430\u0448 \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u0434\u043b\u044f Web, Godot \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430.<\/p>\n<p>\u041d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u00abOptions\u00bb \u0432 \u0433\u0440\u0430\u0444\u0435 \u00abHeaders\u00bb \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u0430\u0448\u0443 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u043d\u0430 \u0431\u0430\u0437\u0435 WebSDK\u00a0 <code>&lt;script src=\"bundle.js\"&gt;&lt;\/script&gt;<\/code><em>.<\/em><\/p>\n<p><strong>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/strong> \u0412\u0430\u043c \u043d\u0430\u0434\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430, \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0435\u0451 \u043d\u0430 \u043a\u0430\u043a\u043e\u043c-\u043d\u0438\u0431\u0443\u0434\u044c cdn.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0432 \u044d\u0442\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u043f\u043a\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0431\u0443\u0434\u0435\u043c \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/41c\/c59\/aea\/41cc59aea96e014a8e1974c2df83938e.png\" width=\"927\" height=\"628\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/41c\/c59\/aea\/41cc59aea96e014a8e1974c2df83938e.png\"\/><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u00abResources\u00bb \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043c\u0430\u0441\u043a\u0443 *.json, \u0447\u0442\u043e\u0431\u044b \u0444\u0430\u0439\u043b game-config.json \u0431\u044b\u043b \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u0432 \u0444\u0430\u0439\u043b \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 index.pck.<\/p>\n<p>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u00abExport All\u2026\u00bb, \u0438 \u0432 \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u043a\u043d\u0435 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043b\u044e\u0431\u043e\u0439 \u0438\u0437 \u0440\u0435\u0436\u0438\u043c\u043e\u0432 \u00abDebug\u00bb \u0438\u043b\u0438 \u00abRelease\u00bb\u00a0<\/p>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043d\u0430 \u043a\u0430\u043a\u043e\u043c-\u043d\u0438\u0431\u0443\u0434\u044c web-\u0441\u0435\u0440\u0432\u0435\u0440\u0435. <br \/>\u042f \u0432\u044b\u0431\u0440\u0430\u043b \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435<a href=\"https:\/\/github.com\/ritwickdey\/vscode-live-server-plus-plus\"><u> Live Server<\/u><\/a> \u0432 VS Code.<\/p>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0438 \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u044b\u0433\u0440\u0430\u0442\u044c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5a0\/bce\/d42\/5a0bced429c6339c11e9266bbd9911c9.png\" alt=\"\u041d\u0430\u0447\u0430\u043b\u043e \u0438\u0433\u0440\u044b\" title=\"\u041d\u0430\u0447\u0430\u043b\u043e \u0438\u0433\u0440\u044b\" width=\"1216\" height=\"661\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5a0\/bce\/d42\/5a0bced429c6339c11e9266bbd9911c9.png\"\/><\/p>\n<div><figcaption><em>\u041d\u0430\u0447\u0430\u043b\u043e \u0438\u0433\u0440\u044b<\/em><\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ccd\/8bb\/c9a\/ccd8bbc9ae3e3d21540935bf59bdca36.png\" alt=\"\u0421\u0442\u0430\u0432\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\" title=\"\u0421\u0442\u0430\u0432\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\" width=\"1212\" height=\"664\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ccd\/8bb\/c9a\/ccd8bbc9ae3e3d21540935bf59bdca36.png\"\/><\/p>\n<div><figcaption><em>\u0421\u0442\u0430\u0432\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440<\/em><\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/14d\/cfa\/f89\/14dcfaf899fbedc85024990ed596a20a.png\" alt=\"\u041f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440\" title=\"\u041f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440\" width=\"1205\" height=\"658\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/14d\/cfa\/f89\/14dcfaf899fbedc85024990ed596a20a.png\"\/><\/p>\n<div><figcaption><em>\u041f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440<\/em><\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9cd\/f33\/9ff\/9cdf339ff1ab46d7adf31d09aa5c03f9.png\" alt=\"\u0412\u0441\u0435 \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u0438 \u043d\u0430\u0436\u0430\u043b\u0438 \u043a\u043d\u043e\u043f\u043a\u0443 \u201c\u041f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c\u2026\u201d\" title=\"\u0412\u0441\u0435 \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u0438 \u043d\u0430\u0436\u0430\u043b\u0438 \u043a\u043d\u043e\u043f\u043a\u0443 \u201c\u041f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c\u2026\u201d\" width=\"1191\" height=\"642\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9cd\/f33\/9ff\/9cdf339ff1ab46d7adf31d09aa5c03f9.png\"\/><\/p>\n<div><figcaption><em>\u0412\u0441\u0435 \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u0438 \u043d\u0430\u0436\u0430\u043b\u0438 \u043a\u043d\u043e\u043f\u043a\u0443 \u201c\u041f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c\u2026\u201d<\/em><\/figcaption><\/div>\n<\/figure>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043d\u043e\u043c\u0435\u0440 \u0432\u044b\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u0439 (\u043b\u044e\u0431\u044b\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u044b\u0437\u043e\u0432, \u043e \u0447\u0435\u043c \u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u0430\u0432 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430, \u043d\u043e \u0442\u0440\u0443\u0431\u043a\u0443 \u043d\u0430 \u0442\u043e\u043c \u043a\u043e\u043d\u0446\u0435 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0432\u043e\u0437\u044c\u043c\u0435\u0442.<\/p>\n<p>\u041d\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0432\u0432\u0435\u0434\u0435\u0442\u0435 \u0441\u0432\u043e\u0439 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043d\u043e\u043c\u0435\u0440, \u0442\u043e \u0432\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442 \u0432\u044b\u0437\u043e\u0432.<br \/><em>\u0415\u0441\u043b\u0438 \u0437\u0430\u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0435, \u0438 \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u0437\u0432\u043e\u043d\u043a\u0430 \u0441\u0435\u0440\u0432\u0438\u0441 \u0431\u0443\u0434\u0435\u0442 \u0440\u0443\u0433\u0430\u0442\u044c\u0441\u044f, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u0430\u0439\u0442\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c <\/em>\u00a0\u00ab<em>Insecure content<\/em>\u00bb.\u00a0<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3f6\/0ac\/fd2\/3f60acfd27e4ff2e5efd9e1b864ed6b2.png\" width=\"674\" height=\"124\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3f6\/0ac\/fd2\/3f60acfd27e4ff2e5efd9e1b864ed6b2.png\"\/><\/figure>\n<p>\u041f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u044e! \u0412\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u0443\u044e web \u0438\u0433\u0440\u0443 \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0432\u044b\u0437\u043e\u0432\u0430 \u043d\u043e\u043c\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430.<\/p>\n<p>\u0412 \u0438\u0434\u0435\u0430\u043b\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u043e\u043b\u043d\u043e\u0439 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0441\u0442\u0438. \u0423 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u043c\u044b\u0441\u043b\u0438 \u043f\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e <a href=\"https:\/\/docs.exolve.ru\/docs\/ru\/mobile-sdk\/?utm_source=habr&amp;utm_medium=refferal&amp;utm_campaign=websdk_article&amp;utm_content=article_sdkgamegodot&amp;utm_term=websdk_exolve\">\u0434\u0440\u0443\u0433\u0438\u0445 SDK \u043e\u0442 \u041c\u0422\u0421 Evolve<\/a>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 ReactNative \u0438\u043b\u0438 Flutter. \u0415\u0441\u043b\u0438 \u044f \u043f\u043e\u0439\u043c\u0443,\u00a0 \u0447\u0442\u043e \u0442\u0435\u043c\u0430 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430, \u0442\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0438\u0448\u0443 \u043e \u0441\u0432\u043e\u0451\u043c \u043e\u043f\u044b\u0442\u0435.<\/p>\n<p>\u0410 \u043f\u043e\u043a\u0430 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438.<\/p>\n<hr\/>\n<p><strong>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u043d\u0430\u0448 \u0425\u0430\u0431, \u0441\u043b\u0435\u0434\u0438\u0442\u0435 \u0437\u0430 \u043d\u043e\u0432\u044b\u043c\u0438 \u0433\u0430\u0439\u0434\u0430\u043c\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0439\u0442\u0435 \u043f\u0440\u0438\u0437<\/strong><\/p>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a \u043c\u044b \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u0441\u0440\u0435\u0434\u0438 \u043d\u043e\u0432\u044b\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432 \u043d\u0430\u0448\u0435\u0433\u043e<a href=\"https:\/\/habr.com\/ru\/companies\/exolve\/profile\/\">\u00a0\u0425\u0430\u0431\u0440-\u043a\u0430\u043d\u0430\u043b\u0430<\/a>\u00a0\u0438 \u0434\u0430\u0440\u0438\u043c \u043a\u0440\u0443\u0442\u044b\u0435 \u043f\u0440\u0438\u0437\u044b \u043e\u0442 \u041c\u0422\u0421 Exolve: \u0441\u0442\u0438\u043b\u044c\u043d\u044b\u0435 \u0440\u044e\u043a\u0437\u0430\u043a\u0438, \u043b\u043e\u043d\u0433\u0441\u043b\u0438\u0432\u044b \u0438 \u043c\u043e\u0449\u043d\u044b\u0435 \u0431\u0435\u0441\u043f\u0440\u043e\u0432\u043e\u0434\u043d\u044b\u0435 \u0437\u0430\u0440\u044f\u0434\u043a\u0438.<a href=\"https:\/\/community.exolve.ru\/forum\/forum1\/606-uchastvuyte-v-nashem-rozygryshe-na-khabre\/?utm_source=habr&amp;utm_medium=refferal&amp;utm_campaign=sms_api_article&amp;utm_content=article_smssurveynode&amp;utm_term=konkurs_exolve\">\u00a0\u041f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u0438 \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0440\u043e\u0437\u044b\u0433\u0440\u044b\u0448\u0435\u0439 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430<\/a>.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/865168\/\"> https:\/\/habr.com\/ru\/articles\/865168\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u0437\u0432\u043e\u043d\u043e\u043a \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0432 \u0438\u0433\u0440\u0435 \u043d\u0430 \u0434\u0432\u0438\u0436\u043a\u0435 Godot 4<\/p>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u0432\u0430\u043c \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u043e \u043f\u043e\u0437\u0434\u0440\u0430\u0432\u0438\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u043d\u0443 \u0438\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u043e\u0432\u0443\u044e \u0430\u043a\u0446\u0438\u044e. \u0412 \u0433\u043e\u043b\u043e\u0432\u0435 \u0443\u0436\u0435 \u0441\u043e\u0437\u0440\u0435\u043b \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u2013 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0437\u0432\u043e\u043d\u0438\u0442 \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440. \u0410 \u043c\u044b \u043d\u0430 \u0442\u043e\u043c \u043a\u043e\u043d\u0446\u0435 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u043c \u0435\u043c\u0443 \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u0443\u044e \u043d\u043e\u0432\u043e\u0441\u0442\u044c. \u0427\u0443\u0434\u0435\u0441\u0430 \u0434\u0430 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e!<\/p>\n<p>\u041d\u043e \u0432\u043e\u0442 \u043d\u0435\u0437\u0430\u0434\u0430\u0447\u0430, \u043e\u043f\u043b\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u043a\u0443\u0440\u0441\u044b \u00ab\u041a\u0430\u043a \u0441\u0442\u0430\u0442\u044c \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434-\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u043c \u0441 \u043d\u0443\u043b\u044f \u0434\u043e \u0442\u0435\u0445\u043b\u0438\u0434\u0430 \u0437\u0430 \u0434\u0432\u0430 \u0434\u043d\u044f\u00bb \u043d\u0430\u0447\u043d\u0443\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0434\u0435\u043b\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u0443\u043f\u0435\u0440 \u043a\u0440\u0443\u0442\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u2013 \u043f\u043e\u043a\u0430 \u0437\u0430 \u0433\u0440\u0430\u043d\u044c\u044e \u0432\u0430\u0448\u0438\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439.<\/p>\n<p>\u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e \u0432 \u0430\u043a\u0442\u0438\u0432\u0435 \u0435\u0441\u0442\u044c \u0436\u0433\u0443\u0447\u0435\u0435 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0433\u0440\u044b \u043d\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u043c \u0434\u0432\u0438\u0436\u043a\u0435 Godot, \u043f\u0430\u0440\u0430 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u0438 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0432 <a href=\"https:\/\/exolve.ru\/products\/mobile-sdk\/?utm_source=habr&amp;utm_medium=refferal&amp;utm_campaign=websdk_article&amp;utm_content=article_sdkgamegodot&amp;utm_term=websdk_exolve\">\u041c\u0422\u0421 Exolve<\/a>.<\/p>\n<p>\u041d\u0435 \u0431\u0443\u0434\u0435\u043c \u0442\u0435\u0440\u044f\u0442\u044c \u043d\u0438 \u043c\u0438\u043d\u0443\u0442\u044b \u0438 \u043d\u0430\u0447\u043d\u0435\u043c \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u0440\u0435\u0448\u0430\u0442\u044c.<\/p>\n<p>\u041e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435:<\/p>\n<ul>\n<li>\n<p><a href=\"#a1\">\u041f\u0430\u0440\u0430 \u0441\u043b\u043e\u0432 \u043f\u0440\u043e Godot \u0438 \u041c\u0422\u0421 Exolve WebSDK<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#a2\">\u0427\u0442\u043e \u0445\u043e\u0442\u0438\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#a3\">\u041f\u0430\u0440\u0430 \u0441\u043b\u043e\u0432 \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#a4\">\u0410\u0432\u0442\u043e\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 events.gd<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#a5\">\u0421\u0446\u0435\u043d\u0430 \u0441 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043d\u043e\u043c\u0435\u0440\u0430<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#a6\">\u0421\u0446\u0435\u043d\u0430 \u0441 \u043f\u0430\u043d\u0435\u043b\u044f\u043c\u0438 \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u043d\u043e\u043c\u0435\u0440\u043e\u0432<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#a7\">\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0446\u0435\u043d\u0430 \u0438\u0433\u0440\u044b<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#a8\">\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/a><\/p>\n<\/li>\n<\/ul>\n<p><a class=\"anchor\" name=\"a1\" id=\"a1\"><\/a><\/p>\n<h2>\u041f\u0430\u0440\u0430 \u0441\u043b\u043e\u0432 \u043f\u0440\u043e Godot \u0438 \u041c\u0422\u0421 Exolve WebSDK<\/h2>\n<p><a href=\"http:\/\/godotengine.org\"><strong><u>Godot<\/u><\/strong><\/a> \u2013 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 \u0434\u0432\u0438\u0436\u043e\u043a \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 2D \u0438 3D \u0438\u0433\u0440 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0440\u0435\u0434\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 Godot \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u041f\u041a \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c Windows\/Linux\/Mac, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043d\u0430 Android \/ IOS \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430\u0445 \u0438 \u0434\u0430\u0436\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 (\u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438). \u0412\u044b\u0431\u043e\u0440 \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0442\u043e\u0436\u0435 \u0432\u0435\u043b\u0438\u043a, \u043d\u043e \u043d\u0430\u0441 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u0443 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442 HTML 5.<\/p>\n<p><a href=\"https:\/\/docs.exolve.ru\/docs\/ru\/web-sdk\/?utm_source=habr&amp;utm_medium=refferal&amp;utm_campaign=websdk_article&amp;utm_content=article_sdkgamegodot&amp;utm_term=websdk_exolve\"><strong><u>WebSDK<\/u><\/strong><\/a> \u2013 \u044d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u0442 <a href=\"http:\/\/exolve.ru\/?utm_source=habr&amp;utm_medium=refferal&amp;utm_campaign=websdk_article&amp;utm_content=article_sdkgamegodot&amp;utm_term=websdk_exolve\"><u>\u041c\u0422\u0421 Exolve<\/u><\/a> \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0435\u0439 \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.<\/p>\n<p>Web SDK \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 npm \u043f\u0430\u043a\u0435\u0442\u0430. \u0414\u043b\u044f \u0438\u043c\u043f\u043e\u0440\u0442\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u00ab<a href=\"https:\/\/habr.com\/ru\/companies\/exolve\/articles\/847766\/#a2\"><u>\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0438\u0434\u0436\u0435\u0442 \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 XWiki<\/u><\/a>\u00bb \u043c\u044b \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u0441\u0432\u043e\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"https:\/\/github.com\/bosonbeard\/mts-habr\/tree\/main\/godot_web_sdk\/lib\"><u>bundle.js<\/u><\/a> \u043d\u0430 \u0431\u0430\u0437\u0435 WebSDK. \u041e\u043d\u0430 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p><a class=\"anchor\" name=\"a2\" id=\"a2\"><\/a><\/p>\n<h2>\u0427\u0442\u043e \u0445\u043e\u0442\u0438\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c<\/h2>\n<p>\u0418\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0446\u0435\u043b\u044f\u0445, \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0438\u0433\u0440\u0443.<\/p>\n<p>\u0412\u043e\u0437\u044c\u043c\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0431\u0435\u0437 \u043a\u043e\u0434\u0430 \u0441\u0442\u0440\u0430\u043d\u044b (\u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u0432\u0441\u0435\u0433\u0434\u0430 \u00ab7\u00bb) \u0438 \u0440\u0430\u0437\u043e\u0431\u044c\u0435\u043c \u0435\u0433\u043e \u043d\u0430 5 \u043f\u0430\u0440 \u043f\u043e \u0434\u0432\u0435 \u0446\u0438\u0444\u0440\u044b. \u041f\u0435\u0440\u0435\u043c\u0435\u0448\u0430\u0435\u043c \u043f\u0430\u0440\u044b \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043c \u0438\u0433\u0440\u043e\u043a\u0443 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u0435\u0440\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442 \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430 \u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0441\u0442\u0430\u043d\u0435\u0442 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0430 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0432\u044b\u0437\u043e\u0432\u0430. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0432\u044b\u0437\u043e\u0432, \u0430 \u043c\u044b \u0441\u043d\u0438\u043c\u0430\u0435\u043c \u0442\u0440\u0443\u0431\u043a\u0443 \u0438 \u0447\u0435\u0441\u0442\u0432\u0443\u0435\u043c \u0432\u0435\u043b\u0438\u0447\u0430\u0439\u0448\u0435\u0433\u043e \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u044b!<\/p>\n<figure class=\"\">\n<div><figcaption><em>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0440\u0430\u0431\u043e\u0442\u044b<\/em><\/figcaption><\/div>\n<\/figure>\n<p>\u0427\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0432\u043e\u043f\u043b\u043e\u0442\u0438\u0442\u044c \u0432 \u0436\u0438\u0437\u043d\u044c, \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0431\u0440\u0430\u0442\u044c \u043a \u0441\u0435\u0431\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 bundle.js, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043b \u0432\u044b\u0448\u0435, \u043d\u043e \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c SIP-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0432 \u043b\u0438\u0447\u043d\u043e\u043c \u043a\u0430\u0431\u0438\u043d\u0435\u0442\u0435 MT\u0421 Evolve. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <a href=\"https:\/\/habr.com\/ru\/companies\/exolve\/articles\/847766\/#a1\">\u00ab\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u044b\u00bb \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e WebSDK \u0438 XWiki<\/a>.<\/p>\n<p><a class=\"anchor\" name=\"a3\" id=\"a3\"><\/a><\/p>\n<h2>\u041f\u0430\u0440\u0430 \u0441\u043b\u043e\u0432 \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b<\/h2>\n<p>\u0424\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0437\u0430\u0434\u0438, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 Godot. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0432\u0435\u0440\u0441\u0438\u044e \u0434\u0432\u0438\u0436\u043a\u0430 4.3.<\/p>\n<p>\u0418\u0437\u0443\u0447\u0438\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 <a href=\"https:\/\/github.com\/bosonbeard\/mts-habr\/tree\/main\/godot_web_sdk\">GitHub<\/a>.<\/p>\n<p>\u0422\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0434\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440: \u044f \u043d\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043d\u044f\u0442\u044b\u0435 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u0441\u0430\u043c\u044b\u043c\u0438 \u043b\u0443\u0447\u0448\u0438\u043c\u0438. \u042d\u0442\u043e \u043b\u0438\u0448\u044c \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043a\u043e\u043d\u0446\u0435\u043f\u0442\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u0432 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<\/p>\n<p>\u042f \u0440\u0435\u0448\u0438\u043b \u043d\u0435 \u00ab\u0440\u0430\u0437\u0434\u0443\u0432\u0430\u0442\u044c\u00bb \u0441\u0442\u0430\u0442\u044c\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u0431\u0443\u0434\u0443 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u0443\u0437\u043b\u043e\u0432 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u043b\u043e\u0433\u0438\u043a\u043e\u0439. \u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0435 \u043f\u0440\u043e \u043a\u0440\u0430\u0441\u043e\u0442\u0443. \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438. \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0438 \u043f\u0440\u043e\u0449\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0438\u0437\u0443\u0447\u0438\u0442\u044c <a href=\"https:\/\/github.com\/bosonbeard\/mts-habr\/tree\/main\/godot_web_sdk\/\"><u>\u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442<\/u><\/a>.<\/p>\n<p>\u0418\u0433\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u0442\u0440\u0435\u0445 \u0441\u0446\u0435\u043d \u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430.<\/p>\n<ul>\n<li>\n<p>\u0421\u0446\u0435\u043d\u0430 game.tscn \u2013 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0441\u0446\u0435\u043d\u0430 \u0438\u0433\u0440\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u043a\u043b\u044e\u0447\u0435\u0432\u0430\u044f \u0442\u0435\u0445\u043d\u0438\u043a\u0430<\/p>\n<\/li>\n<li>\n<p>\u0421\u0446\u0435\u043d\u0430 number.tscn \u2013 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u043e\u043c\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430<\/p>\n<\/li>\n<li>\n<p>\u0421\u0446\u0435\u043d\u0430 number_pannel.tscn \u2013 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u0435\u043c\u043d\u0438\u043a\u0430 \u0434\u043b\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u043e\u043c\u0435\u0440\u0430.<\/p>\n<\/li>\n<li>\n<p>events.gd \u2013 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043b, \u043f\u043e \u0441\u0443\u0442\u0438 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0448\u0438\u043d\u044b \u0441\u043e\u0431\u044b\u0442\u0438\u0439.<\/p>\n<\/li>\n<\/ul>\n<p><a class=\"anchor\" name=\"a4\" id=\"a4\"><\/a><\/p>\n<h2>\u0410\u0432\u0442\u043e\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 events.gd<\/h2>\n<p>Events.gd \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0439 \u0434\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u0438\u0433\u043d\u0430\u043b <code>pannel_change_number<\/code>.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u043a \u0441\u0446\u0435\u043d\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 events.gd<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434  <\/summary>\n<div class=\"spoiler__content\">\n<pre><code>extends Node signal pannel_change_number func _ready() -&gt; void: pass # Replace with function body. func _process(delta: float) -&gt; void: pass<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 (Project Settings -&gt; Globals) \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443.<\/p>\n<p><a class=\"anchor\" name=\"a5\" id=\"a5\"><\/a><\/p>\n<h2>\u0421\u0446\u0435\u043d\u0430 \u0441 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043d\u043e\u043c\u0435\u0440\u0430<\/h2>\n<p>\u0421\u0446\u0435\u043d\u0430 number.tscn \u0421\u0446\u0435\u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043b\u043e\u0433\u0438\u043a\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u043d\u043e\u043c\u0435\u0440\u0430 \u0438 \u0435\u0433\u043e \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440.<\/p>\n<figure class=\"\"><\/figure>\n<p>\u00a0\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u044b (\u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438):<\/p>\n<ul>\n<li>\n<p>Number (Control) \u2013\u00a0 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/p>\n<ul>\n<li>\n<p>Panel \u2013\u00a0 \u043f\u0430\u043d\u0435\u043b\u044c \u0441 \u0437\u0430\u043b\u0438\u0432\u043a\u043e\u0439 \u0438 \u0440\u0430\u043c\u043a\u043e\u0439.<\/p>\n<ul>\n<li>\n<p>NumberLabel (Label) \u2013 \u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u043d\u043e\u043c\u0435\u0440\u0430<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><em>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0437\u0434\u0435\u0441\u044c \u0438 \u0434\u0430\u043b\u0435\u0435 \u0435\u0441\u043b\u0438 \u0442\u0438\u043f \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0443\u0437\u043b\u0430 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442, \u0442\u0438\u043f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u043a\u043e\u0431\u043a\u0430\u0445.<\/em><\/p>\n<p>\u041a \u0441\u0446\u0435\u043d\u0435 \u043f\u0440\u0438\u0432\u044f\u0436\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 <em>number.gd.<\/em><\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434.<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>extends Control  @export var current_number := \"00\" var drag_preview  # Called when the node enters the scene tree for the first time. func _ready() -&gt; void: $Panel\/NumberLabel.text =\u00a0 current_number  func change_color(hexcolor:String): $Panel\/NumberLabel.set(\"theme_override_colors\/font_color\",hexcolor)  func change_current_number(number:String): current_number = number $Panel\/NumberLabel.text =\u00a0 current_number  # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -&gt; void: pass  func _get_drag_data(at_position: Vector2): var preview = load('res:\/\/scenes\/number\/number.tscn').instantiate() set_drag_preview(preview) preview.change_current_number(current_number) drag_preview = preview return self<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043a\u043e\u0434 \u043f\u043e \u0447\u0430\u0441\u0442\u044f\u043c<\/p>\n<p><code>@export var currentNumber := \"00\"<\/code><\/p>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0443 \u043d\u043e\u043c\u0435\u0440\u0430.<br \/>\u041e\u0442\u043c\u0435\u0447\u0435\u043d\u0430 \u043a\u0430\u043a @export \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440.<\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438 <em>\u00a0<\/em><code>change_color<\/code><em> \u0438 <\/em><code>change_current_number<\/code> \u043f\u0440\u043e\u0441\u0442\u044b \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0438\u0445 \u043c\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043c.<\/p>\n<p>\u0410 \u0432\u043e\u0442 \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435.<\/p>\n<pre><code>func _get_drag_data(at_position: Vector2): var preview = load('res:\/\/scenes\/number\/number.tscn').instantiate() set_drag_preview(preview) preview.change_current_number(current_number) drag_preview = preview return self<\/code><\/pre>\n<p><code>_get_drag_data<\/code><em> \u2013<\/em>\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u0432\u0438\u0436\u043a\u0430, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0435\u0451 \u0441\u0432\u043e\u0435\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439.<\/p>\n<p>\u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0430\u0436\u043d\u044b \u0434\u0432\u0435 \u0432\u0435\u0449\u0438: \u043f\u0440\u0435\u0432\u044c\u044e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u044f, \u0438 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u0438\u0435\u043c\u043d\u0438\u043a\u0443.<\/p>\n<p>\u0412 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u0438\u043b\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <code>drag_preview<\/code><em>, <\/em>\u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0435\u0451 \u0432 \u043f\u0440\u0438\u0435\u043c\u043d\u0438\u043a \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0441\u0446\u0435\u043d\u044b.<\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e \u0441\u0443\u0442\u0438 \u043a\u043e\u043f\u0438\u044e \u0441\u0446\u0435\u043d\u044b <em>number.tscn, <\/em>\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u0434\u0432\u0438\u0436\u043a\u0443 \u0447\u0442\u043e \u0435\u0451 \u043d\u0430\u0434\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043f\u0440\u0435\u0432\u044c\u044e \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430.<\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0443\u0436\u043d\u044b\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043d\u043e\u043c\u0435\u0440\u0430 \u043c\u044b \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0441\u0446\u0435\u043d\u0435, \u0442\u043e \u0432 \u043f\u0440\u0435\u0432\u044c\u044e \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 <code>current_number<\/code><em> <\/em>\u0441\u0446\u0435\u043d\u044b, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0443\u0436\u043d\u044b\u0445 \u0446\u0438\u0444\u0440 \u0431\u0443\u0434\u0435\u043c \u0432\u0438\u0434\u0435\u0442\u044c \u00ab00\u00bb.<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043c\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0432\u0441\u044e \u0441\u0446\u0435\u043d\u0443 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0435\u0451 \u043f\u0440\u0435\u0432\u044c\u044e, \u044d\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430\u043c \u0432 \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440.<\/p>\n<p><a class=\"anchor\" name=\"a6\" id=\"a6\"><\/a><\/p>\n<h2>\u0421\u0446\u0435\u043d\u0430 \u0441 \u043f\u0430\u043d\u0435\u043b\u044f\u043c\u0438 \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u043d\u043e\u043c\u0435\u0440\u043e\u0432<\/h2>\n<p>\u0421\u0446\u0435\u043d\u0430 number_pannel.tscn \u0421\u0446\u0435\u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043b\u043e\u0433\u0438\u043a\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u043d\u043e\u043c\u0435\u0440\u0430 \u0438 \u0435\u0433\u043e \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u00a0\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u044b (\u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438):<\/p>\n<ul>\n<li>\n<p>NumberPannel (Control) \u2013\u00a0 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/p>\n<ul>\n<li>\n<p>Panel \u2013\u00a0 \u043f\u0430\u043d\u0435\u043b\u044c \u0441 \u0437\u0430\u043b\u0438\u0432\u043a\u043e\u0439 \u0438 \u0440\u0430\u043c\u043a\u043e\u0439.<\/p>\n<ul>\n<li>\n<p>NumberLabel (Label) \u2013 \u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u043d\u043e\u043c\u0435\u0440\u0430 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u041a \u0441\u0446\u0435\u043d\u0435 \u043f\u0440\u0438\u0432\u044f\u0436\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 number_pannel.gd<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>extends Control  @export var correct_number := \"00\" @export var current_number = \"--\"  func _ready() -&gt; void: pass # Replace with function body.  # change container number func change_current_number(number:String): current_number = number $Panel\/NumberLabel.text =  current_number  func change_correct_number(number:String): correct_number = number  func _process(delta: float) -&gt; void: pass  func _can_drop_data(at_position: Vector2, data: Variant):  # color hint for drag and drop if data.current_number == self.correct_number: data.drag_preview.change_color(\"#00FF00\") return true else: data.drag_preview.change_color(\"#FF0000\") return false  func _drop_data(at_position: Vector2, data: Variant): # change number in receiver container and delete dropped panel change_current_number (data.current_number) data.queue_free() Events.pannel_change_number.emit() <\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0421\u0446\u0435\u043d\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 number.tscn \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445 <code>can_drop_data<\/code><em> <\/em>\u0438 <code>can_drop_data<\/code>. \u041a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 <code>_get_drag_data \u044d\u0442\u043e<\/code> \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u0432\u0438\u0436\u043a\u0430, \u043b\u043e\u0433\u0438\u043a\u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c.<\/p>\n<pre><code>func _can_drop_data(at_position: Vector2, data: Variant):  # color hint for drag and drop if data.current_number == self.correct_number: data.drag_preview.change_color(\"#00FF00\") return true else: data.drag_preview.change_color(\"#FF0000\") return false<\/code><\/pre>\n<p>\u041e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0442\u043e, \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u043d\u0430\u043c \u00ab\u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c\u00bb \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u043d\u0430 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0441\u0446\u0435\u043d\u044b number_pannel.tscn.<\/p>\n<p>\u041c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u043b\u0438 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043d\u043e\u043c\u0435\u0440\u0430 \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c. \u0415\u0441\u043b\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442, \u0442\u043e \u043c\u044b \u043a\u0440\u0430\u0441\u0438\u043c \u043f\u0440\u0435\u0432\u044c\u044e \u0437\u0435\u043b\u0435\u043d\u044b\u043c \u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0441\u0431\u0440\u043e\u0441, \u0438\u043d\u0430\u0447\u0435 \u2013 \u043a\u0440\u0430\u0441\u0438\u043c \u0432 \u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0438 \u043d\u0435 \u0434\u0430\u0435\u043c \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442.<\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0443 \u043d\u0430\u0441 \u0432 \u0441\u0446\u0435\u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d \u0442\u0438\u043f \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0438\u0437\u043b\u0438\u0448\u043d\u0438\u043c\u0438.<\/p>\n<pre><code>func _drop_data(at_position: Vector2, data: Variant):  # change number in receiver container and delete dropped panel change_current_number (data.current_number) data.queue_free() Events.pannel_change_number.emit()<\/code><\/pre>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u044b:<\/p>\n<ol>\n<li>\n<p>\u043c\u0435\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u043e\u043c\u0435\u0440\u0430 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043d\u043e\u043c\u0435\u0440\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0441\u044b\u043b\u0430\u0435\u043c \u0441\u0438\u0433\u043d\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u043d\u044c\u0448\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0432 events.gd, \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u0438\u0433\u043d\u0430\u043b \u043c\u044b \u043f\u043e\u0434\u043f\u0438\u0448\u0435\u043c\u0441\u044f \u0432 \u0441\u0446\u0435\u043d\u0435 game.tscn \u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u043d.<\/p>\n<\/li>\n<\/ol>\n<p><a class=\"anchor\" name=\"a7\" id=\"a7\"><\/a><\/p>\n<h2>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0446\u0435\u043d\u0430 \u0438\u0433\u0440\u044b<\/h2>\n<p>\u0412\u043e\u0442 \u0438 \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u044b \u0438\u0433\u0440\u044b.<\/p>\n<p>\u0421\u0446\u0435\u043d\u0430 game.tscn \u0421\u0446\u0435\u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0433\u043b\u0430\u0432\u043d\u0443\u044e. \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0443 \u0438\u0433\u0440\u044b, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u00ab\u0437\u0432\u043e\u043d\u043e\u043a \u0434\u0440\u0443\u0433\u0443\u00bb.<\/p>\n<p>\u00a0<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u00a0\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u044b (\u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438):<\/p>\n<ul>\n<li>\n<p>Background (TextureRect) \u2013 backround \u0438\u0433\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>VBoxContainer \u2013 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f<\/p>\n<ul>\n<li>\n<p>HeaderTable (GridContainer) \u2013 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442 \u0442\u0440\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043a\u0430\u043a \u0442\u0440\u0438 \u043a\u043e\u043b\u043e\u043d\u043a\u0438 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b.<\/p>\n<ul>\n<li>\n<p>HeaderMargin1 (MarginContainer) \u2013 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u043e\u0442\u0441\u0442\u0443\u043f\u0430 Label<\/p>\n<ul>\n<li>\n<p>Label \u2013 \u0442\u0435\u043a\u0441\u0442 \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438 \u0438\u0433\u0440\u044b<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Container (MarginContainer) \u2013 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u043e\u0442\u0441\u0442\u0443\u043f\u0430 \u043f\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435<\/p>\n<\/li>\n<li>\n<p>HeaderMargin2 (MarginContainer) \u2013<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-443049","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/443049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=443049"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/443049\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=443049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=443049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=443049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}