{"id":329767,"date":"2022-02-17T21:00:51","date_gmt":"2022-02-17T21:00:51","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=329767"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=329767","title":{"rendered":"<span>Pyxel\u00a0 \u0434\u043b\u044f \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0435\u0439 \u0440\u0435\u0442\u0440\u043e \u0438\u0433\u0440<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><strong>Pyxel<\/strong>\u00a0&#8212; \u044d\u0442\u043e \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0434\u0432\u0438\u0436\u043e\u043a \u0434\u043b\u044f Python \u0432 \u0441\u0442\u0438\u043b\u0435 \u0440\u0435\u0442\u0440\u043e.<\/p>\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0435, \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0440\u044b\u043c\u0438 \u0438\u0433\u0440\u043e\u0432\u044b\u043c\u0438 \u043a\u043e\u043d\u0441\u043e\u043b\u044f\u043c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0430\u043b\u0438\u0442\u0440\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432\u0441\u0435\u0433\u043e \u0438\u0437 16 \u0446\u0432\u0435\u0442\u043e\u0432, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e 4 \u0437\u0432\u0443\u043a\u0430 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0438\u0433\u0440\u0430\u043d\u044b \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e), \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0435\u0433\u043a\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u044b \u0432 \u0441\u0442\u0438\u043b\u0435 \u043f\u0438\u043a\u0441\u0435\u043b\u044c-\u0430\u0440\u0442.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/804\/832\/a58\/804832a58060a2897ecf1f087dfeabb2.gif\" width=\"320\" height=\"240\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/804\/832\/a58\/804832a58060a2897ecf1f087dfeabb2.gif\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0fd\/1b1\/b0d\/0fd1b1b0d1a7ccaecde87e9ed86b0df4.gif\" width=\"320\" height=\"240\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0fd\/1b1\/b0d\/0fd1b1b0d1a7ccaecde87e9ed86b0df4.gif\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"bordered\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/562\/e44\/fe2\/562e44fe2764df1259d24b655f1cda8e.gif\" width=\"400\" height=\"300\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/562\/e44\/fe2\/562e44fe2764df1259d24b655f1cda8e.gif\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/447\/bb2\/a0c\/447bb2a0cd30f30b48428b5e811ef4da.gif\" width=\"400\" height=\"300\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/447\/bb2\/a0c\/447bb2a0cd30f30b48428b5e811ef4da.gif\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"bordered\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/73a\/182\/3b5\/73a1823b54059ffbfeae476f6f769edd.gif\" width=\"480\" height=\"360\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/73a\/182\/3b5\/73a1823b54059ffbfeae476f6f769edd.gif\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c9b\/28a\/c88\/c9b28ac880087246e2c74cca2151c90a.gif\" width=\"480\" height=\"360\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c9b\/28a\/c88\/c9b28ac880087246e2c74cca2151c90a.gif\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 API Pyxel \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u0435\u043d\u044b\u00a0<a href=\"https:\/\/www.lexaloffle.com\/pico-8.php\" rel=\"noopener noreferrer nofollow\">PICO-8<\/a>\u00a0\u0438\u00a0<a href=\"https:\/\/tic80.com\/\" rel=\"noopener noreferrer nofollow\">TIC-80<\/a>.<\/p>\n<p>Pyxel &#8212; \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0438 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u043d\u0438\u044f. \u0417\u0430 \u0434\u0435\u043b\u043e!<\/p>\n<hr\/>\n<p><strong><em>\u0425\u0430\u0440\u0435\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438<\/em><\/strong> <\/p>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0430 Windows, Mac \u0438 Linux<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u0434 \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043d\u0430 Python<\/p>\n<\/li>\n<li>\n<p>16-\u0446\u0432\u0435\u0442\u043d\u0430\u044f \u043f\u0430\u043b\u0438\u0442\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>3 \u043d\u0430\u0431\u043e\u0440\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 256&#215;256 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439<\/p>\n<\/li>\n<li>\n<p>8 \u0442\u0430\u0439\u043b\u043c\u0430\u043f\u043e\u0432 256&#215;256 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439<\/p>\n<\/li>\n<li>\n<p>4 \u043a\u0430\u043d\u0430\u043b\u0430 \u0441 64 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0437\u0432\u0443\u043a\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>8 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u0412\u0432\u043e\u0434 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b, \u043c\u044b\u0448\u043a\u0438 \u0438\u043b\u0438 \u0438\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0438 \u0437\u0432\u0443\u043a\u0430<\/p>\n<\/li>\n<\/ul>\n<h4>\u0426\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u041f\u0430\u043b\u0438\u0442\u0440\u0430<\/h4>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b8c\/2da\/a13\/b8c2daa135558aab44823279de1d8847.png\" width=\"510\" height=\"162\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b8c\/2da\/a13\/b8c2daa135558aab44823279de1d8847.png\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/981\/7cd\/ada\/9817cdadabb71ac98636bd6e42eebf71.png\" width=\"256\" height=\"16\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/981\/7cd\/ada\/9817cdadabb71ac98636bd6e42eebf71.png\"\/><figcaption><\/figcaption><\/figure>\n<p><strong><em>\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c<\/em><\/strong> <\/p>\n<p>\u041f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 Pyxel, \u0432 \u0432\u0438\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u0438 \u0432 \u0432\u0438\u0434\u0435 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438.<\/p>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 \u0432 \u0432\u0438\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u0430<\/h4>\n<p>\u0412\u0435\u0440\u0441\u0438\u044f Pyxel \u0432 \u0432\u0438\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0434\u043b\u044f Python.<\/p>\n<p>\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u043c \u0441 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u0438 Python \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b\u00a0<code>pip<\/code>\u00a0\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u043c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 Python.<\/p>\n<p><strong>Windows<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438\u00a0<a href=\"https:\/\/www.python.org\/\" rel=\"noopener noreferrer nofollow\">Python3<\/a>\u00a0(\u0432\u0435\u0440\u0441\u0438\u0438 3.7 \u0438\u043b\u0438 \u0432\u044b\u0448\u0435) \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"python\">pip install -U pyxel<\/code><\/pre>\n<p><strong>Mac<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438\u00a0<a href=\"https:\/\/www.python.org\/\" rel=\"noopener noreferrer nofollow\">Python3<\/a>\u00a0(\u0432\u0435\u0440\u0441\u0438\u0438 3.7 \u0438\u043b\u0438 \u0432\u044b\u0448\u0435) \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"python\">pip3 install -U pyxel<\/code><\/pre>\n<p><strong>Linux<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0430\u043a\u0435\u0442\u0430 SDL2 (<code>libsdl2-dev<\/code>\u00a0\u0434\u043b\u044f Ubuntu),\u00a0<a href=\"https:\/\/www.python.org\/\" rel=\"noopener noreferrer nofollow\">Python3<\/a>\u00a0(\u0432\u0435\u0440\u0441\u0438\u0438 3.7 \u0438\u043b\u0438 \u0432\u044b\u0448\u0435) \u0438\u00a0<code>python3-pip<\/code>\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"python\">sudo pip3 install -U pyxel<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0451 \u0432\u044b\u0448\u0435 \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442 Pyxel \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432\u00a0<code>cmake<\/code>\u00a0\u0438\u00a0<code>rust<\/code>\u00a0\u0438 \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434:  <\/p>\n<pre><code>git clone https:\/\/github.com\/kitao\/pyxel.git cd pyxel make clean all sudo pip3 install .<\/code><\/pre>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438<\/h4>\n<p>\u0410\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f Pyxel \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u044f\u0449\u0435\u0435 \u043e\u0442 Python.<\/p>\n<p>\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u043c \u0441\u0440\u0430\u0437\u0443 \u043d\u0430\u0447\u0430\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u043d\u0435 \u043e\u0442\u0432\u043b\u0435\u043a\u0430\u044f\u0441\u044c \u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 Python, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0442\u0435\u043c, \u043a\u0442\u043e \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0445\u043e\u0447\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438\u0433\u0440\u044b.<\/p>\n<p><strong>Windows<\/strong><\/p>\n<p>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a\u0430 \u0434\u043b\u044f Windows (<code>pyxel-[version]-windows-setup.exe<\/code>) \u0441\u043e\u00a0<a href=\"https:\/\/github.com\/kitao\/pyxel\/releases\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/a>.<\/p>\n<p><strong>Mac<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438\u00a0<a href=\"https:\/\/brew.sh\/\" rel=\"noopener noreferrer nofollow\">Homebrew<\/a>\u00a0\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434:<\/p>\n<pre><code>brew tap kitao\/pyxel brew install pyxel<\/code><\/pre>\n<p><strong>Linux<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0430\u043a\u0435\u0442\u0430 SDL2 (<code>libsdl2-dev<\/code>\u00a0\u0434\u043b\u044f Ubuntu) \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438\u00a0<a href=\"https:\/\/brew.sh\/\" rel=\"noopener noreferrer nofollow\">Homebrew<\/a>\u00a0\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434:<\/p>\n<pre><code>brew tap kitao\/pyxel brew install pyxel<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0451 \u0432\u044b\u0448\u0435 \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442 Pyxel \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<h4>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b<\/h4>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Pyxel, \u043f\u0440\u0438\u043c\u0435\u0440\u044b Pyxel \u0431\u0443\u0434\u0443\u0442 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u043f\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<pre><code>pyxel copy_examples<\/code><\/pre>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u044b:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/01_hello_pyxel.py\" rel=\"noopener noreferrer nofollow\">01_hello_pyxel.py<\/a>\u00a0&#8212; \u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/02_jump_game.py\" rel=\"noopener noreferrer nofollow\">02_jump_game.py<\/a>\u00a0&#8212; \u0418\u0433\u0440\u0430 \u043f\u0440\u044b\u0436\u043a\u043e\u0432 \u0441 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 Pyxel<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/03_draw_api.py\" rel=\"noopener noreferrer nofollow\">03_draw_api.py<\/a>\u00a0&#8212; \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f API \u0434\u043b\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/04_sound_api.py\" rel=\"noopener noreferrer nofollow\">04_sound_api.py<\/a>\u00a0&#8212; \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f API \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0437\u0432\u0443\u043a\u043e\u043c<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/05_color_palette.py\" rel=\"noopener noreferrer nofollow\">05_color_palette.py<\/a>\u00a0&#8212; \u0426\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u043f\u0430\u043b\u0438\u0442\u0440\u0430<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/06_click_game.py\" rel=\"noopener noreferrer nofollow\">06_click_game.py<\/a>\u00a0&#8212; \u0418\u0433\u0440\u0430 \u0441 \u043a\u043b\u0438\u043a\u0430\u043c\u0438 \u043c\u044b\u0448\u043a\u043e\u0439<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/07_snake.py\" rel=\"noopener noreferrer nofollow\">07_snake.py<\/a>\u00a0&#8212; \u0417\u043c\u0435\u0439\u043a\u0430 \u0441 BGM<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/08_triangle_api.py\" rel=\"noopener noreferrer nofollow\">08_triangle_api.py<\/a>\u00a0&#8212; \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f API \u043f\u043e \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044e \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u0438\u0433\u043e\u043d\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/09_shooter.py\" rel=\"noopener noreferrer nofollow\">09_shooter.py<\/a>\u00a0&#8212; \u0418\u0433\u0440\u0430 \u0436\u0430\u043d\u0440\u0430 \u00ab\u0443\u0431\u0435\u0439 \u0432\u0441\u0435\u0445\u00bb \u0441 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043e\u043c \u043c\u0435\u0436\u0434\u0443 \u044d\u043a\u0440\u0430\u043d\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/10_platformer.py\" rel=\"noopener noreferrer nofollow\">10_platformer.py<\/a>\u00a0&#8212; \u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440 \u0441 \u0431\u043e\u043a\u043e\u0432\u044b\u043c \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043d\u0433\u043e\u043c \u0438 \u043a\u0430\u0440\u0442\u043e\u0439<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/11_offscreen.py\" rel=\"noopener noreferrer nofollow\">11_offscreen.py<\/a>\u00a0&#8212; \u0412\u043d\u0435\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0441\u0441\u0430 Image<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/doc\/images\/30SecondsOfDaylight.gif\" rel=\"noopener noreferrer nofollow\">30SecondsOfDaylight.pyxapp<\/a>\u00a0&#8212; 1-\u044f \u043f\u043e\u0431\u0435\u0434\u043d\u0430\u044f \u0438\u0433\u0440\u0430 Pyxel Jam \u043e\u0442\u00a0<a href=\"https:\/\/twitter.com\/helpcomputer0\" rel=\"noopener noreferrer nofollow\">Adam<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/doc\/images\/megaball.gif\" rel=\"noopener noreferrer nofollow\">megaball.pyxapp<\/a>\u00a0&#8212; \u0410\u0440\u043a\u0430\u0434\u043d\u0430\u044f \u0438\u0433\u0440\u0430 \u0441 \u0444\u0438\u0437\u0438\u043a\u043e\u0439 \u043c\u044f\u0447\u0430 \u043e\u0442\u00a0<a href=\"https:\/\/twitter.com\/helpcomputer0\" rel=\"noopener noreferrer nofollow\">Adam<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code>cd pyxel_examples pyxel run 01_hello_pyxel.py pyxel play 30SecondsOfDaylight.pyxapp<\/code><\/pre>\n<h3>\u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Pyxel<\/h3>\n<h4>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f Pyxel \u0432 \u0432\u0430\u0448 \u043a\u043e\u0434 \u043d\u0430 Python, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0440 \u043e\u043a\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b\u00a0<code>init<\/code>, \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>run<\/code>.<\/p>\n<pre><code class=\"python\">import pyxel  pyxel.init(160, 120)  def update():     if pyxel.btnp(pyxel.KEY_Q):         pyxel.quit()  def draw():     pyxel.cls(0)     pyxel.rect(10, 10, 20, 20, 11)  pyxel.run(update, draw)<\/code><\/pre>\n<p>\u0410\u0433\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>run<\/code>\u00a0&#8212; \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>update<\/code>\u00a0\u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u0430\u0434\u0440 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>draw<\/code>\u00a0\u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u043f\u043e \u043c\u0435\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<p>\u0412 \u0441\u0430\u043c\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0441\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043a\u043e\u0434 Pyxel \u0432 \u043e\u0434\u0438\u043d \u043a\u043b\u0430\u0441\u0441 (\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u0440).<\/p>\n<pre><code class=\"python\">import pyxel  class App:     def __init__(self):         pyxel.init(160, 120)         self.x = 0         pyxel.run(self.update, self.draw)      def update(self):         self.x = (self.x + 1) % pyxel.width      def draw(self):         pyxel.cls(0)         pyxel.rect(self.x, 0, 8, 8, 9)  App()<\/code><\/pre>\n<p>\u041c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043a\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>show<\/code>\u00a0\u0438\u00a0<code>flip<\/code>\u00a0\u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0439 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439.<\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f\u00a0<code>show<\/code>\u00a0\u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0438 \u0436\u0434\u0435\u0442 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0438\u00a0<code>ESC<\/code>.<\/p>\n<pre><code>import pyxel  pyxel.init(120, 120) pyxel.cls(1) pyxel.circb(60, 60, 40, 7) pyxel.show()<\/code><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f\u00a0<code>flip<\/code>\u00a0\u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0435\u0434\u0438\u043d\u043e\u0436\u0434\u044b.  <\/p>\n<pre><code>import pyxel  pyxel.init(120, 80)  while True:     pyxel.cls(3)     pyxel.rectb(pyxel.frame_count % 160 - 40, 20, 40, 40, 7)     pyxel.flip()<\/code><\/pre>\n<h4>\u0417\u0430\u043f\u0443\u0441\u043a Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043d\u0430 Python \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u043f\u0443\u0442\u0451\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:  <\/p>\n<pre><code>pyxel run \u0418\u041c\u042f_PYTHON_\u0424\u0410\u0419\u041b\u0410<\/code><\/pre>\n<p>\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 Pyxel \u0432 \u0432\u0438\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0430 Python:  <\/p>\n<pre><code>cd pyxel_examples python3 \u0418\u041c\u042f_PYTHON_\u0424\u0410\u0419\u041b\u0410<\/code><\/pre>\n<p>(\u041f\u043e\u0434 Windows, \u043d\u0430\u0431\u0438\u0440\u0430\u0439\u0442\u0435\u00a0<code>python<\/code>\u00a0\u0432\u043c\u0435\u0441\u0442\u043e\u00a0<code>python3<\/code>)<\/p>\n<h4>\u041e\u0441\u043e\u0431\u044b\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438<\/h4>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u0441\u043e\u0431\u044b\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p><code>Esc<\/code>\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><code>Alt(Option)+1<\/code>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043d\u0438\u043c\u043e\u043a \u044d\u043a\u0440\u0430\u043d\u0430 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b<\/p>\n<\/li>\n<li>\n<p><code>Alt(Option)+2<\/code>\u041d\u0430\u0447\u0430\u0442\u044c \u0437\u0430\u0445\u0432\u0430\u0442 \u044d\u043a\u0440\u0430\u043d\u0430 \u0438\u0433\u0440\u044b<\/p>\n<\/li>\n<li>\n<p><code>Alt(Option)+3<\/code>\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u0437\u0430\u0445\u0432\u0430\u0442\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b (\u0434\u043e 10 \u0441\u0435\u043a\u0443\u043d\u0434)<\/p>\n<\/li>\n<li>\n<p><code>Alt(Option)+0<\/code>\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c\/\u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0433 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 (fps, \u0432\u0440\u0435\u043c\u044f \u043d\u0430 update, \u0432\u0440\u0435\u043c\u044f \u043d\u0430 draw)<\/p>\n<\/li>\n<li>\n<p><code>Alt(Option)+Enter<\/code>\u0412\u043e\u0439\u0442\u0438\/\u0432\u044b\u0439\u0442\u0438 \u0438\u0437 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430<\/p>\n<\/li>\n<\/ul>\n<h4>\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0439 \u0444\u0430\u0439\u043b<\/h4>\n<p>\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 Pyxel Editor \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u0437\u0432\u0443\u043a\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0432 Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438.<\/p>\n<p>\u041e\u043d \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code>pyxel edit [\u0438\u043c\u044f_\u0440\u0435\u0441\u0443\u0440\u0441\u043d\u043e\u0433\u043e_\u0444\u0430\u0439\u043b\u0430]<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0439 \u0444\u0430\u0439\u043b (.pyxres) \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0442\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d. \u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u0444\u0430\u0439\u043b \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c. \u0415\u0441\u043b\u0438 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043e, \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0438\u043c\u044f\u00a0<code>my_resource.pyxres<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 Pyxel Editor, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c drag-and-drop. \u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438, \u0437\u0430\u0436\u0430\u0432 \u043a\u043b\u0430\u0432\u0438\u0448\u0443\u00a0<code>Ctrl(Cmd)<\/code>, \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0432 \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0442\u0438\u043f \u0440\u0435\u0441\u0443\u0440\u0441\u0430 (\u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\/\u043a\u0430\u0440\u0442\u0430 \u0442\u0430\u0439\u043b\u043e\u0432\/\u0437\u0432\u0443\u043a\/\u043c\u0443\u0437\u044b\u043a\u0430). \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043e\u0434\u0438\u043d.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>load<\/code>.<\/p>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 Pyxel Editor \u043e\u0441\u043d\u0430\u0449\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0440\u0435\u0436\u0438\u043c\u0430\u043c\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p><strong>\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439:<\/strong><\/p>\n<p>\u0420\u0435\u0436\u0438\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0431\u043e\u0440\u043e\u0432 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/187\/75a\/f49\/18775af494a98c7929e2777fdaa317e6.gif\" width=\"480\" height=\"360\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/187\/75a\/f49\/18775af494a98c7929e2777fdaa317e6.gif\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 (png\/gif\/jpeg) \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043e \u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u043f\u0443\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u044f png \u0444\u0430\u0439\u043b\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p><strong>\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0442\u0430\u0439\u043b\u043c\u0430\u043f\u043e\u0432:<\/strong><\/p>\n<p>\u0420\u0435\u0436\u0438\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0430\u0439\u043b\u043c\u0430\u043f\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438\u0437\u043e\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u044b \u0432 \u043f\u043b\u0438\u0442\u043e\u0447\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/680\/f8f\/5f8\/680f8f5f85759c3a94f4d9360a50efde.gif\" width=\"480\" height=\"360\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/680\/f8f\/5f8\/680f8f5f85759c3a94f4d9360a50efde.gif\"\/><figcaption><\/figcaption><\/figure>\n<p><strong>\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0437\u0432\u0443\u043a\u0430:<\/strong><\/p>\n<p>\u0420\u0435\u0436\u0438\u043c \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0432\u0443\u043a\u043e\u0432\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/327\/e80\/943\/327e8094365b23e2bf9ecf9f039a39b4.gif\" width=\"480\" height=\"360\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/327\/e80\/943\/327e8094365b23e2bf9ecf9f039a39b4.gif\"\/><figcaption><\/figcaption><\/figure>\n<p><strong>\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043c\u0443\u0437\u044b\u043a\u0438:<\/strong><\/p>\n<p>\u0420\u0435\u0436\u0438\u043c \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u0443\u0437\u044b\u043a\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0437\u0432\u0443\u043a\u0438 \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u043d\u0438\u044f.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/18f\/d20\/747\/18fd20747712c43d99799607fab6304c.gif\" width=\"480\" height=\"360\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/18f\/d20\/747\/18fd20747712c43d99799607fab6304c.gif\"\/><figcaption><\/figcaption><\/figure>\n<h4>\u0414\u0440\u0443\u0433\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<\/h4>\n<p>\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u043a\u0430\u0440\u0442\u044b \u0442\u0430\u0439\u043b\u043e\u0432 Pyxel \u043c\u043e\u0433\u0443\u0442 \u0442\u0430\u043a\u0436\u0435 \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0442\u0440\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0439\u00a0<code>Image.set<\/code>\u00a0\u0438\u043b\u0438\u00a0<code>Tilemap.set<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 png \u0444\u0430\u0439\u043b\u0430, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0432 \u043f\u0430\u043b\u0438\u0442\u0440\u0435 Pyxel, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>Image.load<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0432\u0443\u043a\u0438 Pyxel \u043c\u043e\u0433\u0443\u0442 \u0442\u0430\u043a\u0436\u0435 \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0437\u0432\u0443\u043a \u0438\u0437 \u0441\u0442\u0440\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0439\u00a0<code>Sound.set<\/code>\u00a0\u0438\u043b\u0438\u00a0<code>Music.set<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0443 \u043f\u043e API (\u043d\u0438\u0436\u0435) \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u044d\u0442\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439.<\/p>\n<h4>\u041a\u0430\u043a \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h4>\n<p>Pyxel \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 (\u0444\u0430\u0439\u043b Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f), \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043d\u0430 \u0432\u0441\u0435\u0445 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (.pyxapp) \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<pre><code>pyxel package \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439_\u043a\u0430\u0442\u0430\u043b\u043e\u0433_\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u043c\u044f_\u0444\u0430\u0439\u043b_\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0449\u0435\u0433\u043e_\u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0432 \u0441\u0435\u0431\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438\u043b\u0438 \u043c\u043e\u0434\u0443\u043b\u0438, \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0438\u0445 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code>pyxel play \u0424\u0410\u0419\u041b_PYXEL_\u041f\u0420\u0418\u041b\u041e\u0416\u0415\u041d\u0418\u042f<\/code><\/pre>\n<h3>\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e API<\/h3>\n<h4>\u0421\u0438\u0441\u0442\u0435\u043c\u0430<\/h4>\n<ul>\n<li>\n<p><code>width<\/code>,\u00a0<code>height<\/code><br \/>\u0428\u0438\u0440\u0438\u043d\u0430 \u0438 \u0432\u044b\u0441\u043e\u0442\u0430 \u043e\u043a\u043d\u0430<\/p>\n<\/li>\n<li>\n<p><code>frame_count<\/code><br \/>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u0430\u0434\u0440\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><code>init(width, height, [title], [fps], [quit_key], [capture_scale], [capture_sec])<\/code><br \/>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c\u0438 \u044d\u043a\u0440\u0430\u043d\u0430 (<code>width<\/code>,\u00a0<code>height<\/code>). \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u044b: \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043e\u043a\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u00a0<code>title<\/code>, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0430\u0434\u0440\u043e\u0432 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u00a0<code>fps<\/code>, \u043a\u043b\u0430\u0432\u0438\u0448\u0430 \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 \u0438\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u2014\u00a0<code>quit_key<\/code>, \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0435 \u044d\u043a\u0440\u0430\u043d\u0430 \u2014\u00a0<code>capture_scale<\/code>\u00a0\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u0440\u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0435 \u044d\u043a\u0440\u0430\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<code>capture_sec<\/code>.<br \/>\u041f\u0440\u0438\u043c\u0435\u0440:\u00a0<code>pyxel.init(160, 120, title=\"My Pyxel App\", fps=60, quit_key=pyxel.KEY_NONE, capture_scale=3, capture_sec=0)<\/code><\/p>\n<\/li>\n<li>\n<p><code>run(update, draw)<\/code><br \/>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044e\u00a0<code>update<\/code>\u00a0\u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u043b\u043e\u0433\u0438\u043a\u0438 \u0438\u00a0<code>draw<\/code>\u00a0\u0434\u043b\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p><code>show()<\/code><br \/>\u041e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0434\u0440 \u0438 \u0436\u0434\u0430\u0442\u044c \u0432\u044b\u0445\u043e\u0434\u0430 \u0438\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043a\u043b\u0430\u0432\u0438\u0448\u0438\u00a0<code>Esc<\/code>\u00a0(\u043d\u0435 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445).<\/p>\n<\/li>\n<li>\n<p><code>flip()<\/code><br \/>\u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0434\u0440 (\u043d\u0435 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445).<\/p>\n<\/li>\n<li>\n<p><code>quit()<\/code><br \/>\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0420\u0435\u0441\u0443\u0440\u0441\u044b<\/h4>\n<ul>\n<li>\n<p><code>load(filename, [image], [tilemap], [sound], [music])<\/code>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0439 \u0444\u0430\u0439\u043b (.pyxres). \u0415\u0441\u043b\u0438 False \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0434\u043b\u044f \u0442\u0438\u043f\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 (<code>image\/tilemap\/sound\/music<\/code>), \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0412\u0432\u043e\u0434<\/h4>\n<ul>\n<li>\n<p><code>mouse_x<\/code>,\u00a0<code>mouse_y<\/code><br \/>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0443\u0440\u0441\u043e\u0440\u0430 \u043c\u044b\u0448\u043a\u0438<\/p>\n<\/li>\n<li>\n<p><code>mouse_wheel<\/code><br \/>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043b\u0435\u0441\u0438\u043a\u0430 \u043c\u044b\u0448\u043a\u0438<\/p>\n<\/li>\n<li>\n<p><code>btn(\u043a\u043b\u0430\u0432\u0438\u0448\u0430)<\/code><br \/>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u00a0<code>Ture<\/code>, \u0435\u0441\u043b\u0438\u00a0<code>\u043a\u043b\u0430\u0432\u0438\u0448\u0430<\/code>\u00a0\u043d\u0430\u0436\u0430\u0442\u0430, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u00a0<code>False<\/code>. (<a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/__init__.pyi\" rel=\"noopener noreferrer nofollow\">\u0421\u043f\u0438\u0441\u043e\u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u043a\u043b\u0430\u0432\u0438\u0448<\/a>)<\/p>\n<\/li>\n<li>\n<p><code>btnp(\u043a\u043b\u0430\u0432\u0438\u0448\u0430, [hold], [period])<\/code><br \/>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u00a0<code>True<\/code>, \u0435\u0441\u043b\u0438\u00a0<code>\u043a\u043b\u0430\u0432\u0438\u0448\u0430<\/code>\u00a0\u043d\u0430\u0436\u0430\u0442\u0430 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u0430\u0434\u0440, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u00a0<code>False<\/code>. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u00a0<code>hold<\/code>\u00a0\u0438\u00a0<code>period<\/code>,\u00a0<code>True<\/code>\u00a0\u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0435\u00a0<code>period<\/code>\u00a0\u043a\u0430\u0434\u0440\u043e\u0432, \u043a\u043e\u0433\u0434\u0430\u00a0<code>key<\/code>\u00a0\u0443\u0436\u0435 \u0437\u0430\u0436\u0430\u0442\u0430 \u0431\u043e\u043b\u0435\u0435\u00a0<code>hold<\/code>\u00a0\u043a\u0430\u0434\u0440\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><code>btnr(\u043a\u043b\u0430\u0432\u0438\u0448\u0430)<\/code><br \/>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u00a0<code>True<\/code>, \u0435\u0441\u043b\u0438\u00a0<code>\u043a\u043b\u0430\u0432\u0438\u0448\u0430<\/code>\u00a0\u0431\u044b\u043b\u0430 \u043e\u0442\u043f\u0443\u0449\u0435\u043d\u0430 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u0430\u0434\u0440, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u00a0<code>False<\/code><\/p>\n<\/li>\n<li>\n<p><code>mouse(\u0432\u0438\u0434\u043d\u0430)<\/code><br \/>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043a\u0443\u0440\u0441\u043e\u0440\u0430: \u0435\u0441\u043b\u0438\u00a0<code>visible<\/code>\u00a0\u0440\u0430\u0432\u043d\u043e\u00a0<code>True<\/code>, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0438\u043d\u0434\u044b\u043c, \u0435\u0441\u043b\u0438\u00a0<code>False<\/code>, \u0442\u043e \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u044b\u043c. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043a\u0443\u0440\u0441\u043e\u0440 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f, \u0435\u0433\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0413\u0440\u0430\u0444\u0438\u043a\u0430<\/h4>\n<ul>\n<li>\n<p><code>colors<\/code><br \/>\u0421\u043f\u0438\u0441\u043e\u043a \u0446\u0432\u0435\u0442\u043e\u0432 \u043f\u0430\u043b\u0438\u0442\u0440\u044b. \u0426\u0432\u0435\u0442 \u043a\u043e\u0434\u0438\u0440\u0443\u0435\u0442\u0441\u044f 24-\u0431\u0438\u0442\u043d\u044b\u043c \u0446\u0435\u043b\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u00a0<code>colors.from_list<\/code>\u00a0\u0438\u00a0<code>colors.to_list<\/code>\u00a0\u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 Python.<br \/>\u041f\u0440\u0438\u043c\u0435\u0440:\u00a0<code>org_colors = pyxel.colors.to_list(); pyxel.colors[15] = 0x112233; pyxel.colors.from_list(org_colors)<\/code><\/p>\n<\/li>\n<li>\n<p><code>image(img, [system])<\/code><br \/>\u041e\u043f\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439\u00a0<code>img<\/code>\u00a0(0-2) (\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043a\u043b\u0430\u0441\u0441 Image).<br \/>\u041f\u0440\u0438\u043c\u0435\u0440:\u00a0<code>pyxel.image(0).load(0, 0, \"title.png\")<\/code><\/p>\n<\/li>\n<li>\n<p><code>tilemap(tm)<\/code><br \/>\u041e\u043f\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u0439\u043b\u043c\u0430\u043f\u043e\u043c\u00a0<code>tm<\/code>(0-7) (\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043a\u043b\u0430\u0441\u0441 Tilemap)<\/p>\n<\/li>\n<li>\n<p><code>clip(x, y, w, h)<\/code><br \/>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u043a\u0440\u0430\u043d\u0430 \u0441 (<code>x<\/code>,\u00a0<code>y<\/code>) \u0434\u043e \u0448\u0438\u0440\u0438\u043d\u044b\u00a0<code>w<\/code>\u00a0\u0438 \u0432\u044b\u0441\u043e\u0442\u044b\u00a0<code>h<\/code>. \u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043e \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430 \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<code>clip()<\/code><\/p>\n<\/li>\n<li>\n<p><code>camera(x, y)<\/code><br \/>\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043b\u0435\u0432\u043e\u0433\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0433\u043b\u0430 \u044d\u043a\u0440\u0430\u043d\u0430 \u043d\u0430 (<code>x<\/code>,\u00a0<code>y<\/code>). \u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043b\u0435\u0432\u043e\u0433\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0433\u043b\u0430 \u044d\u043a\u0440\u0430\u043d\u0430 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u0431\u0440\u043e\u0448\u0435\u043d\u044b \u0432 (<code>0<\/code>,\u00a0<code>0<\/code>) \u0432\u044b\u0437\u043e\u0432\u043e\u043c\u00a0<code>camera()<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>pal(col1, col2)<\/code><br \/>\u041f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0446\u0432\u0435\u0442\u00a0<code>col1<\/code>\u00a0\u0441 \u0446\u0432\u0435\u0442\u043e\u043c\u00a0<code>col2<\/code>\u00a0\u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f. \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0430\u043b\u0438\u0442\u0440\u0443 \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<code>pal()<\/code><\/p>\n<\/li>\n<li>\n<p><code>cls(col)<\/code><br \/>\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c (\u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c) \u044d\u043a\u0440\u0430\u043d \u0446\u0432\u0435\u0442\u043e\u043c\u00a0<code>col<\/code><\/p>\n<\/li>\n<li>\n<p><code>pget(x, y)<\/code><br \/>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0446\u0432\u0435\u0442 \u043f\u0438\u043a\u0441\u0435\u043b\u044f \u043f\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c (<code>x<\/code>,\u00a0<code>y<\/code>)<\/p>\n<\/li>\n<li>\n<p><code>pset(x, y, col)<\/code><br \/>\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u0438\u043a\u0441\u0435\u043b\u044c \u0446\u0432\u0435\u0442\u0430\u00a0<code>col<\/code>\u00a0\u043f\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c (<code>x<\/code>,\u00a0<code>y<\/code>)<\/p>\n<\/li>\n<li>\n<p><code>line(x1, y1, x2, y2, col)<\/code><br \/>\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0440\u0435\u0437\u043e\u043a \u0446\u0432\u0435\u0442\u0430\u00a0<code>col<\/code>\u00a0\u0438\u0437 (<code>x1<\/code>,\u00a0<code>y1<\/code>) \u0432 (<code>x2<\/code>,\u00a0<code>y2<\/code>)<\/p>\n<\/li>\n<li>\n<p><code>rect(x, y, w, h, col)<\/code><br \/>\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0448\u0438\u0440\u0438\u043d\u044b, \u0432\u044b\u0441\u043e\u0442\u044b\u00a0<code>w<\/code>\u00a0\u0438 \u0446\u0432\u0435\u0442\u0430\u00a0<code>h<\/code>\u00a0\u043f\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c (<code>x<\/code>,\u00a0<code>y<\/code>)<\/p>\n<\/li>\n<li>\n<p><code>rectb(x, y, w, h, col)<\/code><br \/>\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0443\u0440 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u0448\u0438\u0440\u0438\u043d\u044b, \u0432\u044b\u0441\u043e\u0442\u044b\u00a0<code>w<\/code>\u00a0\u0438 \u0446\u0432\u0435\u0442\u0430\u00a0<code>h<\/code>\u00a0\u043f\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c (<code>x<\/code>,\u00a0<code>y<\/code>)<\/p>\n<\/li>\n<li>\n<p><code>circ(x, y, r, col)<\/code><br \/>\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u0440\u0443\u0433 \u0440\u0430\u0434\u0438\u0443\u0441\u0430\u00a0<code>r<\/code>\u00a0\u0438 \u0446\u0432\u0435\u0442\u0430\u00a0<code>col<\/code>\u00a0\u0446\u0435\u043d\u0442\u0440\u043e\u043c \u0432 (<code>x<\/code>,\u00a0<code>y<\/code>)<\/p>\n<\/li>\n<li>\n<p><code>circb(x, y, r, col)<\/code><br \/>\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0434\u0438\u0443\u0441\u0430\u00a0<code>r<\/code>\u00a0\u0438 \u0446\u0432\u0435\u0442\u0430\u00a0<code>col<\/code>\u00a0\u0446\u0435\u043d\u0442\u0440\u043e\u043c \u0432 (<code>x<\/code>,\u00a0<code>y<\/code>)<\/p>\n<\/li>\n<li>\n<p><code>elli(x, y, w, h, col)<\/code><br \/>\u041d\u0430\u0440\u0438\u0441\u0443\u0439\u0442\u0435 \u044d\u043b\u043b\u0438\u043f\u0441 \u0448\u0438\u0440\u0438\u043d\u043e\u0439\u00a0<code>w<\/code>, \u0432\u044b\u0441\u043e\u0442\u043e\u0439\u00a0<code>h<\/code>\u00a0\u0438 \u0446\u0432\u0435\u0442\u043e\u043c\u00a0<code>col<\/code>\u00a0\u0438\u0437 (<code>x<\/code>,\u00a0<code>y<\/code>).<\/p>\n<\/li>\n<li>\n<p><code>ellib(x, y, w, h, col)<\/code><br \/>\u041d\u0430\u0440\u0438\u0441\u0443\u0439\u0442\u0435 \u043a\u043e\u043d\u0442\u0443\u0440 \u044d\u043b\u043b\u0438\u043f\u0441\u0430 \u0448\u0438\u0440\u0438\u043d\u043e\u0439\u00a0<code>w<\/code>, \u0432\u044b\u0441\u043e\u0442\u043e\u0439\u00a0<code>h<\/code>\u00a0\u0438 \u0446\u0432\u0435\u0442\u043e\u043c\u00a0<code>col<\/code>\u00a0\u0438\u0437 (<code>x<\/code>,\u00a0<code>y<\/code>).<\/p>\n<\/li>\n<li>\n<p><code>tri(x1, y1, x2, y2, x3, y3, col)<\/code><br \/>\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0441 \u0432\u0435\u0440\u0448\u0438\u043d\u0430\u043c\u0438 \u0432 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445 (<code>x1<\/code>,\u00a0<code>y1<\/code>), (<code>x2<\/code>,\u00a0<code>y2<\/code>), (<code>x3<\/code>,\u00a0<code>y3<\/code>) \u0438 \u0446\u0432\u0435\u0442\u0430\u00a0<code>col<\/code><\/p>\n<\/li>\n<li>\n<p><code>trib(x1, y1, x2, y2, x3, y3, col)<\/code><br \/>\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0443\u0440 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u0441 \u0432\u0435\u0440\u0448\u0438\u043d\u0430\u043c\u0438 \u0432 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445 (<code>x1<\/code>,\u00a0<code>y1<\/code>), (<code>x2<\/code>,\u00a0<code>y2<\/code>), (<code>x3<\/code>,\u00a0<code>y3<\/code>) \u0438 \u0446\u0432\u0435\u0442\u0430\u00a0<code>col<\/code><\/p>\n<\/li>\n<li>\n<p><code>fill(x, y, col)<\/code><br \/>\u041d\u0430\u0440\u0438\u0441\u0443\u0439\u0442\u0435 \u044d\u043b\u043b\u0438\u043f\u0441 \u0448\u0438\u0440\u0438\u043d\u043e\u0439\u00a0<code>w<\/code>, \u0432\u044b\u0441\u043e\u0442\u043e\u0439\u00a0<code>h<\/code>\u00a0\u0438 \u0446\u0432\u0435\u0442\u043e\u043c\u00a0<code>col<\/code>\u00a0\u0438\u0437 (<code>x<\/code>,\u00a0<code>y<\/code>).<\/p>\n<\/li>\n<li>\n<p><code>blt(x, y, img, u, v, w, h, [colkey])<\/code><br \/>\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 (<code>w<\/code>,\u00a0<code>h<\/code>), \u043f\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c (<code>u<\/code>,\u00a0<code>v<\/code>) \u043d\u0430\u0431\u043e\u0440\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439\u00a0<code>img<\/code>(0-2) \u043f\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c (<code>x<\/code>,\u00a0<code>y<\/code>) \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435. \u0415\u0441\u043b\u0438 \u0434\u043b\u044f\u00a0<code>w<\/code>\u00a0\u0438\/\u0438\u043b\u0438\u00a0<code>h<\/code>\u00a0\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e \u0438\/\u0438\u043b\u0438 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e. \u0415\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u00a0<code>colkey<\/code>, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0446\u0432\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 \u0441\u0447\u0438\u0442\u0430\u0442\u044c\u0441\u044f \u0446\u0432\u0435\u0442\u043e\u043c \u0444\u043e\u043d\u0430 (\u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c)<\/p>\n<\/li>\n<\/ul>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/15c\/153\/6a8\/15c1536a81dabe8b61d5b3a813341acb.png\" width=\"446\" height=\"184\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/15c\/153\/6a8\/15c1536a81dabe8b61d5b3a813341acb.png\"\/><figcaption><\/figcaption><\/figure>\n<ul>\n<li>\n<p><code>bltm(x, y, tm, u, v, w, h, [colkey])<\/code>\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0438\u0437 \u0442\u0430\u0439\u043b\u043c\u0430\u043f\u0430\u00a0<code>tm<\/code>\u00a0(0-7) \u043f\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c (<code>x<\/code>,\u00a0<code>y<\/code>) \u0442\u0430\u0439\u043b \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c (<code>w<\/code>,\u00a0<code>h<\/code>), \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0439\u0441\u044f \u043f\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c (<code>u<\/code>,\u00a0<code>v<\/code>). \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u044b \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u00a0<code>w<\/code>\u00a0\u0438\/\u0438\u043b\u0438\u00a0<code>h<\/code>, \u0442\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0440\u0430\u0436\u0435\u043d\u043e \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438 \u0438\/\u0438\u043b\u0438 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438. \u0415\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u00a0<code>colkey<\/code>, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0446\u0432\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 \u0441\u0447\u0438\u0442\u0430\u0442\u044c\u0441\u044f \u0446\u0432\u0435\u0442\u043e\u043c \u0444\u043e\u043d\u0430 (\u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c). \u0420\u0430\u0437\u043c\u0435\u0440 \u0442\u0430\u0439\u043b\u0430 \u0440\u0430\u0432\u0435\u043d 8&#215;8 \u0442\u043e\u0447\u0435\u043a \u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u043a\u0430\u0440\u0442\u0435 \u0442\u0430\u0439\u043b\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 \u043a\u043e\u0440\u0442\u0435\u0436\u0430\u00a0<code>(tile_x, tile_y)<\/code>.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ac5\/93f\/1f9\/ac593f1f9fffd2c5a42f0fa32b768a05.png\" width=\"446\" height=\"184\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ac5\/93f\/1f9\/ac593f1f9fffd2c5a42f0fa32b768a05.png\"\/><figcaption><\/figcaption><\/figure>\n<ul>\n<li>\n<p><code>text(x, y, s, col)<\/code>\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0442\u0435\u043a\u0441\u0442\u0430\u00a0<code>s<\/code>\u00a0\u0446\u0432\u0435\u0442\u0430\u00a0<code>col<\/code>\u00a0\u043f\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0435 (<code>x<\/code>,\u00a0<code>y<\/code>)<\/p>\n<\/li>\n<\/ul>\n<h4>\u0410\u0443\u0434\u0438\u043e<\/h4>\n<ul>\n<li>\n<p><code>sound(snd)<\/code><br \/>\u041e\u043f\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0432\u0443\u043a\u043e\u043c\u00a0<code>snd<\/code>(0-63).<br \/>\u041f\u0440\u0438\u043c\u0435\u0440:\u00a0<code>pyxel.sound(0).speed = 60<\/code><\/p>\n<\/li>\n<li>\n<p><code>music(msc)<\/code><br \/>\u041e\u043f\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0443\u0437\u044b\u043a\u043e\u0439\u00a0<code>msc<\/code>(0-7) (\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043a\u043b\u0430\u0441\u0441 Music)<\/p>\n<\/li>\n<li>\n<p><code>play_pos(ch)<\/code><br \/>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043a\u0430\u043d\u0430\u043b\u0430\u00a0<code>ch<\/code>\u00a0(0-3) \u0432 \u0432\u0438\u0434\u0435 \u043a\u043e\u0440\u0442\u0435\u0436\u0430\u00a0<code>(\u043d\u043e\u043c\u0435\u0440 \u0437\u0432\u0443\u043a\u0430, \u043d\u043e\u043c\u0435\u0440 \u043d\u043e\u0442\u044b)<\/code>. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u00a0<code>None<\/code>\u00a0\u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p><code>play(ch, snd, [tick], [loop])<\/code><br \/>\u041f\u0440\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0437\u0432\u0443\u043a\u00a0<code>snd<\/code>\u00a0(0-63) \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0435\u00a0<code>ch<\/code>\u00a0(0-3). \u0415\u0441\u043b\u0438\u00a0<code>snd<\/code>\u00a0\u2014 \u0441\u043f\u0438\u0441\u043e\u043a, \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0433\u0440\u0430\u043d \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443. \u041f\u043e\u0437\u0438\u0446\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<code>tick<\/code>\u00a0(1 tick = 1\/120 \u0441\u0435\u043a\u0443\u043d\u0434\u044b). \u0415\u0441\u043b\u0438 \u0432 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u00a0<code>loop<\/code>\u00a0\u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043e\u00a0<code>True<\/code>, \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0446\u0438\u043a\u043b\u0435\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p><code>playm(msc, [tick], [loop])<\/code><br \/>\u041f\u0440\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0442\u0440\u0435\u043a\u00a0<code>msc<\/code>\u00a0(0-7). \u041f\u043e\u0437\u0438\u0446\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<code>tick<\/code>\u00a0(1 tick = 1\/120 \u0441\u0435\u043a\u0443\u043d\u0434\u044b). \u0415\u0441\u043b\u0438 \u0432 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u00a0<code>loop<\/code>\u00a0\u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043e\u00a0<code>True<\/code>, \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0446\u0438\u043a\u043b\u0435\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p><code>stop([ch])<\/code><br \/>\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0435\u00a0<code>ch<\/code>\u00a0(0-3).\u00a0<code>stop()<\/code>\u00a0\u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0430 \u0432\u0441\u0435\u0445 \u043a\u0430\u043d\u0430\u043b\u0430\u0445.<\/p>\n<\/li>\n<\/ul>\n<h4>\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430<\/h4>\n<ul>\n<li>\n<p><code>ceil(x)<\/code><br \/>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e\u0435\u00a0<code>x<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>floor(x)<\/code><br \/>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e\u0435\u00a0<code>x<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>sgn(x)<\/code><br \/>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 1, \u0435\u0441\u043b\u0438\u00a0<code>x<\/code>\u00a0\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e, 0, \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u0440\u0430\u0432\u043d\u043e \u043d\u0443\u043b\u044e, \u0438 -1, \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p><code>sqrt(x)<\/code><br \/>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0439 \u043a\u043e\u0440\u0435\u043d\u044c \u0438\u0437\u00a0<code>x<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>sin(deg)<\/code><br \/>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0438\u043d\u0443\u0441 \u0433\u0440\u0430\u0434\u0443\u0441\u0430\u00a0<code>deg<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>cos(deg)<\/code><br \/>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u0441\u0438\u043d\u0443\u0441 \u0433\u0440\u0430\u0434\u0443\u0441\u0430\u00a0<code>deg<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>atan2(y, x)<\/code><br \/>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0430\u0440\u043a\u0442\u0430\u043d\u0433\u0435\u043d\u0441 \u0443\u0433\u043b\u0430\u00a0<code>y<\/code>\/<code>x<\/code>\u00a0\u0432 \u0433\u0440\u0430\u0434\u0443\u0441\u0430\u0445.<\/p>\n<\/li>\n<li>\n<p><code>rseed(seed: int)<\/code><br \/>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0437\u0430\u0442\u0440\u0430\u0432\u043a\u0443 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b.<\/p>\n<\/li>\n<li>\n<p><code>rndi(a, b)<\/code><br \/>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e\u0435\u00a0<code>a<\/code>\u00a0\u0438 \u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e\u0435\u00a0<code>b<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>rndf(a, b)<\/code><br \/>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u0443\u044e \u0434\u0440\u043e\u0431\u044c, \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u0443\u044e\u00a0<code>a<\/code>\u00a0\u0438 \u043c\u0435\u043d\u044c\u0448\u0443\u044e \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u0443\u044e\u00a0<code>b<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>nseed(seed)<\/code><br \/>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0441\u0435\u043c\u044f \u0448\u0443\u043c\u0430 \u041f\u0435\u0440\u043b\u0438\u043d\u0430.<\/p>\n<\/li>\n<li>\n<p><code>noise(x, [y], [z])<\/code><br \/>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0448\u0443\u043c\u0430 \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442.<\/p>\n<\/li>\n<\/ul>\n<h4>\u041a\u043b\u0430\u0441\u0441 Image<\/h4>\n<ul>\n<li>\n<p><code>width<\/code>,\u00a0<code>height<\/code><br \/>\u0428\u0438\u0440\u0438\u043d\u0430 \u0438 \u0432\u044b\u0441\u043e\u0442\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><code>data<\/code><br \/>\u0414\u0430\u043d\u043d\u044b\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f (\u043c\u0430\u0442\u0440\u0438\u0446\u0430 256&#215;256)<\/p>\n<\/li>\n<li>\n<p><code>get(x, y)<\/code><br \/>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0442\u043e\u0447\u043a\u0435 (<code>x<\/code>,\u00a0<code>y<\/code>)<\/p>\n<\/li>\n<li>\n<p><code>set(x, y, data)<\/code><br \/>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0442\u043e\u0447\u043a\u0435 (<code>x<\/code>,\u00a0<code>y<\/code>) \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0441\u0442\u0440\u043e\u043a.<br \/>\u041f\u0440\u0438\u043c\u0435\u0440:\u00a0<code>pyxel.image(0).set(10, 10, [\"0123\", \"4567\", \"89ab\", \"cdef\"])<\/code><\/p>\n<\/li>\n<li>\n<p><code>load(x, y, filename)<\/code><br \/>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f (png\/gif\/jpeg) \u0432 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b (<code>x<\/code>,\u00a0<code>y<\/code>).<\/p>\n<\/li>\n<\/ul>\n<h4>\u041a\u043b\u0430\u0441\u0441 Tilemap<\/h4>\n<ul>\n<li>\n<p><code>width<\/code>,\u00a0<code>height<\/code><br \/>\u0428\u0438\u0440\u0438\u043d\u0430 \u0438 \u0432\u044b\u0441\u043e\u0442\u0430 \u0442\u0430\u0439\u043b\u043c\u0430\u043f\u0430<\/p>\n<\/li>\n<li>\n<p><code>refimg<\/code><br \/>\u0411\u0430\u043d\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 (0-2), \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u0440\u0442\u0430 \u0442\u0430\u0439\u043b\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><code>set(x, y, data)<\/code><br \/>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0430\u0440\u0442\u044b \u0442\u0430\u0439\u043b\u043e\u0432 \u0432 \u0442\u043e\u0447\u043a\u0435 (<code>x<\/code>,\u00a0<code>y<\/code>) \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0441\u0442\u0440\u043e\u043a.<br \/>\u041f\u0440\u0438\u043c\u0435\u0440:\u00a0<code>pyxel.tilemap(0).set(0, 0, [\"000102\", \"202122\", \"a0a1a2\", \"b0b1b2\"])<\/code><\/p>\n<\/li>\n<li>\n<p><code>pget(x, y)<\/code><br \/>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0430\u0439\u043b \u0432 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445 (<code>x<\/code>,\u00a0<code>y<\/code>). \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043a\u043e\u0440\u0442\u0435\u0436\u00a0<code>(tile_x, tile_y)<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>pset(x, y, tile)<\/code><br \/>\u0417\u0430\u0434\u0430\u0442\u044c \u0442\u0430\u0439\u043b \u0432 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445 (<code>x<\/code>,\u00a0<code>y<\/code>). \u0422\u0430\u0439\u043b \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043a\u043e\u0440\u0442\u0435\u0436\u0430\u00a0<code>(tile_x, tile_y)<\/code>.<\/p>\n<\/li>\n<\/ul>\n<h4>\u041a\u043b\u0430\u0441\u0441 Sound<\/h4>\n<ul>\n<li>\n<p><code>notes<\/code><br \/>\u0421\u043f\u0438\u0441\u043e\u043a \u043d\u043e\u0442 (0-127). \u0427\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0442\u0435\u043c \u0432\u044b\u0448\u0435 \u043d\u043e\u0442\u0430. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 33 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u043e\u0442\u0435 \u00ab\u043b\u044f\u00bb \u0432\u0442\u043e\u0440\u043e\u0439 \u043e\u043a\u0442\u0430\u0432\u044b &#8216;A2&#8217; (440Hz). \u041f\u0430\u0443\u0437\u0430 \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c -1.<\/p>\n<\/li>\n<li>\n<p><code>tones<\/code><br \/>\u0421\u043f\u0438\u0441\u043e\u043a \u0442\u043e\u043d\u043e\u0432 (0:\u0422\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \/ 1:\u041a\u0432\u0430\u0434\u0440\u0430\u0442 \/ 2:\u041f\u0443\u043b\u044c\u0441 \/ 3:\u0428\u0443\u043c)<\/p>\n<\/li>\n<li>\n<p><code>volumes<\/code><br \/>\u0421\u043f\u0438\u0441\u043e\u043a \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438(0-7)<\/p>\n<\/li>\n<li>\n<p><code>effects<\/code><br \/>\u0421\u043f\u0438\u0441\u043e\u043a \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432 (0:\u041d\u0435\u0442 \/ 1:\u0421\u043b\u0430\u0439\u0434 \/ 2:\u0412\u0438\u0431\u0440\u0430\u0442\u043e \/ 3:\u0417\u0430\u0442\u0438\u0445\u0430\u043d\u0438\u0435)<\/p>\n<\/li>\n<li>\n<p><code>speed<\/code><br \/>\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f. 1 \u2014 \u0441\u0430\u043c\u0430\u044f \u0431\u044b\u0441\u0442\u0440\u0430\u044f, \u0447\u0435\u043c \u0432\u044b\u0448\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0442\u0435\u043c \u043d\u0438\u0436\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f. \u041f\u0440\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438, \u0440\u0430\u0432\u043d\u043e\u043c 120 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0439 \u043d\u043e\u0442\u044b \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443.<\/p>\n<\/li>\n<li>\n<p><code>set(notes, tones, volumes, effects, speed)<\/code><br \/>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u043e\u0442\u044b, \u0442\u043e\u043d\u044b, \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0440\u043e\u043a. \u0415\u0441\u043b\u0438 \u0434\u043b\u0438\u043d\u044b \u0441\u0442\u0440\u043e\u043a \u0434\u043b\u044f \u0442\u043e\u043d\u0430, \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432 \u043a\u043e\u0440\u043e\u0447\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043b\u044f \u043d\u043e\u0442, \u043e\u043d\u0438 \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f.<\/p>\n<\/li>\n<li>\n<p><code>set_notes(notes)<\/code><br \/>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u043e\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0440\u043e\u043a\u0438, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u043e \u0444\u043e\u0440\u043c\u0435 &#8216;CDEFGAB&#8217;+&#8217;#-&#8216;+&#8217;0123&#8217; \u0438\u043b\u0438 &#8216;R&#8217;. \u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0438 \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f.<br \/>\u041f\u0440\u0438\u043c\u0435\u0440:\u00a0<code>pyxel.sound(0).set_note(\"G2B-2D3R RF3F3F3\")<\/code><\/p>\n<\/li>\n<li>\n<p><code>set_tones(tones)<\/code><br \/>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u043e\u043d\u044b \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0438\u0437 &#8216;TSPN&#8217;. \u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0438 \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f.<br \/>\u041f\u0440\u0438\u043c\u0435\u0440:\u00a0<code>pyxel.sound(0).set_tone(\"TTSS PPPN\")<\/code><\/p>\n<\/li>\n<li>\n<p><code>set_volumes(volumes)<\/code><br \/>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0440\u043e\u043a\u0438, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0438\u0437 &#8216;01234567&#8217;. \u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0438 \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f.<br \/>\u041f\u0440\u0438\u043c\u0435\u0440:\u00a0<code>pyxel.sound(0).set_volume(\"7777 7531\")<\/code><\/p>\n<\/li>\n<li>\n<p><code>set_effects(effects)<\/code><br \/>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0440\u043e\u043a\u0438, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0438\u0437 &#8216;NSVF&#8217;. \u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0438 \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f.<br \/>\u041f\u0440\u0438\u043c\u0435\u0440:\u00a0<code>pyxel.sound(0).set_effect(\"NFNF NVVS\")<\/code><\/p>\n<\/li>\n<\/ul>\n<h4>\u041a\u043b\u0430\u0441\u0441 Music<\/h4>\n<ul>\n<li>\n<p><code>sequences<\/code><br \/>\u0414\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0439 \u0437\u0432\u0443\u043a\u043e\u0432 (0-63) \u043f\u043e \u043a\u0430\u043d\u0430\u043b\u0430\u043c<\/p>\n<\/li>\n<li>\n<p><code>set(seq0, seq1, seq2, seq3)<\/code><br \/>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0432\u0443\u043a\u043e\u0432 (0-63) \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u0430\u043d\u0430\u043b\u043e\u0432. \u041f\u0443\u0441\u0442\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043a\u0430\u043d\u0430\u043b \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u043d\u0438\u044f.<br \/>\u041f\u0440\u0438\u043c\u0435\u0440:\u00a0<code>pyxel.music(0).set([0, 1], [2, 3], [4], [])<\/code><\/p>\n<\/li>\n<\/ul>\n<h4>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0439 APIs<\/h4>\n<p>Pyxel \u0438\u043c\u0435\u0435\u0442 \u00ab\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 API\u00bb, \u043d\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044b\u0435 \u0432 \u044d\u0442\u043e\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0438 \u00ab\u043c\u043e\u0433\u0443\u0442 \u0441\u043c\u0443\u0442\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u00bb \u0438\u043b\u0438 \u00ab\u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u043d\u0430\u043d\u0438\u0439 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u00bb.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b \u0432 \u0441\u0432\u043e\u0438\u0445 \u0441\u0438\u043b\u0430\u0445, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u00a0<a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/__init__.pyi\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e<\/a>\u00a0\u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438!<\/p>\n<h3>\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043a\u043b\u0430\u0434 \u0432 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430?<\/h3>\n<h4>\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445<\/h4>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u00a0<a href=\"https:\/\/github.com\/kitao\/pyxel\/issues\" rel=\"noopener noreferrer nofollow\">\u0442\u0440\u0435\u043a\u0435\u0440 \u043f\u0440\u043e\u0431\u043b\u0435\u043c<\/a>\u00a0\u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043e\u0442\u0447\u0451\u0442\u043e\u0432 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445 \u0438\u043b\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044e\/\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u043d\u043e\u0432\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439. \u041f\u0435\u0440\u0435\u0434 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u043d\u043e\u0432\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438, \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c \u0447\u0442\u043e \u0441\u0445\u043e\u0436\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442.<\/p>\n<h4>\u0420\u0443\u0447\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h4>\n<p>\u0420\u0443\u0447\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044e \u0432\u00a0<a href=\"https:\/\/github.com\/kitao\/pyxel\/issues\" rel=\"noopener noreferrer nofollow\">\u0442\u0440\u0435\u043a\u0435\u0440\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c<\/a>\u00a0\u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f!<\/p>\n<h4>\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0430 \u0441\u043b\u0438\u044f\u043d\u0438\u0435<\/h4>\n<p>\u041f\u0430\u0442\u0447\u0438\/\u0444\u0438\u043a\u0441\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0432 \u0444\u043e\u0440\u043c\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u0441\u043b\u0438\u044f\u043d\u0438\u0435 (pull-\u0437\u0430\u043f\u0440\u043e\u0441, PR). \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0441\u043b\u0438\u044f\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439, \u043e\u0442\u043a\u0440\u044b\u0442\u0430 \u0432 \u0442\u0440\u0435\u043a\u0435\u0440\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c.<\/p>\n<p>\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0439 pull-\u0437\u0430\u043f\u0440\u043e\u0441 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u0434 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439\u00a0<a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/LICENSE\" rel=\"noopener noreferrer nofollow\">MIT License<\/a>.<\/p>\n<h3>\u041f\u0440\u043e\u0447\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f<\/h3>\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/wiki\/Pyxel-Q&amp;A\" rel=\"noopener noreferrer nofollow\">Q&amp;A<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/wiki\/Pyxel-User-Examples\" rel=\"noopener noreferrer nofollow\">User Examples<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/discord.gg\/FC7kUZJ\" rel=\"noopener noreferrer nofollow\">Discord Server (English)<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/discord.gg\/qHA5BCS\" rel=\"noopener noreferrer nofollow\">Discord Server (Japanese &#8212; \u65e5\u672c\u8a9e\u7248)<\/a><\/p>\n<\/li>\n<\/ul>\n<h3>\u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f<\/h3>\n<p>Pyxel \u0440\u0430\u0437\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439\u00a0<a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/LICENSE\" rel=\"noopener noreferrer nofollow\">MIT License<\/a>. \u041e\u043d \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0432 \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u043c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0438 \u043f\u0440\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u0441\u0435 \u043a\u043e\u043f\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0435\u0433\u043e \u0447\u0430\u0441\u0442\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043a\u043e\u043f\u0438\u044e MIT License terms and the copyright notice.<\/p>\n<h3>\u041d\u0430\u0431\u043e\u0440 \u0421\u043f\u043e\u043d\u0441\u043e\u0440\u043e\u0432<\/h3>\n<p>Pyxel \u0438\u0449\u0435\u0442 \u0441\u043f\u043e\u043d\u0441\u043e\u0440\u043e\u0432 \u043d\u0430 GitHub Sponsors. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043f\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Pyxel \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u044f \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439. \u0421\u043f\u043e\u043d\u0441\u043e\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u043e\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e Pyxel \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441\u043c.\u00a0<a href=\"https:\/\/github.com\/sponsors\/kitao\" rel=\"noopener noreferrer nofollow\">\u0417\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/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\/post\/652225\/\"> https:\/\/habr.com\/ru\/post\/652225\/<\/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_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><strong>Pyxel<\/strong>\u00a0&#8212; \u044d\u0442\u043e \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0434\u0432\u0438\u0436\u043e\u043a \u0434\u043b\u044f Python \u0432 \u0441\u0442\u0438\u043b\u0435 \u0440\u0435\u0442\u0440\u043e.<\/p>\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0435, \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0440\u044b\u043c\u0438 \u0438\u0433\u0440\u043e\u0432\u044b\u043c\u0438 \u043a\u043e\u043d\u0441\u043e\u043b\u044f\u043c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0430\u043b\u0438\u0442\u0440\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432\u0441\u0435\u0433\u043e \u0438\u0437 16 \u0446\u0432\u0435\u0442\u043e\u0432, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e 4 \u0437\u0432\u0443\u043a\u0430 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0438\u0433\u0440\u0430\u043d\u044b \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e), \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0435\u0433\u043a\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u044b \u0432 \u0441\u0442\u0438\u043b\u0435 \u043f\u0438\u043a\u0441\u0435\u043b\u044c-\u0430\u0440\u0442.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"bordered\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"bordered\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 API Pyxel \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u0435\u043d\u044b\u00a0<a href=\"https:\/\/www.lexaloffle.com\/pico-8.php\" rel=\"noopener noreferrer nofollow\">PICO-8<\/a>\u00a0\u0438\u00a0<a href=\"https:\/\/tic80.com\/\" rel=\"noopener noreferrer nofollow\">TIC-80<\/a>.<\/p>\n<p>Pyxel &#8212; \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0438 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u043d\u0438\u044f. \u0417\u0430 \u0434\u0435\u043b\u043e!<\/p>\n<hr\/>\n<p><strong><em>\u0425\u0430\u0440\u0435\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438<\/em><\/strong> <\/p>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0430 Windows, Mac \u0438 Linux<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u0434 \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043d\u0430 Python<\/p>\n<\/li>\n<li>\n<p>16-\u0446\u0432\u0435\u0442\u043d\u0430\u044f \u043f\u0430\u043b\u0438\u0442\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>3 \u043d\u0430\u0431\u043e\u0440\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 256&#215;256 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439<\/p>\n<\/li>\n<li>\n<p>8 \u0442\u0430\u0439\u043b\u043c\u0430\u043f\u043e\u0432 256&#215;256 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439<\/p>\n<\/li>\n<li>\n<p>4 \u043a\u0430\u043d\u0430\u043b\u0430 \u0441 64 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0437\u0432\u0443\u043a\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>8 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u0412\u0432\u043e\u0434 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b, \u043c\u044b\u0448\u043a\u0438 \u0438\u043b\u0438 \u0438\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0438 \u0437\u0432\u0443\u043a\u0430<\/p>\n<\/li>\n<\/ul>\n<h4>\u0426\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u041f\u0430\u043b\u0438\u0442\u0440\u0430<\/h4>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p><strong><em>\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c<\/em><\/strong> <\/p>\n<p>\u041f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 Pyxel, \u0432 \u0432\u0438\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u0438 \u0432 \u0432\u0438\u0434\u0435 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438.<\/p>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 \u0432 \u0432\u0438\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u0430<\/h4>\n<p>\u0412\u0435\u0440\u0441\u0438\u044f Pyxel \u0432 \u0432\u0438\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0434\u043b\u044f Python.<\/p>\n<p>\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u043c \u0441 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u0438 Python \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b\u00a0<code>pip<\/code>\u00a0\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u043c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 Python.<\/p>\n<p><strong>Windows<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438\u00a0<a href=\"https:\/\/www.python.org\/\" rel=\"noopener noreferrer nofollow\">Python3<\/a>\u00a0(\u0432\u0435\u0440\u0441\u0438\u0438 3.7 \u0438\u043b\u0438 \u0432\u044b\u0448\u0435) \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"python\">pip install -U pyxel<\/code><\/pre>\n<p><strong>Mac<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438\u00a0<a href=\"https:\/\/www.python.org\/\" rel=\"noopener noreferrer nofollow\">Python3<\/a>\u00a0(\u0432\u0435\u0440\u0441\u0438\u0438 3.7 \u0438\u043b\u0438 \u0432\u044b\u0448\u0435) \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"python\">pip3 install -U pyxel<\/code><\/pre>\n<p><strong>Linux<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0430\u043a\u0435\u0442\u0430 SDL2 (<code>libsdl2-dev<\/code>\u00a0\u0434\u043b\u044f Ubuntu),\u00a0<a href=\"https:\/\/www.python.org\/\" rel=\"noopener noreferrer nofollow\">Python3<\/a>\u00a0(\u0432\u0435\u0440\u0441\u0438\u0438 3.7 \u0438\u043b\u0438 \u0432\u044b\u0448\u0435) \u0438\u00a0<code>python3-pip<\/code>\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"python\">sudo pip3 install -U pyxel<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0451 \u0432\u044b\u0448\u0435 \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442 Pyxel \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432\u00a0<code>cmake<\/code>\u00a0\u0438\u00a0<code>rust<\/code>\u00a0\u0438 \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434:  <\/p>\n<pre><code>git clone https:\/\/github.com\/kitao\/pyxel.git cd pyxel make clean all sudo pip3 install .<\/code><\/pre>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438<\/h4>\n<p>\u0410\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f Pyxel \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u044f\u0449\u0435\u0435 \u043e\u0442 Python.<\/p>\n<p>\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u043c \u0441\u0440\u0430\u0437\u0443 \u043d\u0430\u0447\u0430\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u043d\u0435 \u043e\u0442\u0432\u043b\u0435\u043a\u0430\u044f\u0441\u044c \u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 Python, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0442\u0435\u043c, \u043a\u0442\u043e \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0445\u043e\u0447\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438\u0433\u0440\u044b.<\/p>\n<p><strong>Windows<\/strong><\/p>\n<p>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a\u0430 \u0434\u043b\u044f Windows (<code>pyxel-[version]-windows-setup.exe<\/code>) \u0441\u043e\u00a0<a href=\"https:\/\/github.com\/kitao\/pyxel\/releases\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/a>.<\/p>\n<p><strong>Mac<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438\u00a0<a href=\"https:\/\/brew.sh\/\" rel=\"noopener noreferrer nofollow\">Homebrew<\/a>\u00a0\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434:<\/p>\n<pre><code>brew tap kitao\/pyxel brew install pyxel<\/code><\/pre>\n<p><strong>Linux<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0430\u043a\u0435\u0442\u0430 SDL2 (<code>libsdl2-dev<\/code>\u00a0\u0434\u043b\u044f Ubuntu) \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438\u00a0<a href=\"https:\/\/brew.sh\/\" rel=\"noopener noreferrer nofollow\">Homebrew<\/a>\u00a0\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434:<\/p>\n<pre><code>brew tap kitao\/pyxel brew install pyxel<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0451 \u0432\u044b\u0448\u0435 \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442 Pyxel \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<h4>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b<\/h4>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Pyxel, \u043f\u0440\u0438\u043c\u0435\u0440\u044b Pyxel \u0431\u0443\u0434\u0443\u0442 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u043f\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<pre><code>pyxel copy_examples<\/code><\/pre>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u044b:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/01_hello_pyxel.py\" rel=\"noopener noreferrer nofollow\">01_hello_pyxel.py<\/a>\u00a0&#8212; \u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/02_jump_game.py\" rel=\"noopener noreferrer nofollow\">02_jump_game.py<\/a>\u00a0&#8212; \u0418\u0433\u0440\u0430 \u043f\u0440\u044b\u0436\u043a\u043e\u0432 \u0441 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 Pyxel<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/03_draw_api.py\" rel=\"noopener noreferrer nofollow\">03_draw_api.py<\/a>\u00a0&#8212; \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f API \u0434\u043b\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/04_sound_api.py\" rel=\"noopener noreferrer nofollow\">04_sound_api.py<\/a>\u00a0&#8212; \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f API \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0437\u0432\u0443\u043a\u043e\u043c<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/05_color_palette.py\" rel=\"noopener noreferrer nofollow\">05_color_palette.py<\/a>\u00a0&#8212; \u0426\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u043f\u0430\u043b\u0438\u0442\u0440\u0430<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/06_click_game.py\" rel=\"noopener noreferrer nofollow\">06_click_game.py<\/a>\u00a0&#8212; \u0418\u0433\u0440\u0430 \u0441 \u043a\u043b\u0438\u043a\u0430\u043c\u0438 \u043c\u044b\u0448\u043a\u043e\u0439<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/07_snake.py\" rel=\"noopener noreferrer nofollow\">07_snake.py<\/a>\u00a0&#8212; \u0417\u043c\u0435\u0439\u043a\u0430 \u0441 BGM<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/08_triangle_api.py\" rel=\"noopener noreferrer nofollow\">08_triangle_api.py<\/a>\u00a0&#8212; \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f API \u043f\u043e \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044e \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u0438\u0433\u043e\u043d\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/09_shooter.py\" rel=\"noopener noreferrer nofollow\">09_shooter.py<\/a>\u00a0&#8212; \u0418\u0433\u0440\u0430 \u0436\u0430\u043d\u0440\u0430 \u00ab\u0443\u0431\u0435\u0439 \u0432\u0441\u0435\u0445\u00bb \u0441 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043e\u043c \u043c\u0435\u0436\u0434\u0443 \u044d\u043a\u0440\u0430\u043d\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/10_platformer.py\" rel=\"noopener noreferrer nofollow\">10_platformer.py<\/a>\u00a0&#8212; \u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440 \u0441 \u0431\u043e\u043a\u043e\u0432\u044b\u043c \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043d\u0433\u043e\u043c \u0438 \u043a\u0430\u0440\u0442\u043e\u0439<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/examples\/11_offscreen.py\" rel=\"noopener noreferrer nofollow\">11_offscreen.py<\/a>\u00a0&#8212; \u0412\u043d\u0435\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0441\u0441\u0430 Image<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/doc\/images\/30SecondsOfDaylight.gif\" rel=\"noopener noreferrer nofollow\">30SecondsOfDaylight.pyxapp<\/a>\u00a0&#8212; 1-\u044f \u043f\u043e\u0431\u0435\u0434\u043d\u0430\u044f \u0438\u0433\u0440\u0430 Pyxel Jam \u043e\u0442\u00a0<a href=\"https:\/\/twitter.com\/helpcomputer0\" rel=\"noopener noreferrer nofollow\">Adam<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/doc\/images\/megaball.gif\" rel=\"noopener noreferrer nofollow\">megaball.pyxapp<\/a>\u00a0&#8212; \u0410\u0440\u043a\u0430\u0434\u043d\u0430\u044f \u0438\u0433\u0440\u0430 \u0441 \u0444\u0438\u0437\u0438\u043a\u043e\u0439 \u043c\u044f\u0447\u0430 \u043e\u0442\u00a0<a href=\"https:\/\/twitter.com\/helpcomputer0\" rel=\"noopener noreferrer nofollow\">Adam<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code>cd pyxel_examples pyxel run 01_hello_pyxel.py pyxel play 30SecondsOfDaylight.pyxapp<\/code><\/pre>\n<h3>\u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Pyxel<\/h3>\n<h4>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f Pyxel \u0432 \u0432\u0430\u0448 \u043a\u043e\u0434 \u043d\u0430 Python, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0440 \u043e\u043a\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b\u00a0<code>init<\/code>, \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>run<\/code>.<\/p>\n<pre><code class=\"python\">import pyxel  pyxel.init(160, 120)  def update():     if pyxel.btnp(pyxel.KEY_Q):         pyxel.quit()  def draw():     pyxel.cls(0)     pyxel.rect(10, 10, 20, 20, 11)  pyxel.run(update, draw)<\/code><\/pre>\n<p>\u0410\u0433\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>run<\/code>\u00a0&#8212; \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>update<\/code>\u00a0\u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u0430\u0434\u0440 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>draw<\/code>\u00a0\u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u043f\u043e \u043c\u0435\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<p>\u0412 \u0441\u0430\u043c\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0441\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043a\u043e\u0434 Pyxel \u0432 \u043e\u0434\u0438\u043d \u043a\u043b\u0430\u0441\u0441 (\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u0440).<\/p>\n<pre><code class=\"python\">import pyxel  class App:     def __init__(self):         pyxel.init(160, 120)         self.x = 0         pyxel.run(self.update, self.draw)      def update(self):         self.x = (self.x + 1) % pyxel.width      def draw(self):         pyxel.cls(0)         pyxel.rect(self.x, 0, 8, 8, 9)  App()<\/code><\/pre>\n<p>\u041c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043a\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>show<\/code>\u00a0\u0438\u00a0<code>flip<\/code>\u00a0\u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0439 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439.<\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f\u00a0<code>show<\/code>\u00a0\u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0438 \u0436\u0434\u0435\u0442 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0438\u00a0<code>ESC<\/code>.<\/p>\n<pre><code>import pyxel  pyxel.init(120, 120) pyxel.cls(1) pyxel.circb(60, 60, 40, 7) pyxel.show()<\/code><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f\u00a0<code>flip<\/code>\u00a0\u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0435\u0434\u0438\u043d\u043e\u0436\u0434\u044b.  <\/p>\n<pre><code>import pyxel  pyxel.init(120, 80)  while True:     pyxel.cls(3)     pyxel.rectb(pyxel.frame_count % 160 - 40, 20, 40, 40, 7)     pyxel.flip()<\/code><\/pre>\n<h4>\u0417\u0430\u043f\u0443\u0441\u043a Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043d\u0430 Python \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u043f\u0443\u0442\u0451\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:  <\/p>\n<pre><code>pyxel run \u0418\u041c\u042f_PYTHON_\u0424\u0410\u0419\u041b\u0410<\/code><\/pre>\n<p>\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 Pyxel \u0432 \u0432\u0438\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0430 Python:  <\/p>\n<pre><code>cd pyxel_examples python3 \u0418\u041c\u042f_PYTHON_\u0424\u0410\u0419\u041b\u0410<\/code><\/pre>\n<p>(\u041f\u043e\u0434 Windows, \u043d\u0430\u0431\u0438\u0440\u0430\u0439\u0442\u0435\u00a0<code>python<\/code>\u00a0\u0432\u043c\u0435\u0441\u0442\u043e\u00a0<code>python3<\/code>)<\/p>\n<h4>\u041e\u0441\u043e\u0431\u044b\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438<\/h4>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u0441\u043e\u0431\u044b\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p><code>Esc<\/code>\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><code>Alt(Option)+1<\/code>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043d\u0438\u043c\u043e\u043a \u044d\u043a\u0440\u0430\u043d\u0430 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b<\/p>\n<\/li>\n<li>\n<p><code>Alt(Option)+2<\/code>\u041d\u0430\u0447\u0430\u0442\u044c \u0437\u0430\u0445\u0432\u0430\u0442 \u044d\u043a\u0440\u0430\u043d\u0430 \u0438\u0433\u0440\u044b<\/p>\n<\/li>\n<li>\n<p><code>Alt(Option)+3<\/code>\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u0437\u0430\u0445\u0432\u0430\u0442\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b (\u0434\u043e 10 \u0441\u0435\u043a\u0443\u043d\u0434)<\/p>\n<\/li>\n<li>\n<p><code>Alt(Option)+0<\/code>\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c\/\u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0433 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 (fps, \u0432\u0440\u0435\u043c\u044f \u043d\u0430 update, \u0432\u0440\u0435\u043c\u044f \u043d\u0430 draw)<\/p>\n<\/li>\n<li>\n<p><code>Alt(Option)+Enter<\/code>\u0412\u043e\u0439\u0442\u0438\/\u0432\u044b\u0439\u0442\u0438 \u0438\u0437 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430<\/p>\n<\/li>\n<\/ul>\n<h4>\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0439 \u0444\u0430\u0439\u043b<\/h4>\n<p>\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 Pyxel Editor \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u0437\u0432\u0443\u043a\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0432 Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438.<\/p>\n<p>\u041e\u043d \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code>pyxel edit [\u0438\u043c\u044f_\u0440\u0435\u0441\u0443\u0440\u0441\u043d\u043e\u0433\u043e_\u0444\u0430\u0439\u043b\u0430]<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0439 \u0444\u0430\u0439\u043b (.pyxres) \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0442\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d. \u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u0444\u0430\u0439\u043b \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c. \u0415\u0441\u043b\u0438 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043e, \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0438\u043c\u044f\u00a0<code>my_resource.pyxres<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 Pyxel Editor, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c drag-and-drop. \u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438, \u0437\u0430\u0436\u0430\u0432 \u043a\u043b\u0430\u0432\u0438\u0448\u0443\u00a0<code>Ctrl(Cmd)<\/code>, \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0432 \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0442\u0438\u043f \u0440\u0435\u0441\u0443\u0440\u0441\u0430 (\u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\/\u043a\u0430\u0440\u0442\u0430 \u0442\u0430\u0439\u043b\u043e\u0432\/\u0437\u0432\u0443\u043a\/\u043c\u0443\u0437\u044b\u043a\u0430). \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043e\u0434\u0438\u043d.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>load<\/code>.<\/p>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 Pyxel Editor \u043e\u0441\u043d\u0430\u0449\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0440\u0435\u0436\u0438\u043c\u0430\u043c\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p><strong>\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439:<\/strong><\/p>\n<p>\u0420\u0435\u0436\u0438\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0431\u043e\u0440\u043e\u0432 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 (png\/gif\/jpeg) \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043e \u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u043f\u0443\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u044f png \u0444\u0430\u0439\u043b\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p><strong>\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0442\u0430\u0439\u043b\u043c\u0430\u043f\u043e\u0432:<\/strong><\/p>\n<p>\u0420\u0435\u0436\u0438\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0430\u0439\u043b\u043c\u0430\u043f\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438\u0437\u043e\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u044b \u0432 \u043f\u043b\u0438\u0442\u043e\u0447\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0437\u0432\u0443\u043a\u0430:<\/strong><\/p>\n<p>\u0420\u0435\u0436\u0438\u043c \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0432\u0443\u043a\u043e\u0432\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043c\u0443\u0437\u044b\u043a\u0438:<\/strong><\/p>\n<p>\u0420\u0435\u0436\u0438\u043c \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u0443\u0437\u044b\u043a\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0437\u0432\u0443\u043a\u0438 \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u043d\u0438\u044f.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<h4>\u0414\u0440\u0443\u0433\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<\/h4>\n<p>\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u043a\u0430\u0440\u0442\u044b \u0442\u0430\u0439\u043b\u043e\u0432 Pyxel \u043c\u043e\u0433\u0443\u0442 \u0442\u0430\u043a\u0436\u0435 \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0442\u0440\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0439\u00a0<code>Image.set<\/code>\u00a0\u0438\u043b\u0438\u00a0<code>Tilemap.set<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 png \u0444\u0430\u0439\u043b\u0430, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0432 \u043f\u0430\u043b\u0438\u0442\u0440\u0435 Pyxel, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>Image.load<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0432\u0443\u043a\u0438 Pyxel \u043c\u043e\u0433\u0443\u0442 \u0442\u0430\u043a\u0436\u0435 \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0437\u0432\u0443\u043a \u0438\u0437 \u0441\u0442\u0440\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0439\u00a0<code>Sound.set<\/code>\u00a0\u0438\u043b\u0438\u00a0<code>Music.set<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0443 \u043f\u043e API (\u043d\u0438\u0436\u0435) \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u044d\u0442\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439.<\/p>\n<h4>\u041a\u0430\u043a \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h4>\n<p>Pyxel \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 (\u0444\u0430\u0439\u043b Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f), \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043d\u0430 \u0432\u0441\u0435\u0445 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (.pyxapp) \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<pre><code>pyxel package \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439_\u043a\u0430\u0442\u0430\u043b\u043e\u0433_\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u043c\u044f_\u0444\u0430\u0439\u043b_\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0449\u0435\u0433\u043e_\u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0432 \u0441\u0435\u0431\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438\u043b\u0438 \u043c\u043e\u0434\u0443\u043b\u0438, \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0438\u0445 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code>pyxel play \u0424\u0410\u0419\u041b_PYXEL_\u041f\u0420\u0418\u041b\u041e\u0416\u0415\u041d\u0418\u042f<\/code><\/pre>\n<h3>\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e API<\/h3>\n<h4>\u0421\u0438\u0441\u0442\u0435\u043c\u0430<\/h4>\n<ul>\n<li>\n<p><code>width<\/code>,\u00a0<code>height<\/code><br \/>\u0428\u0438\u0440\u0438\u043d\u0430 \u0438 \u0432\u044b\u0441\u043e\u0442\u0430 \u043e\u043a\u043d\u0430<\/p>\n<\/li>\n<li>\n<p><code>frame_count<\/code><br \/>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u0430\u0434\u0440\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><code>init(width, height, [title], [fps], [quit_key], [capture_scale], [capture_sec])<\/code><br \/>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c\u0438 \u044d\u043a\u0440\u0430\u043d\u0430 (<code>width<\/code>,\u00a0<code>height<\/code>). \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u044b: \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043e\u043a\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u00a0<code>title<\/code>, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0430\u0434\u0440\u043e\u0432 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u00a0<code>fps<\/code>, \u043a\u043b\u0430\u0432\u0438\u0448\u0430 \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 \u0438\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u2014\u00a0<code>quit_key<\/code>, \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0435 \u044d\u043a\u0440\u0430\u043d\u0430 \u2014\u00a0<code>capture_scale<\/code>\u00a0\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u0440\u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0435 \u044d\u043a\u0440\u0430\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<code>capture_sec<\/code>.<br \/>\u041f\u0440\u0438\u043c\u0435\u0440:\u00a0<code>pyxel.init(160, 120, title=\"My Pyxel App\", fps=60, quit_key=pyxel.KEY_NONE, capture_scale=3, capture_sec=0)<\/code><\/p>\n<\/li>\n<li>\n<p><code>run(update, draw)<\/code><br \/>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044e\u00a0<code>update<\/code>\u00a0\u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u043b\u043e\u0433\u0438\u043a\u0438 \u0438\u00a0<code>draw<\/code>\u00a0\u0434\u043b\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p><code>show()<\/code><br \/>\u041e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0434\u0440 \u0438 \u0436\u0434\u0430\u0442\u044c \u0432\u044b\u0445\u043e\u0434\u0430 \u0438\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043a\u043b\u0430\u0432\u0438\u0448\u0438\u00a0<code>Esc<\/code>\u00a0(\u043d\u0435 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445).<\/p>\n<\/li>\n<li>\n<p><code>flip()<\/code><br \/>\u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0434\u0440 (\u043d\u0435 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445).<\/p>\n<\/li>\n<li>\n<p><code>quit()<\/code><br \/>\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 Pyxel-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0420\u0435\u0441\u0443\u0440\u0441\u044b<\/h4>\n<ul>\n<li>\n<p><code>load(filename, [image], [tilemap], [sound], [music])<\/code>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0439 \u0444\u0430\u0439\u043b (.pyxres). \u0415\u0441\u043b\u0438 False \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0434\u043b\u044f \u0442\u0438\u043f\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 (<code>image\/tilemap\/sound\/music<\/code>), \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0412\u0432\u043e\u0434<\/h4>\n<ul>\n<li>\n<p><code>mouse_x<\/code>,\u00a0<code>mouse_y<\/code><br \/>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0443\u0440\u0441\u043e\u0440\u0430 \u043c\u044b\u0448\u043a\u0438<\/p>\n<\/li>\n<li>\n<p><code>mouse_wheel<\/code><br \/>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043b\u0435\u0441\u0438\u043a\u0430 \u043c\u044b\u0448\u043a\u0438<\/p>\n<\/li>\n<li>\n<p><code>btn(\u043a\u043b\u0430\u0432\u0438\u0448\u0430)<\/code><br \/>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u00a0<code>Ture<\/code>, \u0435\u0441\u043b\u0438\u00a0<code>\u043a\u043b\u0430\u0432\u0438\u0448\u0430<\/code>\u00a0\u043d\u0430\u0436\u0430\u0442\u0430, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u00a0<code>False<\/code>. (<a href=\"https:\/\/github.com\/kitao\/pyxel\/blob\/main\/pyxel\/__init__.pyi\" rel=\"noopener noreferrer nofollow\">\u0421\u043f\u0438\u0441\u043e\u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u043a\u043b\u0430\u0432\u0438\u0448<\/a>)<\/p>\n<\/li>\n<li>\n<p><code>btnp(\u043a\u043b\u0430\u0432\u0438\u0448\u0430, [hold], [period])<\/code><br \/>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u00a0<code>True<\/code>, \u0435\u0441\u043b\u0438\u00a0<code>\u043a\u043b\u0430\u0432\u0438\u0448\u0430<\/code>\u00a0\u043d\u0430\u0436\u0430\u0442\u0430 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u0430\u0434\u0440, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u00a0<code>False<\/code>. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u00a0<code>hold<\/code>\u00a0\u0438\u00a0<code>period<\/code>,\u00a0<code>True<\/code>\u00a0\u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0435\u00a0<code>period<\/code>\u00a0\u043a\u0430\u0434\u0440\u043e\u0432, \u043a\u043e\u0433\u0434\u0430\u00a0<code>key<\/code>\u00a0\u0443\u0436\u0435 \u0437\u0430\u0436\u0430\u0442\u0430 \u0431\u043e\u043b\u0435\u0435\u00a0<code>hold<\/code>\u00a0\u043a\u0430\u0434\u0440\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><code>btnr(\u043a\u043b\u0430\u0432\u0438\u0448\u0430)<\/code><br \/>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u00a0<code>True<\/code>, \u0435\u0441\u043b\u0438\u00a0<code>\u043a\u043b\u0430\u0432\u0438\u0448\u0430<\/code>\u00a0\u0431\u044b\u043b\u0430 \u043e\u0442\u043f\u0443\u0449\u0435\u043d\u0430 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u0430\u0434\u0440, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u00a0<code>False<\/code><\/p>\n<\/li>\n<li>\n<p><code>mouse(\u0432\u0438\u0434\u043d\u0430)<\/code><br \/>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043a\u0443\u0440\u0441\u043e\u0440\u0430: \u0435\u0441\u043b\u0438\u00a0<code>visible<\/code>\u00a0\u0440\u0430\u0432\u043d\u043e\u00a0<code>True<\/code>, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0438\u043d\u0434\u044b\u043c, \u0435\u0441\u043b\u0438\u00a0<code>False<\/code>, \u0442\u043e \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u044b\u043c. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043a\u0443\u0440\u0441\u043e\u0440 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f, \u0435\u0433\u043e<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-329767","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/329767","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=329767"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/329767\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=329767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=329767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=329767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}