{"id":363098,"date":"2024-05-21T01:48:52","date_gmt":"2024-05-21T01:48:52","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=363098"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-05-21T01:48:52","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=363098","title":{"rendered":"<span>\u0422\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u0432 Firefly Studios \u0438\u043b\u0438 \u0438\u0433\u0440\u0430 \u0437\u0430 \u0447\u0430\u0441<\/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<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/a6b\/89c\/9c9\/a6b89c9c9382a7cfb055f3e8d36268db.jpg\" width=\"640\" height=\"446\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a6b\/89c\/9c9\/a6b89c9c9382a7cfb055f3e8d36268db.jpg\" data-blurred=\"true\"\/><\/figure>\n<p>\u041f\u0430\u0440\u0443 \u043d\u0435\u0434\u0435\u043b\u044c \u043d\u0430\u0437\u0430\u0434, \u043d\u0430 \u043c\u0435\u043d\u044f \u0432\u044b\u0448\u043b\u0430 HR &#171;\u0441\u0432\u0435\u0442\u043b\u044f\u0447\u043a\u043e\u0432&#187; \u0438 \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u043b\u0430 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e \u043f\u043e\u0437\u0438\u0446\u0438\u0438 AI \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435\u0440\u0430 \u0432 \u0438\u0445 \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0430\u0440\u0443\u044e \u0438\u0433\u0440\u0443. \u042f \u0431\u044b\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0434\u0438\u0432\u043b\u0435\u043d, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u043f\u0430\u0440\u043e\u0439 \u0440\u0435\u0431\u044f\u0442 \u0438\u0437 \u0441\u0442\u0443\u0434\u0438\u0438 \u0438 \u0437\u043d\u0430\u044e, \u0447\u0442\u043e \u043d\u0430\u0439\u043c \u0443 \u043d\u0438\u0445 \u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d. \u041d\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u0441 \u0443\u043c\u043d\u044b\u043c\u0438 \u043b\u044e\u0434\u044c\u043c\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0441\u0442\u0430\u043b. \u041f\u0435\u0440\u0432\u044b\u0439 \u0441\u043e\u0437\u0432\u043e\u043d \u0441 HR \u0432\u044b\u0448\u0435\u043b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439, \u0433\u0434\u0435 \u043d\u0430\u0434 \u0447\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u043b, \u043a\u0430\u043a\u0438\u0435 \u0438\u0433\u0440\u044b \u0448\u0438\u043f\u043d\u0443\u043b. \u041d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u0437\u0430\u0447\u0435\u043c \u0432\u0441\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u044d\u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430 \u043b\u0438\u043d\u043a\u0435\u0434\u0438\u043d\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0438 \u0441 \u0434\u0430\u0442\u0430\u043c\u0438. \u041d\u0443 \u0434\u0430 \u043b\u0430\u0434\u043d\u043e &#8212; \u0432\u0438\u0434\u043d\u043e \u0442\u0430\u043a\u0430\u044f \u0438\u0445 \u044d\u0439\u0447\u0430\u0440\u0441\u043a\u0430\u044f \u0434\u043e\u043b\u044f \u043f\u043e \u0442\u0440\u0438\u0434\u0446\u0430\u0442\u044c \u0442\u0440\u0438 \u0440\u0430\u0437\u0430 \u043f\u0435\u0440\u0435\u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c. \u0418\u043b\u0438 HR \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043b\u0435\u043d\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c.<\/p>\n<p>\u0417\u0430\u0431\u0443\u043a\u0430\u043b\u0438 \u0432\u0440\u0435\u043c\u044f \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e. \u0412 \u043f\u043e\u043b\u0434\u0435\u043d\u044c \u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430 \u043d\u0430 \u0432\u0441\u0442\u0440\u0435\u0447\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a \u0441\u0442\u0443\u0434\u0438\u0438 \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u044e\u043c\u0435\u0448\u043a\u0443 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0433\u0434\u0435 \u043d\u0430\u0442\u044b\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u043a\u0440\u0438\u043d \u043e\u043f\u0435\u043d\u0441\u043e\u0440\u0441\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 StoneKingdoms, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043a\u043e\u043c\u0438\u0442\u0438\u043b. \u041f\u0440\u043e\u0435\u043a\u0442, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e, \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0431\u043b\u0430\u0433\u043e\u0441\u043b\u043e\u0432\u0435\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0433\u043e Simon Bradbury (\u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 \u0441\u0442\u0443\u0434\u0438\u0438), \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438\u0437 Stronghold \u043d\u0435\u0442. \u041f\u043e\u0441\u044b\u043f\u0430\u043b\u0438\u0441\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u0430 \u0447\u0442\u043e \u0437\u0430 \u043f\u0440\u043e\u0435\u043a\u0442? \u0430 \u043a\u0430\u043a \u0434\u0435\u043b\u0430\u0435\u0442\u0435? \u0438 \u0447\u0442\u043e \u0432\u0441\u0435 \u043d\u0430 lua? \u0430 \u043a\u0430\u043a \u0436\u0435 \u043f\u043b\u044e\u0441\u044b? \u0413\u0434\u0435-\u0442\u043e \u043d\u0430 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430 \u043a \u043d\u0430\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a &#171;\u0441\u0432\u0435\u0442\u043b\u044f\u0447\u043a\u043e\u0432&#187;, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0435\u0449\u0435 \u0432 2010, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d \u043f\u043e\u043c\u043e\u0433\u0430\u043b \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 Caesar III \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0430\u0432\u0430\u043b \u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u0438 \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0438\u0433\u0440\u043e\u0432\u0430\u044f \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u044f. \u041c\u044b \u0438 \u0441\u0435\u0439\u0447\u0430\u0441 \u0438\u043d\u043e\u0433\u0434\u0430 \u043e\u0431\u0449\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0435 \u043f\u043e \u0440\u0435\u043c\u0435\u0439\u043a\u0430\u043c \u0441\u0442\u0430\u0440\u044b\u0445 \u0438\u0433\u0440.<\/p>\n<hr\/>\n<p>\u0415\u0441\u0442\u044c \u0443 \u044d\u0442\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043e\u0434\u043d\u0430 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c &#8212; \u0435\u0441\u043b\u0438 \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0433\u0434\u0435 \u043e\u043d \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u043b, \u0442\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u0447\u0430\u0441\u0430 \u0432\u0441\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043b\u0443\u0448\u0430\u0442\u044c \u0431\u0430\u0439\u043a\u0438 \u0438 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043a\u0430\u043a \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u0435\u043b\u0430\u043b\u0438. \u0410 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u043d \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0438 \u0441 \u043e\u0433\u043e\u043d\u044c\u043a\u043e\u043c, \u0431\u044b\u0432\u0430\u043b\u043e \u0438 \u043f\u0430\u0440\u043e\u0439 \u0447\u0430\u0441\u043e\u0432 \u0432\u0441\u0435 \u043d\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u043b\u043e\u0441\u044c. \u041c\u044b \u043a\u0430\u043a \u0440\u0430\u0437 \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0435\u043d\u0435\u0439 \u043d\u0430 \u0438\u0437\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0430\u0440\u0442\u0435. \u041d\u0430\u0434\u043e \u0431\u044b\u043b \u0432\u0438\u0434\u0435\u0442\u044c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043b\u0438\u0446\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e\u0435\u0440\u0430, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u043f\u043e\u0437\u0434\u043e\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0441\u043e \u043c\u043d\u043e\u0439 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0438 \u0441\u043f\u0440\u043e\u0441\u0438\u043b \u043a\u0430\u043a \u043f\u0440\u043e\u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043d\u0430\u0434 <a href=\"https:\/\/github.com\/dalerank\/Akhenaten\" rel=\"noopener noreferrer nofollow\">\u0424\u0430\u0440\u0430\u043e\u043d\u043e\u043c<\/a>. \u0410 \u043f\u043e\u0442\u043e\u043c \u043c\u044b \u0441\u043b\u0443\u0448\u0430\u043b\u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437 \u043a\u0430\u043a \u0442\u0435\u043d\u0438 \u0431\u044b\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u0432 \u043f\u0435\u0440\u0432\u043e\u043c Stronghold&#8217;e, \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043a\u0430\u043a-\u0442\u043e \u043e\u0442\u043e\u0448\u043b\u0438 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443. \u0427\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u0438 \u0432\u043e\u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u0448\u0435\u043b \u043d\u0430 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u0433\u0440 <a href=\"https:\/\/habr.com\/ru\/articles\/239013\/\" rel=\"noopener noreferrer nofollow\">\u0432\u0440\u0435\u043c\u0435\u043d \u0414\u0440\u0435\u0432\u043d\u0435\u0433\u043e \u0420\u0438\u043c\u0430<\/a> \u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/767892\/\" rel=\"noopener noreferrer nofollow\">\u043f\u044f\u0442\u043e\u0439 \u0434\u0438\u043d\u0430\u0441\u0442\u0438\u0438 \u0415\u0433\u0438\u043f\u0442\u0430<\/a>. <\/p>\n<p>\u041f\u0440\u043e \u043e\u043f\u0435\u043d\u0441\u043e\u0440\u0441 Stronghold: \u044f \u0442\u0443\u0434\u0430 \u0443\u0436\u0435 \u043d\u0435 \u043a\u043e\u043c\u0438\u0447\u0443, \u043d\u043e \u0435\u0441\u043b\u0438 \u0443 \u043a\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435, \u0442\u0430\u043c \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0438\u0437 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u0433\u0440\u044b (<a href=\"https:\/\/gitlab.com\/stone-kingdoms\/stone-kingdoms\" rel=\"noopener noreferrer nofollow\">https:\/\/gitlab.com\/stone-kingdoms\/stone-kingdoms<\/a>)<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ba6\/d9e\/9f1\/ba6d9e9f102f4a536e9a63d281640b4d.png\" alt=\"The stock pile is full. My lord!\" title=\"The stock pile is full. My lord!\" width=\"1599\" height=\"899\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ba6\/d9e\/9f1\/ba6d9e9f102f4a536e9a63d281640b4d.png\"\/><\/p>\n<div><figcaption>The stock pile is full. My lord!<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/952\/705\/9dc\/9527059dc1162e62fbb11514ca4b231c.png\" alt=\"\u0410 \u044d\u0442\u043e \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f - \u043d\u0430\u0439\u0434\u0438\u0442\u0435 \u043f\u044f\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0438\u0439\" title=\"\u0410 \u044d\u0442\u043e \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f - \u043d\u0430\u0439\u0434\u0438\u0442\u0435 \u043f\u044f\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0438\u0439\" width=\"1024\" height=\"768\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/952\/705\/9dc\/9527059dc1162e62fbb11514ca4b231c.png\"\/><\/p>\n<div><figcaption>\u0410 \u044d\u0442\u043e \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f &#8212; \u043d\u0430\u0439\u0434\u0438\u0442\u0435 \u043f\u044f\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0438\u0439<\/figcaption><\/div>\n<\/figure>\n<p>\u0427\u0430\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u043e\u0442\u0432\u0435\u0434\u0435\u043d \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u043f\u0440\u043e\u043b\u0435\u0442\u0435\u043b, \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u0435\u0433\u043e. \u041f\u043e\u0434 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e\u0435\u0440 \u0441\u043f\u0440\u043e\u0441\u0438\u043b \u0432 \u0448\u0443\u0442\u043a\u0443 \u0441\u043e\u0433\u043b\u0430\u0448\u0443\u0441\u044c \u043b\u0438 \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0435, \u044f \u0442\u0430\u043a\u0436\u0435 \u0432 \u0448\u0443\u0442\u043a\u0443 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u043b\u0441\u044f. \u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0441\u043c\u044b\u0441\u043b\u0430  \u0432 \u043d\u0435\u043c \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e, \u043d\u043e \u043c\u0435\u043d\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0438 \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u043e\u0437\u0433\u043e\u043b\u043e\u043c\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u0443\u0434\u0438\u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u044e\u0442 \u0434\u043b\u044f \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432. \u0418\u0442\u0430\u043a, \u0437\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441 \u0441\u043e\u0431\u0435\u0441\u0430 \u043d\u0430 \u043b\u0430\u0439\u0432 \u043a\u043e\u0434\u0438\u043d\u0433\u0435 \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0433\u0440\u0443, \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u043e \u043f\u0440\u0438\u043d\u044f\u0442\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445 \u043f\u043e \u0445\u043e\u0434\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u0433\u0440\u044b. \u041d\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c &#8212; \u0437\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u043b\u0438\u0448\u043d\u044e\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e\u0441\u043b\u0435 150-\u043e\u0439 \u043e\u0442\u043d\u0438\u043c\u0430\u043b\u0441\u044f \u0431\u0430\u043b\u043b, \u0437\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u043a\u043e\u0434\u0430 \u043f\u0435\u0440\u0435\u0434 150-\u043e\u0439 &#8212; \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b\u0441\u044f \u0431\u0430\u043b\u043b. \u041a\u0430\u043a \u043f\u043e\u0442\u043e\u043c \u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u043c\u043e\u0438 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435, \u0440\u0435\u043a\u043e\u0440\u0434 \u0431\u044b\u043b 85 \u0441\u0442\u0440\u043e\u043a \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0430\u0440\u043a\u0430\u043d\u043e\u0438\u0434\u0430 \u0438 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0417\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u0433\u0440\u043e\u0432\u0443\u044e \u0444\u0438\u0447\u0443 \u0432\u0440\u043e\u0434\u0435 \u0436\u0438\u0437\u043d\u0435\u0439 \u0438\u043b\u0438 \u043e\u0447\u043a\u043e\u0432, \u0435\u0449\u0435 \u043f\u043b\u044e\u0441 10 \u0431\u0430\u043b\u043b\u043e\u0432. \u0417\u0430 \u043d\u0435\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0439 \u0438\u043b\u0438 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 \u043a\u043e\u0434 \u0442\u0430\u043a\u0436\u0435 \u0441\u043d\u0438\u043c\u0430\u044e\u0442 \u0431\u0430\u043b\u043b\u044b, \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u043c\u043e\u0433\u0443\u0442 \u0441\u043d\u044f\u0442\u044c 30.<\/p>\n<p>\u0417\u0430 \u0447\u0430\u0441 \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0433\u0440\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u0440\u043a\u0430\u043d\u043e\u0438\u0434.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/aa4\/b51\/415\/aa4b51415da4d7c59583367073cf46f8.png\" alt=\"\u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0435 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u043b\u044e\u0434\u0438 \u043f\u0438\u0448\u0443\u0442 \u0437\u0430 5 \u043d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\" title=\"\u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0435 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u043b\u044e\u0434\u0438 \u043f\u0438\u0448\u0443\u0442 \u0437\u0430 5 \u043d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\" width=\"691\" height=\"210\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aa4\/b51\/415\/aa4b51415da4d7c59583367073cf46f8.png\"\/><\/p>\n<div><figcaption>\u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0435 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u043b\u044e\u0434\u0438 \u043f\u0438\u0448\u0443\u0442 \u0437\u0430 5 \u043d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u043e \u043d\u0435 \u043f\u043e\u0434\u0443\u043c\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u0442\u0430\u043c \u0441\u043e\u0432\u0441\u0435\u043c \u0443\u0436 \u0437\u0432\u0435\u0440\u0438 \u0441\u0438\u0434\u044f\u0442 &#8212; \u0441 \u043d\u0443\u043b\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0433\u0440\u0443. \u0414\u0430\u0436\u0435 \u0442\u0430\u043a\u0443\u044e \u043f\u0440\u043e\u0441\u0442\u0443\u044e. \u041a\u0430\u0440\u043a\u0430\u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d, \u043d\u0430\u0434\u043e \u043d\u0430\u043a\u0438\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0435\u0439 \u043b\u043e\u0433\u0438\u043a\u0438, \u0438 \u043a\u0430\u043a \u044f \u0441\u043a\u0430\u0437\u0430\u043b \u0432\u044b\u0448\u0435, \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0442\u044c\u0441\u044f \u0443\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 150 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430. \u042f \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0438\u0448\u0443 \u043a\u043e\u0434, \u0438 \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u0440\u0435\u043c\u044f \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c \u043d\u0430\u0434 \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435 \u0438\u043b\u0438 \u0433\u0434\u0435-\u0442\u043e \u0443\u0436\u0435 \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439, \u0432 \u043f\u043b\u0430\u043d\u0435 \u0443\u0441\u043f\u0435\u0442\u044c \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<pre><code class=\"cpp\">#include &lt;SDL.h>  const int SCREEN_WIDTH = 800; const int SCREEN_HEIGHT = 600;  const int BRICK_WIDTH = 48; const int BRICK_HEIGHT = 20;  struct Brick{     SDL_Rect rect; } ;  struct Ball {     SDL_Rect rect; } ;  struct Paddle {     SDL_Rect rrect; } ;  struct Game {     Brick bricks[16][10];     Ball ball;     Paddle paddle; };  int main(int argc, char* args[]) {     Game game;      SDL_Window* window = NULL;     SDL_Surface* screenSurface = SDL_GetWindowSurface(window);      SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO);     window = SDL_CreateWindow( \"Strongout\", 50, 50,                                SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN );     bool quit = false;     while (!quit) {         SDL_Event event;         while (SDL_PollEvent(&amp;event)){             if( event.type == SDL_QUIT){                 quit = true;                 break;             }              if( event.type == SDL_KEYDOWN ){             }              if( event.type == SDL_KEYUP ){             }          }         SDL_FillRect(screenSurface, NULL,                       SDL_MapRGB( screenSurface->format, 0, 0, 0));         \/\/ Your code here         SDL_UpdateWindowSurface(window);     }      SDL_DestroyWindow(window);     SDL_Quit();     return 0; }<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0431\u044b\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u043a\u0438\u0440\u043f\u0438\u0447\u0435\u0439. \u041f\u0440\u043e\u0448\u0443 \u043d\u0435 \u0440\u0443\u0433\u0430\u0442\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u0437\u0430 \u043a\u043e\u0434, \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442\u043b\u0430\u0434\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0434\u0443\u043c\u0430\u0442\u044c \u043e\u0431 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u043e\u0447\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0438\u0441\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u0442\u043e\u043f\u043e\u0440\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0438\u0442\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c.<\/p>\n<pre><code class=\"cpp\">void drawLiveBricks(SDL_Surface* screen, SDL_Window* window, Game &amp;game) {     for (int i = 0; i &lt; 16; i++) {         for (int j = 0; j &lt; 10; j++){             if (game.bricks[i][j].is_alive) {                 SDL_FillRect(screen, &amp;game.bricks[i][j].rect,                               SDL_MapRGB( screen->format, 255, 0, 0));             }         }     } } <\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/acd\/f62\/cea\/acdf62ceac9340f8718f665e966badd5.png\" width=\"800\" height=\"601\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/acd\/f62\/cea\/acdf62ceac9340f8718f665e966badd5.png\"\/><\/figure>\n<p> \u041f\u043e\u0442\u043e\u043c \u043d\u0430\u0441\u0442\u0430\u043b \u0447\u0435\u0440\u0435\u0434 \u043f\u043b\u0430\u043d\u043a\u0438 \u0438 \u0448\u0430\u0440\u0438\u043a\u0430<\/p>\n<pre><code>SDL_FillRect(screenSurface, &amp;game.paddle.rect, SDL_MapRGB( screenSurface->format, 0, 255, 0)); SDL_FillRect(screenSurface, &amp;game.ball.rect, SDL_MapRGB( screenSurface->format, 255, 255, 255));<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/af4\/194\/3e5\/af41943e50b35ce231d1497bb5ed6363.png\" width=\"797\" height=\"596\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/af4\/194\/3e5\/af41943e50b35ce231d1497bb5ed6363.png\"\/><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043c \u043f\u043b\u0430\u043d\u043a\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044cc\u044f \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043a\u043d\u043e\u043f\u043e\u043a A\/D. Velocity \u043d\u0443\u0436\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u043f\u043b\u0430\u043d\u043a\u0443.<\/p>\n<pre><code class=\"cpp\">struct Paddle {     SDL_Point velocity;     SDL_Rect area;      Paddle() {         area = {350, 550, 100, 20};         velocity = {0, 0, 0, 0};     }      void move(SDL_Keycode key) {         if (key == SDLK_a){             velocity.x = -1;             if (area.x &lt;= 0) {                 velocity.x = 0;                 area.x = 0;             }         }         if (key == SDLK_d){             velocity.x = 1;             if (area.x + area.w >= SCREEN_WIDTH) {                 velocity.x = 0;                 area.x = SCREEN_WIDTH - area.w;             }         }     }      void update() {         area.x += velocity.x;         if (area.x &lt;= 0) {             area.x = 0;         }         if (area.x + area.w >= SCREEN_WIDTH) {             area.x = SCREEN_WIDTH - area.w;         }     }  };<\/code><\/pre>\n<p>\u0418 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0430\u043f\u0434\u0435\u0439\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0448\u0430\u0440\u0438\u043a\u0430, \u043f\u0443\u0441\u0442\u044c \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u0438 \u043d\u0430\u0448 \u0448\u0430\u0440\u0438\u043a  \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u043a\u0432\u0430\u0434\u0440\u0430\u0442. \u0414\u0430 \u043f\u0440\u043e\u0441\u0442\u044f\u0442 \u043c\u0435\u043d\u044f \u0431\u043e\u0433\u0438 \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u043a\u043e\u0434\u0430, \u044f \u043f\u0440\u043e\u043a\u0438\u043d\u0443\u043b \u043e\u0431\u0441\u0447\u0435\u0442 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0439 \u0441\u043e \u0441\u0442\u0435\u043d\u043a\u0430\u043c\u0438 \u0438 \u043f\u043b\u0430\u043d\u043a\u043e\u0439 \u043f\u0440\u044f\u043c\u043e \u0432 \u0430\u043f\u0434\u0435\u0439\u0442 \u0448\u0430\u0440\u0438\u043a\u0430.<\/p>\n<pre><code class=\"cpp\">    bool update(const Paddle &amp;paddle) {         if (SDL_GetTicks() % 2 == 1) { return true; }         velocity.x *= (position.x &lt;= 0 || position.x >= SW.x - position.w) ? -1 : 1;         velocity.y *= (position.y &lt;= 0) ? -1 : 1;         if (position.y >= SW.y - position.h) {             velocity = {0, 0};             position = {395, 295, 10, 10};             return false;         }         velocity.y *= (position.y == (paddle.y) &amp;&amp; (position.x >= paddle.x) &amp;&amp; (position.x &lt;= paddle.x + paddle.w)) ? -1 : 1;         position.x += velocity.x;         position.y += velocity.y;         (SDL_Point&amp;)r = (SDL_Point&amp;)position;         return true;     }<\/code><\/pre>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u043d\u0438\u0435 \u0431\u043b\u043e\u043a\u043e\u0432. \u041d\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b\u043e\u0441\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0443\u0447\u0448\u0435, \u043a\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 \u0441 \u0448\u0430\u0440\u0438\u043a\u043e\u043c \u043f\u043e\u0441\u043b\u0435 \u0430\u043f\u0434\u0435\u0439\u0442\u0430 \u043c\u0443\u0432\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u0447\u0442\u043e \u0448\u0430\u0440\u0438\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u043b\u043e\u043a\u0430, \u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0435\u0433\u043e \u0440\u0430\u0437\u0431\u0438\u0442\u0438\u0435.<\/p>\n<pre><code class=\"cpp\">        for (int i = 0; i &lt; 160; i++) {             if (SDL_HasIntersection(&amp;game.ball.r, &amp;game.bricks[i].r) &amp;&amp; game.bricks[i].is_alive) {                 game.ball.position.y += 2;                 game.ball.velocity.y *= -1;                 game.bricks[i].is_alive = false;             }         }<\/code><\/pre>\n<p>\u041d\u0430 \u0432\u0441\u0435 \u044d\u0442\u043e \u043f\u043b\u044e\u0441 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0438 \u0443\u0448\u043b\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 30 \u043c\u0438\u043d\u0443\u0442, \u043f\u043b\u044e\u0441 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0447\u0442\u043e \u0442\u043e\u0436\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0441 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u0434\u0430. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434:<\/p>\n<details class=\"spoiler\">\n<summary>Strongout\/146 lines<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">\u0441onst int SCREEN_WIDTH = 800; const int SCREEN_HEIGHT = 600;  const int BRICK_WIDTH = 48; const int BRICK_HEIGHT = 20;  using p = SDL_Rect; using v = p;  struct Brick {     p r;     bool is_alive; } ;  struct Paddle {     v velocity = {0, 0, 0, 0};     p area = {350, 550, 100, 20};      void move(SDL_Keycode key) {         if (key == SDLK_a){             velocity.x = -1;             if (area.x &lt;= 0) {                 velocity.x = 0;                 area.x = 0;             }         }         if (key == SDLK_d){             velocity.x = 1;             if (area.x + area.w >= SCREEN_WIDTH) {                 velocity.x = 0;                 area.x = SCREEN_WIDTH - area.w;             }         }     }      void update() {         area.x += velocity.x;         if (area.x &lt;= 0) {             area.x = 0;         }         if (area.x + area.w >= SCREEN_WIDTH) {             area.x = SCREEN_WIDTH - area.w;         }     } };  struct Ball {     v velocity = {0, 0, 0, 0};     p position = {395, 295, 10, 10};     p r = position;      void start(SDL_Keycode key) {         if (key == SDLK_SPACE &amp;&amp; velocity.x == 0 &amp;&amp; velocity.y == 0)             velocity = {1, 1};     }      bool update(const Paddle &amp;paddle) {         if (SDL_GetTicks() % 2 == 0) {             if (position.x &lt;= 0 || position.x >= SCREEN_WIDTH - position.w) {                 velocity.x *= -1;             }             if (position.y &lt;= 0) {                 velocity.y *= -1;             }              if (position.y >= SCREEN_HEIGHT - position.h) {                 velocity = {0, 0};                 position = {395, 295, 10, 10};                 return false;             }             if (position.y == (paddle.area.y)) {                 if ((position.x >= paddle.area.x) &amp;&amp; (position.x &lt;= paddle.area.x + paddle.area.w)) {                     velocity.y *= -1;                 }             }              position.x += velocity.x;             position.y += velocity.y;             (SDL_Point&amp;)r = (SDL_Point&amp;)position;             return true;         }     } };  struct Game {     std::array&lt;Brick, 16 * 10> bricks;     Ball ball;     Paddle paddle;      Game() {         for (auto &amp;brick: bricks) {             int i = std::distance(bricks.data(), &amp;brick);             brick.r = {1 + ((i % 16) * (BRICK_WIDTH + 2)), 1 + ((i \/ 16) * (BRICK_HEIGHT + 2)), BRICK_WIDTH, BRICK_HEIGHT};             brick.is_alive = true;            }     } };  int main(int argc, char* args[]) {     Game game;     bool quit = false;     SDL_Window* window = NULL;     SDL_Surface* screenSurface = NULL;     SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO);     window = SDL_CreateWindow(\"Strongout\", 50, 50, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN );     while (!quit) {         SDL_Event event;         while (SDL_PollEvent(&amp;event)){             if( event.type == SDL_QUIT){                 quit = true;                 break;             }             if( event.type == SDL_KEYDOWN ){                 game.paddle.move(event.key.keysym.sym);                 game.ball.start(event.key.keysym.sym);             }             if( event.type == SDL_KEYUP ){                 game.paddle.velocity.x = 0;             }          }         if (game.lives > 0) {             game.paddle.update();             game.ball.update(game.paddle);         }         int numBricks = 160;         for (int i = 0; i &lt; numBricks; i++) {             if (SDL_HasIntersection(&amp;game.ball.r, &amp;game.bricks[i].r) &amp;&amp; game.bricks[i].is_alive) {                 game.ball.position.y += 2;                 game.ball.velocity.y *= -1;                 game.bricks[i].is_alive = false;             }         }         screenSurface = SDL_GetWindowSurface(window);         SDL_FillRect(screenSurface, NULL, SDL_MapRGB( screenSurface->format, 0, 0, 0));         for (auto &amp;brick: game.bricks) {             if (brick.is_alive) {                 SDL_FillRect(screenSurface, &amp;brick.r, SDL_MapRGB( screenSurface->format, 255, 0, 0));             }         }         SDL_FillRect(screenSurface, &amp;game.paddle.area, SDL_MapRGB( screenSurface->format, 0, 255, 0));         SDL_FillRect(screenSurface, &amp;game.ball.r, SDL_MapRGB( screenSurface->format, 255, 255, 255));         SDL_UpdateWindowSurface(window);     }     SDL_DestroyWindow(window);     SDL_Quit();     return 0; }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2e6\/06a\/fb8\/2e606afb823f4cb7825122fc89c93a6d.gif\" alt=\"\u0412\u043e\u0442 \u0447\u0442\u043e \u044f \u0441\u043c\u043e\u0433 \u043d\u0430\u043a\u0440\u043e\u043f\u0430\u0442\u044c \u0437\u0430 \u043f\u043e\u043b\u0447\u0430\u0441\u0430\" title=\"\u0412\u043e\u0442 \u0447\u0442\u043e \u044f \u0441\u043c\u043e\u0433 \u043d\u0430\u043a\u0440\u043e\u043f\u0430\u0442\u044c \u0437\u0430 \u043f\u043e\u043b\u0447\u0430\u0441\u0430\" width=\"800\" height=\"606\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2e6\/06a\/fb8\/2e606afb823f4cb7825122fc89c93a6d.gif\"\/><\/p>\n<div><figcaption>\u0412\u043e\u0442 \u0447\u0442\u043e \u044f \u0441\u043c\u043e\u0433 \u043d\u0430\u043a\u0440\u043e\u043f\u0430\u0442\u044c \u0437\u0430 \u043f\u043e\u043b\u0447\u0430\u0441\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u043e \u043a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0431\u0443\u0434\u0435\u0442 \u043c\u0430\u043b\u043e \u0431\u0430\u043b\u043b\u043e\u0432 \u043f\u043e \u0448\u043a\u0430\u043b\u0435 \u0430\u0440\u043a\u0430\u043d\u043e\u0438\u0434\u043e\u0432 \u0437\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434.  \u041a\u0441\u0442\u0430\u0442\u0438 \u044f \u0437\u0430\u043c\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0441\u0442\u0430\u043b\u0438 \u043c\u0435\u043d\u0435\u0435 \u043e\u0445\u043e\u0442\u043d\u043e \u0434\u0430\u0432\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043d\u0430 \u043e\u0444\u0444\u043b\u0430\u0439\u043d \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435, \u0432\u0438\u0434\u0438\u043c\u043e \u044d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u043b\u0438 \u043e\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0441\u0435\u0442\u043a\u043e\u0439 \u0438\u043b\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0435\u0433\u043e \u0441\u0430\u043c. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044f\u0441\u044c \u043a \u043a\u043e\u0434\u0443 \u0430\u0440\u043a\u0430\u043d\u043e\u0438\u0434\u0430, \u043f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u043e \u043d\u0430 \u0443\u043c &#8212; \u044d\u0442\u043e \u043f\u043e\u0443\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u0448\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0441\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u0441\u043a\u043e\u0431\u043e\u043a \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u0431\u043e\u043b\u044c\u0448\u0435 \u0431\u0430\u043b\u043b\u043e\u0432.<\/p>\n<details class=\"spoiler\">\n<summary>Strongout\/132 lines<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">\u0441onst int SCREEN_WIDTH = 800; const int SCREEN_HEIGHT = 600; const int BRICK_WIDTH = 48; const int BRICK_HEIGHT = 20; using p = SDL_Rect; using v = p; struct Brick {     p r;     bool is_alive; } ; struct Paddle {     v velocity = {0, 0, 0, 0};     p area = {350, 550, 100, 20};     void move(SDL_Keycode key) {         if (key == SDLK_a){             velocity.x = -1;             if (area.x &lt;= 0) {                 velocity.x = 0;                 area.x = 0;             }         }         if (key == SDLK_d){             velocity.x = 1;             if (area.x + area.w >= SCREEN_WIDTH) {                 velocity.x = 0;                 area.x = SCREEN_WIDTH - area.w;             }         }     }     void update() {         area.x += velocity.x;         if (area.x &lt;= 0) {             area.x = 0;         }         if (area.x + area.w >= SCREEN_WIDTH) {             area.x = SCREEN_WIDTH - area.w;         }     } }; struct Ball {     v velocity = {0, 0, 0, 0};     p position = {395, 295, 10, 10};     p r = position;     void start(SDL_Keycode key) {         if (key == SDLK_SPACE &amp;&amp; velocity.x == 0 &amp;&amp; velocity.y == 0)             velocity = {1, 1};     }     bool update(const Paddle &amp;paddle) {         if (SDL_GetTicks() % 2 == 0) {             if (position.x &lt;= 0 || position.x >= SCREEN_WIDTH - position.w) {                 velocity.x *= -1;             }             if (position.y &lt;= 0) {                 velocity.y *= -1;             }             if (position.y >= SCREEN_HEIGHT - position.h) {                 velocity = {0, 0};                 position = {395, 295, 10, 10};                 return false;             }             if (position.y == (paddle.area.y)) {                 if ((position.x >= paddle.area.x) &amp;&amp; (position.x &lt;= paddle.area.x + paddle.area.w)) {                     velocity.y *= -1;                 }             }             position.x += velocity.x;             position.y += velocity.y;             (SDL_Point&amp;)r = (SDL_Point&amp;)position;             return true;         }     } }; struct Game {     std::array&lt;Brick, 16 * 10> bricks;     Ball ball;     Paddle paddle;     Game() {         for (auto &amp;brick: bricks) {             int i = std::distance(bricks.data(), &amp;brick);             brick.r = {1 + ((i % 16) * (BRICK_WIDTH + 2)), 1 + ((i \/ 16) * (BRICK_HEIGHT + 2)), BRICK_WIDTH, BRICK_HEIGHT};             brick.is_alive = true;            }     } }; int main(int argc, char* args[]) {     Game game;     bool quit = false;     SDL_Window* window = NULL;     SDL_Surface* screenSurface = NULL;     SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO);     window = SDL_CreateWindow(\"Strongout\", 50, 50, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN );     while (!quit) {         SDL_Event event;         while (SDL_PollEvent(&amp;event)){             if( event.type == SDL_QUIT){                 quit = true;                 break;             }             if( event.type == SDL_KEYDOWN ){                 game.paddle.move(event.key.keysym.sym);                 game.ball.start(event.key.keysym.sym);             }             if( event.type == SDL_KEYUP ){                 game.paddle.velocity.x = 0;             }          }         if (game.lives > 0) {             game.paddle.update();             game.ball.update(game.paddle);         }         int numBricks = 160;         for (int i = 0; i &lt; numBricks; i++) {             if (SDL_HasIntersection(&amp;game.ball.r, &amp;game.bricks[i].r) &amp;&amp; game.bricks[i].is_alive) {                 game.ball.position.y += 2;                 game.ball.velocity.y *= -1;                 game.bricks[i].is_alive = false;             }         }         screenSurface = SDL_GetWindowSurface(window);         SDL_FillRect(screenSurface, NULL, SDL_MapRGB( screenSurface->format, 0, 0, 0));         for (auto &amp;brick: game.bricks) {             if (brick.is_alive) {                 SDL_FillRect(screenSurface, &amp;brick.r, SDL_MapRGB( screenSurface->format, 255, 0, 0));             }         }         SDL_FillRect(screenSurface, &amp;game.paddle.area, SDL_MapRGB( screenSurface->format, 0, 255, 0));         SDL_FillRect(screenSurface, &amp;game.ball.r, SDL_MapRGB( screenSurface->format, 255, 255, 255));         SDL_UpdateWindowSurface(window);     }     SDL_DestroyWindow(window);     SDL_Quit();     return 0; }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432 \u0438\u0442\u043e\u0433\u0435 132 \u0441\u0442\u0440\u043e\u043a\u0438. \u0423\u0431\u0438\u0440\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0441\u043e\u0431\u043e \u043d\u0435\u0447\u0435\u0433\u043e, \u0434\u043e \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0432 100 \u0441\u0442\u0440\u043e\u043a \u0434\u0430\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0434\u043e \u042d\u0434\u0438\u043d\u0431\u0443\u0440\u0433\u0430. \u0422\u0443\u0442 \u044f \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u043b\u0438\u0431\u043e \u043a\u0430\u0440\u0434\u0438\u043d\u0430\u043b\u044c\u043d\u043e \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u0434, \u0447\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u0438 \u0432\u0435\u0434\u0435\u0442 \u043a \u0448\u0442\u0440\u0430\u0444\u043d\u044b\u043c \u0431\u0430\u043b\u043b\u0430\u043c, \u043b\u0438\u0431\u043e \u0434\u043e\u0431\u0438\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u0443 \u0444\u0438\u0447\u0430\u043c\u0438. \u0417\u0430 \u043f\u044f\u0442\u044c \u043c\u0438\u043d\u0443\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0430\u0431\u0440\u043e\u0441\u0430\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0436\u0438\u0437\u043d\u0435\u0439 \u0434\u043b\u044f \u0448\u0430\u0440\u0438\u043a\u0430 \u0438 \u043b\u043e\u0433\u0438\u043a\u0443 \u0438\u0445 \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044f \u0435\u0441\u043b\u0438 \u0448\u0430\u0440\u0438\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043f\u043e\u0434 \u043f\u043b\u0430\u043d\u043a\u043e\u0439. \u0425\u043e\u0442\u0435\u043b \u0435\u0449\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043e\u0447\u043a\u043e\u0432, \u043d\u043e \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u044b \u0442\u0430\u0449\u0438\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0448\u0440\u0438\u0444\u0442\u043e\u0432, \u0434\u043b\u044f 10 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043c\u0438\u043d\u0443\u0442 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435\u043f\u043e\u0441\u0438\u043b\u044c\u043d\u0430\u044f. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0438\u043b\u0441\u044f \u043d\u0430 \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0438 \u043a\u043e\u0434\u0430 \u0443\u0436\u0435 \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0437\u0430\u0431\u043e\u0442\u044f\u0441\u044c \u043e \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/57f\/32e\/d89\/57f32ed89a40e1d816be3c736f1e0ee4.png\" width=\"578\" height=\"191\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/57f\/32e\/d89\/57f32ed89a40e1d816be3c736f1e0ee4.png\"\/><\/figure>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0432\u0441\u0435 \u0435\u0449\u0435 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0439 \u043a\u043e\u0434, \u043d\u043e \u0443\u0436\u0435 \u0431\u043b\u0438\u0436\u0435 \u043a \u0441\u043e\u0442\u043d\u0435 \u0441\u0442\u0440\u043e\u043a. \u0421\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e \u0443 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043d\u0438\u043a\u0430, \u0432\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u043b\u043e\u0436\u0438\u043b\u0441\u044f \u043e\u043d &#8212; \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0432 90 \u0441\u0442\u0440\u043e\u043a.<\/p>\n<details class=\"spoiler\">\n<summary>Strongout\/100 lines<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">using p = SDL_Rect; using v = p; const p SW{800, 600, 48, 20}; struct Brick : public p { bool is_alive = true; }; struct Paddle : public p {     v velocity = {0, 0, 0, 0};     void move(SDL_Keycode key) {         if (key == SDLK_a){             velocity.x = -1;             if (x &lt;= 0) { velocity.x = x = 0; }         }         if (key == SDLK_d){             velocity.x = 1;             if (x + w >= SW.x) {                 velocity.x = 0;                 x = SW.x - w;             }         }     }     void update() {         x = std::max(x += velocity.x, 0);         if (x + w >= SW.x) { x = SW.x- w; }     } }; struct Ball {     v velocity = {0, 0, 0, 0};     p position = {395, 295, 10, 10};     p r = position;     void start(SDL_Keycode key) {         if (key == SDLK_SPACE &amp;&amp; velocity.x == 0 &amp;&amp; velocity.y == 0)             velocity = {1, 1};     }     bool update(const Paddle &amp;paddle) {         if (SDL_GetTicks() % 2 == 1) { return true; }         velocity.x *= (position.x &lt;= 0 || position.x >= SW.x - position.w) ? -1 : 1;         velocity.y *= (position.y &lt;= 0) ? -1 : 1;         if (position.y >= SW.y - position.h) {             velocity = {0, 0};             position = {395, 295, 10, 10};             return false;         }         velocity.y *= (position.y == (paddle.y) &amp;&amp; (position.x >= paddle.x) &amp;&amp; (position.x &lt;= paddle.x + paddle.w)) ? -1 : 1;         position.x += velocity.x;         position.y += velocity.y;         (SDL_Point&amp;)r = (SDL_Point&amp;)position;         return true;     } }; int main(int argc, char* args[]) {     std::array&lt;Brick, 16 * 10> bricks;     Ball ball;     Paddle paddle = {350, 550, 100, 20};     int lives = 3;     bool quit = false;     SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO);     auto window = SDL_CreateWindow(\"Strongout\", 50, 50, SW.x, SW.y, SDL_WINDOW_SHOWN );     for (auto &amp;brick: bricks) {         int i = std::distance(bricks.data(), &amp;brick);         brick = {1 + ((i % 16) * (SW.w + 2)), 1 + ((i \/ 16) * (SW.h + 2)), SW.w, SW.h};     }     while (!quit) {         SDL_Event event;         while (SDL_PollEvent(&amp;event)){             if(event.type == SDL_QUIT){                 quit = true;                 break;             }             if(event.type == SDL_KEYDOWN){                 paddle.move(event.key.keysym.sym);                 ball.start(event.key.keysym.sym);             }             if (event.type == SDL_KEYUP) { paddle.velocity.x = 0; }          }         if (lives > 0) {             paddle.update();             bool alive = ball.update(paddle);             lives -= alive ? 0 : 1;         }         for (auto &amp;brick: bricks) {             if (SDL_HasIntersection(&amp;ball.r, &amp;brick) &amp;&amp; brick.is_alive) {                 ball.position.y += 2;                 ball.velocity.y *= -1;                 brick.is_alive = false;             }         }         auto screenSurface = SDL_GetWindowSurface(window);         SDL_FillRect(screenSurface, NULL, SDL_MapRGB( screenSurface->format, 0, 0, 0));         for (auto &amp;brick: bricks) {             brick.is_alive &amp;&amp; SDL_FillRect(screenSurface, &amp;brick, SDL_MapRGB( screenSurface->format, 255, 0, 0));         }         SDL_FillRect(screenSurface, &amp;paddle, SDL_MapRGB( screenSurface->format, 0, 255, 0));         SDL_FillRect(screenSurface, &amp;ball.r, SDL_MapRGB( screenSurface->format, 255, 255, 255));         for (int i = 0; i &lt; lives; i++) {             SDL_Rect rrect{5 + (i * 15), (SW.y - 15), 10, 10};             SDL_FillRect(screenSurface, &amp;rrect, SDL_MapRGB( screenSurface->format, 255, 255, 255));         }         SDL_UpdateWindowSurface(window);     }     SDL_DestroyWindow(window);     SDL_Quit();     return 0; }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0427\u0435\u043c \u044f \u0445\u0443\u0436\u0435 \u043f\u043e\u0442\u043e\u043c\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0431\u0440\u0438\u0442\u0430\u043d\u0446\u0430? \u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0435, \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0442\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u043d\u043e. \u041e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f 10 \u043c\u0438\u043d\u0443\u0442 \u044f \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043d\u0430 &#171;\u0445\u0443\u0434\u043e\u0436\u0435\u0441\u0442\u0432\u0430&#187;, \u043a\u043e\u0434\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u044f\u0437\u044b\u043a \u043d\u0435 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u043e\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0417\u0430\u043c\u0435\u043d\u0438\u043b \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 if \u043d\u0430 \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u0438\u043a\u0438 \u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e AND. \u0421\u0432\u0435\u0440\u043d\u0443\u043b \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443. \u041f\u043e\u0434\u043c\u0435\u043d\u0438\u043b, \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e, \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u0438 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u043d\u0430 \u043f\u0440\u044f\u043c\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0418 &#171;\u044d\u0442\u043e&#187; \u0432\u0441\u0435 \u0435\u0449\u0435 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c. \u0420\u0435\u043a\u043e\u0440\u0434 \u0431\u0440\u0438\u0442\u0430\u043d\u0446\u0430 \u043f\u043e \u0448\u043a\u0430\u043b\u0435 \u0430\u0440\u043a\u0430\u043d\u043e\u0434\u043e\u0432 \u044f \u043f\u043e\u0431\u0438\u043b.<\/p>\n<p>\u0412\u0441\u0442\u0440\u0435\u0447\u0430\u0439\u0442\u0435, Breakfunoid \u0432 32 \u0441\u0442\u0440\u043e\u0447\u043a\u0430\u0445.<\/p>\n<pre><code class=\"cpp\">using P = SDL_Rect; struct Brick : public P { bool a = true; }; auto FillRect = &amp;SDL_FillRect; auto MapRGB = &amp;SDL_MapRGB; struct Paddle : public P { P v{0, 0, 0, 0};     void operator()() { x = std::max(x += v.x, 0); (x + w >= 800) &amp;&amp; (x = 800 - w); }     void operator()(SDL_Keycode k) { (v.x = (k == 97) ? -1 : v.x); (k == 97) &amp;&amp; (x &lt;= 0) &amp;&amp; (v.x = x = 0); (v.x = k == 100 ? 1 : v.x); (k == 100) &amp;&amp; (x + w >= 800) &amp;&amp; (x = 800 - w) &amp;&amp; (v.x = 0); } }; struct Ball : public P { P p{395, 295, 10, 10}, v{0, 0, 0, 0};     void operator()(SDL_Keycode k) { if (k == SDLK_SPACE &amp;&amp; v.x == 0 &amp;&amp; v.y == 0) { v = {1, 1}; } }     bool operator()(const Paddle &amp;paddle) { if (!(SDL_GetTicks() % 2)) { return true; }         v.x *= (p.x &lt;= 0 || p.x >= 800 - p.w) ? -1 : 1; v.y *= (p.y &lt;= 0) ? -1 : 1;         if (p.y >= 600 - p.h) { v = {0, 0}; p = {395, 295, 10, 10}; return false; }         v.y *= (p.y == (paddle.y) &amp;&amp; (p.x >= paddle.x) &amp;&amp; (p.x &lt;= paddle.x + paddle.w)) ? -1 : 1;         p.x += v.x; p.y += v.y;         (SDL_Point &amp;)*this = (SDL_Point &amp;)p;         return true;     } }; int main(int, char**) { SDL_Init(0x30);     Brick bricks[160]; Ball ball{395, 295, 10, 10}; Paddle pad{350, 550, 100, 20}; int lives = 3; SDL_Event e;     auto window = SDL_CreateWindow(\"brkt.cpp\", 50, 50, 800, 600, 4); auto s = SDL_GetWindowSurface(window);  auto f = s->format;      for (int i = 0; i &lt; 160; ++i) { *(bricks+i) = {1 + ((i % 16) * (48 + 2)), 1 + ((i \/ 16) * (20 + 2)), 48, 20}; }     while (true) {          while (SDL_PollEvent(&amp;e)) { auto t = e.type; auto sym = e.key.keysym.sym;           switch (t) { case 256: return 0;                        case 768: pad(sym); ball(sym); break;                        case 769: pad.v.x = 0; break; }         } if (lives > 0) { pad(); lives -= ball(pad) ? 0 : 1; }         FillRect(s, 0, MapRGB( f, 0, 0, 0)); FillRect(s, &amp;pad, MapRGB( f, 0, -1, 0)); FillRect(s, &amp;ball, MapRGB( f, -1, -1, -1));         for (auto &amp;br: bricks) { SDL_HasIntersection(&amp;ball, &amp;br) &amp;&amp; br.a &amp;&amp; (ball.p.y += 2) &amp;&amp; (ball.v.y *= -1) &amp;&amp; (br.a = 0); br.a &amp;&amp; FillRect(s, &amp;br, MapRGB(f, -1, 0, 0)); }         for (int i = 0; i &lt; lives; i++) { P r{5 + (i * 15), 585, 10, 10}; FillRect(s, &amp;r, MapRGB(f, -1, -1, -1)); }         SDL_UpdateWindowSurface(window);     } return 0; }<\/code><\/pre>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b 120 \u0431\u0430\u043b\u043b\u043e\u0432 \u0437\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u043f\u043b\u044e\u0441 10 \u0437\u0430 \u0444\u0438\u0447\u0443 \u0441 \u0436\u0438\u0437\u043d\u044f\u043c\u0438 \u0438 \u043c\u0438\u043d\u0443\u0441 30 (\u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c) \u0437\u0430 \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u043a\u043e\u0434\u0430. \u0414\u0443\u043c\u0430\u044e, \u043e\u043d\u0438 \u043f\u043e\u0434\u044b\u043c\u0443\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u0442\u0440\u0430\u0444 \u0437\u0430 \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f.<\/p>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c \u043f\u043e\u0441\u043c\u0435\u044f\u043b\u0438\u0441\u044c &#8212; \u0440\u0430\u0437\u043e\u0448\u043b\u0438\u0441\u044c.<\/p>\n<p>\u041d\u043e \u044d\u0442\u043e \u0435\u0449\u0435 \u043d\u0435 \u043a\u043e\u043d\u0435\u0446 \u0438\u0441\u0442\u043e\u0440\u0438\u0438, \u0434\u043e\u043c\u0430 \u043c\u0435\u043d\u044f \u043d\u0435 \u043e\u0442\u043f\u0443\u0441\u043a\u0430\u043b\u0430 \u043c\u044b\u0441\u043b\u044c \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0438 \u0431\u043e\u043b\u044c\u0448\u0435. \u042f \u0442\u043e\u0447\u043d\u043e \u0432\u0438\u0434\u0435\u043b \u043a\u043e\u0434 \u0440\u0435\u043d\u0434\u0435\u0440\u0430 \u043d\u0430 \u0432\u0438\u0437\u0438\u0442\u043a\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/abe\/9bb\/5a3\/abe9bb5a3d2ab464200f6a0838fabfd1.png\" width=\"841\" height=\"582\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/abe\/9bb\/5a3\/abe9bb5a3d2ab464200f6a0838fabfd1.png\"\/><\/figure>\n<p>\u041f\u0443\u0441\u043a\u0430\u0439 \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u0434 \u0430\u0440\u043a\u0430\u043d\u043e\u0438\u0434\u0430 \u043d\u0430 \u0432\u0438\u0437\u0438\u0442\u043a\u0435. \u041f\u043e\u043a\u043e\u043b\u0434\u043e\u0432\u0430\u0432 \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u0430 \u043d\u043e\u0443\u0442\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0447\u0442\u043e-\u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u0441\u0442\u0438\u043b\u0435. \u041d\u0435\u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e, \u043d\u0435\u043f\u0440\u0430\u043a\u0442\u0438\u0447\u043d\u043e, \u043e\u0442\u043b\u0430\u0434\u0438\u0442\u044c \u043d\u0435 \u0432\u044b\u0439\u0434\u0435\u0442, \u043d\u043e \u043f\u0440\u0438\u043a\u043e\u043b\u044c\u043d\u043e \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<pre><code class=\"cpp\">#include &lt;SDL.h> #define RE return #define OO operator using R=SDL_Rect;using P=SDL_Point;struct B:public R{bool a=1;};auto $= &amp;SDL_FillRect; using I=int;I i=0;struct Pad:public R{R v{0}; void OO()(){x=std::max(x+=v.x,0);(x+w >= 800)&amp;&amp;(x=800-w);} void OO()(I k){(v.x=(k==97)?-1:v.x);(k==97)&amp;&amp;(x&lt;=0)&amp;&amp;(v.x=x=0);(v.x= k==100?1:v.x);(k==100)&amp;&amp;(x+w>=800)&amp;&amp;(x=800-w)&amp;&amp;(v.x=0);}};struct BL:public R{R p {395, 295,10,10},v{0};void OO()(I k){if(k==32&amp;&amp;!v.x&amp;&amp;!v.y){v={1,1};}}bool OO()(Pad &amp;pd){if(! (SDL_GetTicks()%2)){RE 1;}v.x*=(p.x&lt;=0||p.x>=800-p.w)?-1:1;v.y*=(p.y&lt;=0)?-1:1;if(p.y>= 600-p.h){v={0};p={395,295,10,10};RE 0;}v.y *=(p.y==(pd.y)&amp;&amp; (p.x>=pd.x)&amp;&amp;(p.x&lt;=pd.x+pd .w))?-1:1;p.x+=v.x;p.y+=v.y;(P&amp;)*this=(P&amp;)p;RE 1;}};I main(I,char**){SDL_Init(0x30); B bricks[160];BL ball{395,295,0xA,10};Pad pad{350,550,100,20};I l=3;SDL_Event e; auto w= SDL_CreateWindow(\"brk\",50,50,800,600,4);auto s=SDL_GetWindowSurface(w); for(i=0;i&lt;160; ++i){*(bricks+i)={1+((i%16)*50),1+((i\/16)*22),48,20};}while(1){while(SDL_PollEvent(&amp;e) ){I s=e.key.keysym.sym;switch(e.type){case 256:return 0;case 768:pad(s);ball(s);break; case 769:pad.v.x=0;break;}}if(l>0){pad();l-=ball(pad)?0:1;}$(s,0,0xff000000);$(s,&amp;pad, 0xff00ff00); $(s,&amp;ball,0xffffffff); for(auto&amp;br:bricks){SDL_HasIntersection(&amp;ball,&amp;br) &amp;&amp;br.a&amp;&amp;(ball.p.y+=2)&amp;&amp;(ball.v.y*=-1)&amp;&amp;(br.a=0);br.a &amp;&amp;$(s,&amp;br,0xffff0000);}for(i=0;i&lt; l;i++){R r{5+(i*15),585,10,10};$(s,&amp;r,-1);}SDL_UpdateWindowSurface(w);} RE 0;}<\/code><\/pre>\n<p><a href=\"https:\/\/godbolt.org\/z\/896s6j883\" rel=\"noopener noreferrer nofollow\">https:\/\/godbolt.org\/z\/896s6j883<\/a><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/305\/5e3\/bf7\/3055e3bf7af79420febb203dc8aa383d.png\" alt=\"\u041f\u043e\u0434\u0443\u043c\u044b\u0432\u0430\u044e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0435\u0431\u0435 \u0442\u0430\u043a\u0443\u044e\" title=\"\u041f\u043e\u0434\u0443\u043c\u044b\u0432\u0430\u044e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0435\u0431\u0435 \u0442\u0430\u043a\u0443\u044e\" width=\"1125\" height=\"675\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/305\/5e3\/bf7\/3055e3bf7af79420febb203dc8aa383d.png\"\/><\/p>\n<div><figcaption>\u041f\u043e\u0434\u0443\u043c\u044b\u0432\u0430\u044e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0435\u0431\u0435 \u0442\u0430\u043a\u0443\u044e<\/figcaption><\/div>\n<\/figure>\n<p>\u0412\u0441\u0435\u0445 \u0441 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u044e\u0449\u0438\u043c! <\/p>\n<p>\u0417.\u042b. NDA \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u044f \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u043b, \u0434\u0430 \u0438 \u043f\u0440\u043e \u044d\u0442\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u043a &#171;\u0441\u0432\u0435\u0442\u043b\u044f\u0447\u043a\u0430\u043c&#187; \u0431\u044b\u043b\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0438 \u0435\u0433\u043e \u0440\u0430\u0437\u0434\u0430\u0432\u0430\u043b\u0438 \u043d\u0430 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044f\u0445, \u0441\u0430\u043c\u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435 \u0434\u043b\u044f \u0447\u0435\u0433\u043e \ud83d\ude42 <a href=\"https:\/\/habr.com\/ru\/articles\/774972\/\" rel=\"noopener noreferrer nofollow\">\u0422\u0440\u0430\u0434\u0438\u0446\u0438\u044f<\/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\/781034\/\"> https:\/\/habr.com\/ru\/articles\/781034\/<\/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<figure class=\"full-width\"><\/figure>\n<p>\u041f\u0430\u0440\u0443 \u043d\u0435\u0434\u0435\u043b\u044c \u043d\u0430\u0437\u0430\u0434, \u043d\u0430 \u043c\u0435\u043d\u044f \u0432\u044b\u0448\u043b\u0430 HR &#171;\u0441\u0432\u0435\u0442\u043b\u044f\u0447\u043a\u043e\u0432&#187; \u0438 \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u043b\u0430 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e \u043f\u043e\u0437\u0438\u0446\u0438\u0438 AI \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435\u0440\u0430 \u0432 \u0438\u0445 \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0430\u0440\u0443\u044e \u0438\u0433\u0440\u0443. \u042f \u0431\u044b\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0434\u0438\u0432\u043b\u0435\u043d, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u043f\u0430\u0440\u043e\u0439 \u0440\u0435\u0431\u044f\u0442 \u0438\u0437 \u0441\u0442\u0443\u0434\u0438\u0438 \u0438 \u0437\u043d\u0430\u044e, \u0447\u0442\u043e \u043d\u0430\u0439\u043c \u0443 \u043d\u0438\u0445 \u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d. \u041d\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u0441 \u0443\u043c\u043d\u044b\u043c\u0438 \u043b\u044e\u0434\u044c\u043c\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0441\u0442\u0430\u043b. \u041f\u0435\u0440\u0432\u044b\u0439 \u0441\u043e\u0437\u0432\u043e\u043d \u0441 HR \u0432\u044b\u0448\u0435\u043b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439, \u0433\u0434\u0435 \u043d\u0430\u0434 \u0447\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u043b, \u043a\u0430\u043a\u0438\u0435 \u0438\u0433\u0440\u044b \u0448\u0438\u043f\u043d\u0443\u043b. \u041d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u0437\u0430\u0447\u0435\u043c \u0432\u0441\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u044d\u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430 \u043b\u0438\u043d\u043a\u0435\u0434\u0438\u043d\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0438 \u0441 \u0434\u0430\u0442\u0430\u043c\u0438. \u041d\u0443 \u0434\u0430 \u043b\u0430\u0434\u043d\u043e &#8212; \u0432\u0438\u0434\u043d\u043e \u0442\u0430\u043a\u0430\u044f \u0438\u0445 \u044d\u0439\u0447\u0430\u0440\u0441\u043a\u0430\u044f \u0434\u043e\u043b\u044f \u043f\u043e \u0442\u0440\u0438\u0434\u0446\u0430\u0442\u044c \u0442\u0440\u0438 \u0440\u0430\u0437\u0430 \u043f\u0435\u0440\u0435\u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c. \u0418\u043b\u0438 HR \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043b\u0435\u043d\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c.<\/p>\n<p>\u0417\u0430\u0431\u0443\u043a\u0430\u043b\u0438 \u0432\u0440\u0435\u043c\u044f \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e. \u0412 \u043f\u043e\u043b\u0434\u0435\u043d\u044c \u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430 \u043d\u0430 \u0432\u0441\u0442\u0440\u0435\u0447\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a \u0441\u0442\u0443\u0434\u0438\u0438 \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u044e\u043c\u0435\u0448\u043a\u0443 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0433\u0434\u0435 \u043d\u0430\u0442\u044b\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u043a\u0440\u0438\u043d \u043e\u043f\u0435\u043d\u0441\u043e\u0440\u0441\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 StoneKingdoms, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043a\u043e\u043c\u0438\u0442\u0438\u043b. \u041f\u0440\u043e\u0435\u043a\u0442, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e, \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0431\u043b\u0430\u0433\u043e\u0441\u043b\u043e\u0432\u0435\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0433\u043e Simon Bradbury (\u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 \u0441\u0442\u0443\u0434\u0438\u0438), \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438\u0437 Stronghold \u043d\u0435\u0442. \u041f\u043e\u0441\u044b\u043f\u0430\u043b\u0438\u0441\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u0430 \u0447\u0442\u043e \u0437\u0430 \u043f\u0440\u043e\u0435\u043a\u0442? \u0430 \u043a\u0430\u043a \u0434\u0435\u043b\u0430\u0435\u0442\u0435? \u0438 \u0447\u0442\u043e \u0432\u0441\u0435 \u043d\u0430 lua? \u0430 \u043a\u0430\u043a \u0436\u0435 \u043f\u043b\u044e\u0441\u044b? \u0413\u0434\u0435-\u0442\u043e \u043d\u0430 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430 \u043a \u043d\u0430\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a &#171;\u0441\u0432\u0435\u0442\u043b\u044f\u0447\u043a\u043e\u0432&#187;, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0435\u0449\u0435 \u0432 2010, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d \u043f\u043e\u043c\u043e\u0433\u0430\u043b \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 Caesar III \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0430\u0432\u0430\u043b \u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u0438 \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0438\u0433\u0440\u043e\u0432\u0430\u044f \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u044f. \u041c\u044b \u0438 \u0441\u0435\u0439\u0447\u0430\u0441 \u0438\u043d\u043e\u0433\u0434\u0430 \u043e\u0431\u0449\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0435 \u043f\u043e \u0440\u0435\u043c\u0435\u0439\u043a\u0430\u043c \u0441\u0442\u0430\u0440\u044b\u0445 \u0438\u0433\u0440.<\/p>\n<hr\/>\n<p>\u0415\u0441\u0442\u044c \u0443 \u044d\u0442\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043e\u0434\u043d\u0430 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c &#8212; \u0435\u0441\u043b\u0438 \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0433\u0434\u0435 \u043e\u043d \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u043b, \u0442\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u0447\u0430\u0441\u0430 \u0432\u0441\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043b\u0443\u0448\u0430\u0442\u044c \u0431\u0430\u0439\u043a\u0438 \u0438 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043a\u0430\u043a \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u0435\u043b\u0430\u043b\u0438. \u0410 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u043d \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0438 \u0441 \u043e\u0433\u043e\u043d\u044c\u043a\u043e\u043c, \u0431\u044b\u0432\u0430\u043b\u043e \u0438 \u043f\u0430\u0440\u043e\u0439 \u0447\u0430\u0441\u043e\u0432 \u0432\u0441\u0435 \u043d\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u043b\u043e\u0441\u044c. \u041c\u044b \u043a\u0430\u043a \u0440\u0430\u0437 \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0435\u043d\u0435\u0439 \u043d\u0430 \u0438\u0437\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0430\u0440\u0442\u0435. \u041d\u0430\u0434\u043e \u0431\u044b\u043b \u0432\u0438\u0434\u0435\u0442\u044c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043b\u0438\u0446\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e\u0435\u0440\u0430, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u043f\u043e\u0437\u0434\u043e\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0441\u043e \u043c\u043d\u043e\u0439 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0438 \u0441\u043f\u0440\u043e\u0441\u0438\u043b \u043a\u0430\u043a \u043f\u0440\u043e\u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043d\u0430\u0434 <a href=\"https:\/\/github.com\/dalerank\/Akhenaten\" rel=\"noopener noreferrer nofollow\">\u0424\u0430\u0440\u0430\u043e\u043d\u043e\u043c<\/a>. \u0410 \u043f\u043e\u0442\u043e\u043c \u043c\u044b \u0441\u043b\u0443\u0448\u0430\u043b\u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437 \u043a\u0430\u043a \u0442\u0435\u043d\u0438 \u0431\u044b\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u0432 \u043f\u0435\u0440\u0432\u043e\u043c Stronghold&#8217;e, \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043a\u0430\u043a-\u0442\u043e \u043e\u0442\u043e\u0448\u043b\u0438 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443. \u0427\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u0438 \u0432\u043e\u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u0448\u0435\u043b \u043d\u0430 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u0433\u0440 <a href=\"https:\/\/habr.com\/ru\/articles\/239013\/\" rel=\"noopener noreferrer nofollow\">\u0432\u0440\u0435\u043c\u0435\u043d \u0414\u0440\u0435\u0432\u043d\u0435\u0433\u043e \u0420\u0438\u043c\u0430<\/a> \u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/767892\/\" rel=\"noopener noreferrer nofollow\">\u043f\u044f\u0442\u043e\u0439 \u0434\u0438\u043d\u0430\u0441\u0442\u0438\u0438 \u0415\u0433\u0438\u043f\u0442\u0430<\/a>. <\/p>\n<p>\u041f\u0440\u043e \u043e\u043f\u0435\u043d\u0441\u043e\u0440\u0441 Stronghold: \u044f \u0442\u0443\u0434\u0430 \u0443\u0436\u0435 \u043d\u0435 \u043a\u043e\u043c\u0438\u0447\u0443, \u043d\u043e \u0435\u0441\u043b\u0438 \u0443 \u043a\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435, \u0442\u0430\u043c \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0438\u0437 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u0433\u0440\u044b (<a href=\"https:\/\/gitlab.com\/stone-kingdoms\/stone-kingdoms\" rel=\"noopener noreferrer nofollow\">https:\/\/gitlab.com\/stone-kingdoms\/stone-kingdoms<\/a>)<\/p>\n<figure class=\"full-width\">\n<div><figcaption>The stock pile is full. My lord!<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u0410 \u044d\u0442\u043e \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f &#8212; \u043d\u0430\u0439\u0434\u0438\u0442\u0435 \u043f\u044f\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0438\u0439<\/figcaption><\/div>\n<\/figure>\n<p>\u0427\u0430\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u043e\u0442\u0432\u0435\u0434\u0435\u043d \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u043f\u0440\u043e\u043b\u0435\u0442\u0435\u043b, \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u0435\u0433\u043e. \u041f\u043e\u0434 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e\u0435\u0440 \u0441\u043f\u0440\u043e\u0441\u0438\u043b \u0432 \u0448\u0443\u0442\u043a\u0443 \u0441\u043e\u0433\u043b\u0430\u0448\u0443\u0441\u044c \u043b\u0438 \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0435, \u044f \u0442\u0430\u043a\u0436\u0435 \u0432 \u0448\u0443\u0442\u043a\u0443 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u043b\u0441\u044f. \u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0441\u043c\u044b\u0441\u043b\u0430  \u0432 \u043d\u0435\u043c \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e, \u043d\u043e \u043c\u0435\u043d\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0438 \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u043e\u0437\u0433\u043e\u043b\u043e\u043c\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u0443\u0434\u0438\u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u044e\u0442 \u0434\u043b\u044f \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432. \u0418\u0442\u0430\u043a, \u0437\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441 \u0441\u043e\u0431\u0435\u0441\u0430 \u043d\u0430 \u043b\u0430\u0439\u0432 \u043a\u043e\u0434\u0438\u043d\u0433\u0435 \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0433\u0440\u0443, \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u043e \u043f\u0440\u0438\u043d\u044f\u0442\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445 \u043f\u043e \u0445\u043e\u0434\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u0433\u0440\u044b. \u041d\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c &#8212; \u0437\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u043b\u0438\u0448\u043d\u044e\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e\u0441\u043b\u0435 150-\u043e\u0439 \u043e\u0442\u043d\u0438\u043c\u0430\u043b\u0441\u044f \u0431\u0430\u043b\u043b, \u0437\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u043a\u043e\u0434\u0430 \u043f\u0435\u0440\u0435\u0434 150-\u043e\u0439 &#8212; \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b\u0441\u044f \u0431\u0430\u043b\u043b. \u041a\u0430\u043a \u043f\u043e\u0442\u043e\u043c \u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u043c\u043e\u0438 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435, \u0440\u0435\u043a\u043e\u0440\u0434 \u0431\u044b\u043b 85 \u0441\u0442\u0440\u043e\u043a \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0430\u0440\u043a\u0430\u043d\u043e\u0438\u0434\u0430 \u0438 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0417\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u0433\u0440\u043e\u0432\u0443\u044e \u0444\u0438\u0447\u0443 \u0432\u0440\u043e\u0434\u0435 \u0436\u0438\u0437\u043d\u0435\u0439 \u0438\u043b\u0438 \u043e\u0447\u043a\u043e\u0432, \u0435\u0449\u0435 \u043f\u043b\u044e\u0441 10 \u0431\u0430\u043b\u043b\u043e\u0432. \u0417\u0430 \u043d\u0435\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0439 \u0438\u043b\u0438 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 \u043a\u043e\u0434 \u0442\u0430\u043a\u0436\u0435 \u0441\u043d\u0438\u043c\u0430\u044e\u0442 \u0431\u0430\u043b\u043b\u044b, \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u043c\u043e\u0433\u0443\u0442 \u0441\u043d\u044f\u0442\u044c 30.<\/p>\n<p>\u0417\u0430 \u0447\u0430\u0441 \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0433\u0440\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u0440\u043a\u0430\u043d\u043e\u0438\u0434.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0435 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u043b\u044e\u0434\u0438 \u043f\u0438\u0448\u0443\u0442 \u0437\u0430 5 \u043d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u043e \u043d\u0435 \u043f\u043e\u0434\u0443\u043c\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u0442\u0430\u043c \u0441\u043e\u0432\u0441\u0435\u043c \u0443\u0436 \u0437\u0432\u0435\u0440\u0438 \u0441\u0438\u0434\u044f\u0442 &#8212; \u0441 \u043d\u0443\u043b\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0433\u0440\u0443. \u0414\u0430\u0436\u0435 \u0442\u0430\u043a\u0443\u044e \u043f\u0440\u043e\u0441\u0442\u0443\u044e. \u041a\u0430\u0440\u043a\u0430\u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d, \u043d\u0430\u0434\u043e \u043d\u0430\u043a\u0438\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0435\u0439 \u043b\u043e\u0433\u0438\u043a\u0438, \u0438 \u043a\u0430\u043a \u044f \u0441\u043a\u0430\u0437\u0430\u043b \u0432\u044b\u0448\u0435, \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0442\u044c\u0441\u044f \u0443\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 150 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430. \u042f \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0438\u0448\u0443 \u043a\u043e\u0434, \u0438 \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u0440\u0435\u043c\u044f \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c \u043d\u0430\u0434 \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435 \u0438\u043b\u0438 \u0433\u0434\u0435-\u0442\u043e \u0443\u0436\u0435 \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439, \u0432 \u043f\u043b\u0430\u043d\u0435 \u0443\u0441\u043f\u0435\u0442\u044c \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<pre><code class=\"cpp\">#include &lt;SDL.h>  const int SCREEN_WIDTH = 800; const int SCREEN_HEIGHT = 600;  const int BRICK_WIDTH = 48; const int BRICK_HEIGHT = 20;  struct Brick{     SDL_Rect rect; } ;  struct Ball {     SDL_Rect rect; } ;  struct Paddle {     SDL_Rect rrect; } ;  struct Game {     Brick bricks[16][10];     Ball ball;     Paddle paddle; };  int main(int argc, char* args[]) {     Game game;      SDL_Window* window = NULL;     SDL_Surface* screenSurface = SDL_GetWindowSurface(window);      SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO);     window = SDL_CreateWindow( \"Strongout\", 50, 50,                                SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN );     bool quit = false;     while (!quit) {         SDL_Event event;         while (SDL_PollEvent(&amp;event)){             if( event.type == SDL_QUIT){                 quit = true;                 break;             }              if( event.type == SDL_KEYDOWN ){             }              if( event.type == SDL_KEYUP ){             }          }         SDL_FillRect(screenSurface, NULL,                       SDL_MapRGB( screenSurface->format, 0, 0, 0));         \/\/ Your code here         SDL_UpdateWindowSurface(window);     }      SDL_DestroyWindow(window);     SDL_Quit();     return 0; }<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0431\u044b\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u043a\u0438\u0440\u043f\u0438\u0447\u0435\u0439. \u041f\u0440\u043e\u0448\u0443 \u043d\u0435 \u0440\u0443\u0433\u0430\u0442\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u0437\u0430 \u043a\u043e\u0434, \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442\u043b\u0430\u0434\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0434\u0443\u043c\u0430\u0442\u044c \u043e\u0431 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u043e\u0447\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0438\u0441\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u0442\u043e\u043f\u043e\u0440\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0438\u0442\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c.<\/p>\n<pre><code class=\"cpp\">void drawLiveBricks(SDL_Surface* screen, SDL_Window* window, Game &amp;game) {     for (int i = 0; i &lt; 16; i++) {         for (int j = 0; j &lt; 10; j++){             if (game.bricks[i][j].is_alive) {                 SDL_FillRect(screen, &amp;game.bricks[i][j].rect,                               SDL_MapRGB( screen->format, 255, 0, 0));             }         }     } } <\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<p> \u041f\u043e\u0442\u043e\u043c \u043d\u0430\u0441\u0442\u0430\u043b \u0447\u0435\u0440\u0435\u0434 \u043f\u043b\u0430\u043d\u043a\u0438 \u0438 \u0448\u0430\u0440\u0438\u043a\u0430<\/p>\n<pre><code>SDL_FillRect(screenSurface, &amp;game.paddle.rect, SDL_MapRGB( screenSurface->format, 0, 255, 0)); SDL_FillRect(screenSurface, &amp;game.ball.rect, SDL_MapRGB( screenSurface->format, 255, 255, 255));<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043c \u043f\u043b\u0430\u043d\u043a\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044cc\u044f \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043a\u043d\u043e\u043f\u043e\u043a A\/D. Velocity \u043d\u0443\u0436\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u043f\u043b\u0430\u043d\u043a\u0443.<\/p>\n<pre><code class=\"cpp\">struct Paddle {     SDL_Point velocity;     SDL_Rect area;      Paddle() {         area = {350, 550, 100, 20};         velocity = {0, 0, 0, 0};     }      void move(SDL_Keycode key) {         if (key == SDLK_a){             velocity.x = -1;             if (area.x &lt;= 0) {                 velocity.x = 0;                 area.x = 0;             }         }         if (key == SDLK_d){             velocity.x = 1;             if (area.x + area.w >= SCREEN_WIDTH) {                 velocity.x = 0;                 area.x = SCREEN_WIDTH - area.w;             }         }     }      void update() {         area.x += velocity.x;         if (area.x &lt;= 0) {             area.x = 0;         }         if (area.x + area.w >= SCREEN_WIDTH) {             area.x = SCREEN_WIDTH - area.w;         }     }  };<\/code><\/pre>\n<p>\u0418 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0430\u043f\u0434\u0435\u0439\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0448\u0430\u0440\u0438\u043a\u0430, \u043f\u0443\u0441\u0442\u044c \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u0438 \u043d\u0430\u0448 \u0448\u0430\u0440\u0438\u043a  \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u043a\u0432\u0430\u0434\u0440\u0430\u0442. \u0414\u0430 \u043f\u0440\u043e\u0441\u0442\u044f\u0442 \u043c\u0435\u043d\u044f \u0431\u043e\u0433\u0438 \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u043a\u043e\u0434\u0430, \u044f \u043f\u0440\u043e\u043a\u0438\u043d\u0443\u043b \u043e\u0431\u0441\u0447\u0435\u0442 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0439 \u0441\u043e \u0441\u0442\u0435\u043d\u043a\u0430\u043c\u0438 \u0438 \u043f\u043b\u0430\u043d\u043a\u043e\u0439 \u043f\u0440\u044f\u043c\u043e \u0432 \u0430\u043f\u0434\u0435\u0439\u0442 \u0448\u0430\u0440\u0438\u043a\u0430.<\/p>\n<pre><code class=\"cpp\">    bool update(const Paddle &amp;paddle) {         if (SDL_GetTicks() % 2 == 1) { return true; }         velocity.x *= (position.x &lt;= 0 || position.x >= SW.x - position.w) ? -1 : 1;         velocity.y *= (position.y &lt;= 0) ? -1 : 1;         if (position.y >= SW.y - position.h) {             velocity = {0, 0};             position = {395, 295, 10, 10};             return false;         }         velocity.y *= (position.y == (paddle.y) &amp;&amp; (position.x >= paddle.x) &amp;&amp; (position.x &lt;= paddle.x + paddle.w)) ? -1 : 1;         position.x += velocity.x;         position.y += velocity.y;         (SDL_Point&amp;)r = (SDL_Point&amp;)position;         return true;     }<\/code><\/pre>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u043d\u0438\u0435 \u0431\u043b\u043e\u043a\u043e\u0432. \u041d\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b\u043e\u0441\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0443\u0447\u0448\u0435, \u043a\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 \u0441 \u0448\u0430\u0440\u0438\u043a\u043e\u043c \u043f\u043e\u0441\u043b\u0435 \u0430\u043f\u0434\u0435\u0439\u0442\u0430 \u043c\u0443\u0432\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u0447\u0442\u043e \u0448\u0430\u0440\u0438\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u043b\u043e\u043a\u0430, \u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0435\u0433\u043e \u0440\u0430\u0437\u0431\u0438\u0442\u0438\u0435.<\/p>\n<pre><code class=\"cpp\">        for (int i = 0; i &lt; 160; i++) {             if (SDL_HasIntersection(&amp;game.ball.r, &amp;game.bricks[i].r) &amp;&amp; game.bricks[i].is_alive) {                 game.ball.position.y += 2;                 game.ball.velocity.y *= -1;                 game.bricks[i].is_alive = false;             }         }<\/code><\/pre>\n<p>\u041d\u0430 \u0432\u0441\u0435 \u044d\u0442\u043e \u043f\u043b\u044e\u0441 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0438 \u0443\u0448\u043b\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 30 \u043c\u0438\u043d\u0443\u0442, \u043f\u043b\u044e\u0441 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0447\u0442\u043e \u0442\u043e\u0436\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0441 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u0434\u0430. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434:<\/p>\n<details class=\"spoiler\">\n<summary>Strongout\/146 lines<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">\u0441onst int SCREEN_WIDTH = 800; const int SCREEN_HEIGHT = 600;  const int BRICK_WIDTH = 48; const int BRICK_HEIGHT = 20;  using p = SDL_Rect; using v = p;  struct Brick {     p r;     bool is_alive; } ;  struct Paddle {     v velocity = {0, 0, 0, 0};     p area = {350, 550, 100, 20};      void move(SDL_Keycode key) {         if (key == SDLK_a){             velocity.x = -1;             if (area.x &lt;= 0) {                 velocity.x = 0;                 area.x = 0;             }         }         if (key == SDLK_d){             velocity.x = 1;             if (area.x + area.w >= SCREEN_WIDTH) {                 velocity.x = 0;                 area.x = SCREEN_WIDTH - area.w;             }         }     }      void update() {         area.x += velocity.x;         if (area.x &lt;= 0) {             area.x = 0;         }         if (area.x + area.w >= SCREEN_WIDTH) {             area.x = SCREEN_WIDTH - area.w;         }     } };  struct Ball {     v velocity = {0, 0, 0, 0};     p position = {395, 295, 10, 10};     p r = position;      void start(SDL_Keycode key) {         if (key == SDLK_SPACE &amp;&amp; velocity.x == 0 &amp;&amp; velocity.y == 0)             velocity = {1, 1};     }      bool update(const Paddle &amp;paddle) {         if (SDL_GetTicks() % 2 == 0) {             if (position.x &lt;= 0 || position.x >= SCREEN_WIDTH - position.w) {                 velocity.x *= -1;             }             if (position.y &lt;= 0) {                 velocity.y *= -1;             }              if (position.y >= SCREEN_HEIGHT - position.h) {                 velocity<\/code><\/pre>\n<\/div>\n<\/details>\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-363098","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/363098","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=363098"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/363098\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=363098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=363098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=363098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}