{"id":202684,"date":"2013-11-19T11:11:02","date_gmt":"2013-11-19T07:11:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=202684"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=202684","title":{"rendered":"<span class=\"post_title\">Roguelike\/RPG \u043d\u0430 JavaScript (30 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430)<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u043e\u0441\u043b\u0435 \u0441\u0435\u0440\u0438\u0438 \u043f\u043e\u0441\u0442\u043e\u0432 \u043f\u0440\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0445 \u0438\u0433\u0440\u0443\u0448\u0435\u043a \u043d\u0430 JavaScript \u0432 30 \u0441\u0442\u0440\u043e\u0447\u0435\u043a, \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u0432 \u044d\u0442\u043e\u043c \u00ab\u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0438\u00bb. \u041f\u043e\u0441\u0438\u0434\u0435\u0432 \u0432\u0435\u0447\u0435\u0440, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u00ab\u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e\u00bb Roguelike\/RPG (\u044f \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0432 \u0436\u0430\u043d\u0440\u0430\u0445, \u043d\u043e \u0432\u044b\u0448\u043b\u043e \u0447\u0442\u043e-\u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438). \u0417\u0430\u043e\u0434\u043d\u043e \u043f\u043e\u0438\u0437\u0443\u0447\u0430\u043b JavaScript (\u0434\u043e \u044d\u0442\u043e\u0433\u043e \u043d\u0430 \u043d\u0435\u043c \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u0438\u0441\u0430\u043b, \u043a\u0430\u043a-\u0442\u043e \u0432\u0441\u0435 C++ \u0431\u0430\u043b\u0443\u044e\u0441\u044c).<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/4c9\/e91\/3af\/4c9e913afdd7dc1406b611d939b3dfbe.png\" alt=\"image\"\/><\/p>\n<p>  \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:  <\/p>\n<ul>\n<li> \u0421\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u043c\u0438\u0440 <\/li>\n<li> \u041f\u0440\u043e\u043a\u0430\u0447\u043a\u0430 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 <\/li>\n<li> 3 \u0432\u0438\u0434\u0430 \u0432\u0440\u0430\u0433\u043e\u0432 \u0438 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u043e\u0441\u0441 <\/li>\n<li> \u0418\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0441 \u0431\u0443\u0442\u044b\u043b\u043e\u0447\u043a\u0430\u043c\u0438 \u0437\u0435\u043b\u044c\u044f \u0438 \u043c\u0430\u0433\u0430\u0437\u0438\u043d \u0434\u043b\u044f \u0438\u0445 \u043f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f <\/li>\n<\/ul>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h5>\u041e \u0438\u0433\u0440\u0435<\/h5>\n<p>  \u0412\u044b \u0438\u0433\u0440\u0430\u0435\u0442\u0435 \u0437\u0430 \u0431\u0440\u0430\u0432\u043e\u0433\u043e \u0440\u044b\u0446\u0430\u0440\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043f\u0430\u0441\u0442\u0438 \u043f\u0440\u0438\u043d\u0446\u0435\u0441\u0441\u0443 \u043e\u0442 \u0434\u0440\u0430\u043a\u043e\u043d\u0430. \u041f\u043e \u0434\u043e\u0440\u043e\u0433\u0435 \u043a \u043f\u0435\u0449\u0435\u0440\u0435 \u0434\u0440\u0430\u043a\u043e\u043d\u0430 \u0441 \u0440\u044b\u0446\u0430\u0440\u0435\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432\u0440\u043e\u0434\u0435 \u0441\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043c\u043e\u043d\u0441\u0442\u0440\u0430\u043c\u0438 \u0438 \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u0438\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u043e\u0441\u0435\u043b\u0435\u043d\u0438\u0439. \u041f\u043e\u0441\u043b\u0435 \u0441\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0441 \u043c\u043e\u043d\u0441\u0442\u0440\u0430\u043c\u0438 \u0433\u0435\u0440\u043e\u0439 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0437\u043e\u043b\u043e\u0442\u043e \u0438 \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u044b\u0442. \u0417\u043e\u043b\u043e\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u043d\u0430 \u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0438 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u0435 \u0438\u0441\u0446\u0435\u043b\u044f\u044e\u0449\u0438\u0445 \u0437\u0435\u043b\u0438\u0439 \u0432 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0447\u0438\u043a\u0430\u0445, \u0447\u0442\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u043f\u0443\u0442\u0438. \u0416\u0438\u0437\u043d\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u044b\u0442 \u0436\u0435 \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0433\u0435\u0440\u043e\u044f, \u043e\u0442 \u0447\u0435\u0433\u043e \u0440\u0430\u0441\u0442\u0435\u0442 \u0435\u0433\u043e \u0430\u0442\u0430\u043a\u0430 \u0438 \u0437\u0430\u0449\u0438\u0442\u0430. \u0426\u0435\u043b\u044c \u0438\u0433\u0440\u044b \u2014 \u0432\u0441\u0435\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043a \u0441\u0445\u0432\u0430\u0442\u043a\u0435 \u0441 \u0434\u0440\u0430\u043a\u043e\u043d\u043e\u043c, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u044c \u0435\u0433\u043e \u0438 \u043e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u0442\u044c \u043f\u0440\u0438\u043d\u0446\u0435\u0441\u0441\u0443.<\/p>\n<p>  \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 <a href=\"http:\/\/jsfiddle.net\/kPZaP\/3\/embedded\/result\/\">fiddle<\/a>.<\/p>\n<h5>\u041a\u043e\u0434<\/h5>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0441\u043d\u043e\u0432\u044b \u044f \u0432\u0437\u044f\u043b \u043a\u043e\u0434 \u0438\u0437 <a href=\"http:\/\/habrahabr.ru\/post\/202556\/\">\u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430<\/a>, \u0430 \u0437\u0430\u0442\u0435\u043c \u00ab\u0434\u043e\u043f\u0438\u043b\u0438\u043b\u00bb \u0435\u0433\u043e \u0434\u043e \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043c\u043d\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f.<\/p>\n<p>  \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 (\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 <a href=\"http:\/\/jsfiddle.net\/kPZaP\/2\/\">fiddle<\/a>):  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">(function(elid, wi, he, exp, pot, gld, hp, lvl, cur_e, e_sz){     var hit = function(){ evs[cur_e][8]-=lvl*4+6; if(evs[cur_e][8]&lt;=0) {         alert(&quot;Monster defeated and you got &quot;+evs[cur_e][10]+&quot;EXP and $&quot;+evs[cur_e][11]);         exp+=evs[cur_e][10];gld+=evs[cur_e][11]; while(exp&gt;=lvl*10){exp-=lvl*10;lvl++;alert(&quot;Level Up!&quot;)}         cur_e++; if(cur_e==e_sz) alert(&quot;Victory!&quot;) } else {         hp-=Math.max(0,evs[cur_e][9]-lvl*2-1); if(hp&lt;=0) alert(&quot;Game Over!&quot;) } }     var use = function(){ if (pot&gt;0){pot--;hp+=10;if(hp&gt;100)hp=100} }     var nxt = function(){ cur_e++ }, battle = [&quot;Attack&quot;,&quot;Use Potion +10HP&quot;,&quot;Skip Battle&quot;,hit,use,nxt],     canvas=document.querySelector(elid), ctx=canvas.getContext(&quot;2d&quot;), evs=[], e_tp=[     [&quot;Shop&quot;, &quot;Wizard provides his services&quot;, &quot;Buy Potion $20&quot;, &quot;Full Heal $100&quot;, &quot;Leave&quot;,      function(){ if(gld&gt;=20){gld-=20;pot++} }, function(){ if(gld&gt;=100){gld-=100;hp=100} }, nxt ],     [&quot;Skeleton&quot;, &quot;A terrible skeleton on your way&quot;].concat(battle,70,15,25,100),     [&quot;Goblin&quot;, &quot;Green goblin wants to get your money&quot;].concat(battle,50,10,15,70),     [&quot;Slime&quot;, &quot;What the strange jelly monster?&quot;].concat(battle,20,6,7,30),     [&quot;Dragon&quot;, &quot;Omg! It is evil Dragon!&quot;,&quot;Attack&quot;,&quot;Use Potion +10HP&quot;,&quot;-&quot;,hit,use,,300,25,100,1000 ] ],         q=e_tp.length-1; canvas.width=wi; canvas.height=he; for (var i=0;i&lt;e_sz-1;i++)      evs.push( e_tp[Math.floor(Math.random()*q)].slice(0) ); evs.push( e_tp[q].slice(0) );     var game = setInterval(function(){ ctx.clearRect(0,0,wi,he);         ctx.fillText(&quot;NanoRPG in 30 lines of JavaScript by ripatti&quot;,10,15);         ctx.fillText(&quot;LVL &quot;+lvl+&quot;  HP &quot;+hp+&quot;\/100  EXP &quot;+exp+&quot;\/&quot;+lvl*10+&quot;  ATK &quot;+(lvl*4+6)+          &quot;  DEF &quot;+(lvl*2+1)+&quot;  Gold $&quot;+gld+&quot;  Potions &quot;+pot,10,30);         for (var i=0;i&lt;e_sz;i++) ctx.fillText((i==e_sz-1||i&lt;=cur_e)?evs[i][0]:&quot;??&quot;,i*50+15,70);         ctx.fillText(&quot;@&quot;,cur_e*50+25,60); ctx.fillText(evs[cur_e][1],20,100);         if (evs[cur_e].length&gt;8) ctx.fillText(&quot;Enemy HP &quot;+evs[cur_e][8],250,100);         for (var i=0;i&lt;3;i++) { ctx.strokeRect(i*120+5,120,110,20);             ctx.fillText(evs[cur_e][i+2],i*120+10,133); } }, 100);     document.addEventListener('click', function(e){ for (var i=0;i&lt;3;i++)         if (i*120+5&lt;=e.pageX && e.pageX&lt;i*120+115 && 120&lt;=e.pageY && e.pageY&lt;140)             if (hp&gt;0) evs[cur_e][i+5]() }, false); })(&quot;#canvas&quot;,365,150,0,3,100,100,1,0,7); <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u043e\u043b\u0435\u0435 \u0447\u0438\u0442\u0430\u0435\u043c\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0432 50 \u0441\u0442\u0440\u043e\u0447\u0435\u043a (\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 <a href=\"http:\/\/jsfiddle.net\/kPZaP\/3\/\">fiddle<\/a>):  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">(function(elid, wi, he, exp, pot, gld, hp, lvl, cur_e, e_sz){     var hit = function(){         evs[cur_e][8]-=lvl*4+6;         if (evs[cur_e][8]&lt;=0) {             alert(&quot;Monster defeated and you got &quot;+evs[cur_e][10]+&quot;EXP and $&quot;+evs[cur_e][11]);             exp+=evs[cur_e][10]; gld+=evs[cur_e][11];             while (exp&gt;=lvl*10) { exp-=lvl*10; lvl++; alert(&quot;Level Up!&quot;) }             cur_e++; if (cur_e==e_sz) alert(&quot;Victory!&quot;)         } else {             hp-=Math.max(0,evs[cur_e][9]-lvl*2-1);             if(hp&lt;=0) alert(&quot;Game Over!&quot;)         }     }     var use = function(){ if (pot&gt;0){pot--;hp+=10;if(hp&gt;100)hp=100} }     var nxt = function(){ cur_e++ }     var battle = [&quot;Attack&quot;, &quot;Use Potion +10HP&quot;, &quot;Skip Battle&quot;, hit, use, nxt];     var canvas=document.querySelector(elid), ctx=canvas.getContext(&quot;2d&quot;);     canvas.width=wi; canvas.height=he;     var evs=[], e_tp=[     [&quot;Shop&quot;, &quot;Wizard provides his services&quot;, &quot;Buy Potion $20&quot;, &quot;Full Heal $100&quot;, &quot;Leave&quot;,         function(){ if(gld&gt;=20){gld-=20;pot++} },         function(){ if(gld&gt;=100){gld-=100;hp=100} }, nxt ],     [&quot;Skeleton&quot;, &quot;A terrible skeleton on your way&quot;].concat(battle,70,15,25,100),     [&quot;Goblin&quot;, &quot;Green goblin wants to get your money&quot;].concat(battle,50,10,15,70),     [&quot;Slime&quot;, &quot;What the strange jelly monster?&quot;].concat(battle,20,6,7,30),     [&quot;Dragon&quot;, &quot;Omg! It is evil Dragon!&quot;,&quot;Attack&quot;,&quot;Use Potion +10HP&quot;,&quot;-&quot;,hit,use,,300,25,100,1000 ] ];     var q=e_tp.length-1;     for (var i=0;i&lt;e_sz-1;i++) evs.push( e_tp[Math.floor(Math.random()*q)].slice(0) );     evs.push( e_tp[q].slice(0) );     var game = setInterval(function(){         ctx.clearRect(0,0,wi,he);         ctx.fillText(&quot;NanoRPG in 30 lines of JavaScript by ripatti&quot;,10,15);         ctx.fillText(&quot;LVL &quot;+lvl+&quot;  HP &quot;+hp+&quot;\/100  EXP &quot;+exp+&quot;\/&quot;+lvl*10+&quot;  ATK &quot;+(lvl*4+6)+          &quot;  DEF &quot;+(lvl*2+1)+&quot;  Gold $&quot;+gld+&quot;  Potions &quot;+pot,10,30);         for (var i=0;i&lt;e_sz;i++) ctx.fillText((i==e_sz-1||i&lt;=cur_e)?evs[i][0]:&quot;??&quot;,i*50+15,70);         ctx.fillText(&quot;@&quot;,cur_e*50+25,60);         ctx.fillText(evs[cur_e][1],20,100);         if (evs[cur_e].length&gt;8) ctx.fillText(&quot;Enemy HP &quot;+evs[cur_e][8],250,100);         for (var i=0;i&lt;3;i++) {             ctx.strokeRect(i*120+5,120,110,20);             ctx.fillText(evs[cur_e][i+2],i*120+10,133);         }     }, 100);     document.addEventListener('click', function(e){         if (hp&gt;0)             for (var i=0;i&lt;3;i++)                 if (i*120+5&lt;=e.pageX && e.pageX&lt;i*120+115 && 120&lt;=e.pageY && e.pageY&lt;140)                     evs[cur_e][i+5]()     }, false); })(&quot;#canvas&quot;,365,150,0,3,100,100,1,0,7); <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041a\u043e\u0434 \u043d\u0430 html \u0438 css \u044f \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u043b, \u043d\u043e \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e: html \u2014 1 \u0441\u0442\u0440\u043e\u043a\u0430 \u043a\u043e\u0434\u0430, css \u2014 4.<\/p>\n<h5>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h5>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e <a href=\"http:\/\/habrahabr.ru\/users\/agegorin\/\" class=\"user_link\">agegorin<\/a> \u0437\u0430 <a href=\"http:\/\/habrahabr.ru\/post\/202556\/\">\u0433\u043e\u043d\u043e\u0447\u043a\u0443<\/a>, <a href=\"http:\/\/habrahabr.ru\/users\/djcomandos\/\" class=\"user_link\">DjComandos<\/a> \u0437\u0430 <a href=\"http:\/\/habrahabr.ru\/post\/202476\/\">\u0437\u043c\u0435\u0439\u043a\u0443<\/a> \u0438 <a href=\"http:\/\/habrahabr.ru\/users\/linoleum\/\" class=\"user_link\">linoleum<\/a> \u0437\u0430 <a href=\"http:\/\/habrahabr.ru\/post\/202530\/\">\u0430\u0440\u043a\u0430\u043d\u043e\u0438\u0434<\/a>. \u0411\u044b\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0432\u043e\u0435. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/202684\/\"> http:\/\/habrahabr.ru\/post\/202684\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u043e\u0441\u043b\u0435 \u0441\u0435\u0440\u0438\u0438 \u043f\u043e\u0441\u0442\u043e\u0432 \u043f\u0440\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0445 \u0438\u0433\u0440\u0443\u0448\u0435\u043a \u043d\u0430 JavaScript \u0432 30 \u0441\u0442\u0440\u043e\u0447\u0435\u043a, \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u0432 \u044d\u0442\u043e\u043c \u00ab\u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0438\u00bb. \u041f\u043e\u0441\u0438\u0434\u0435\u0432 \u0432\u0435\u0447\u0435\u0440, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u00ab\u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e\u00bb Roguelike\/RPG (\u044f \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0432 \u0436\u0430\u043d\u0440\u0430\u0445, \u043d\u043e \u0432\u044b\u0448\u043b\u043e \u0447\u0442\u043e-\u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438). \u0417\u0430\u043e\u0434\u043d\u043e \u043f\u043e\u0438\u0437\u0443\u0447\u0430\u043b JavaScript (\u0434\u043e \u044d\u0442\u043e\u0433\u043e \u043d\u0430 \u043d\u0435\u043c \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u0438\u0441\u0430\u043b, \u043a\u0430\u043a-\u0442\u043e \u0432\u0441\u0435 C++ \u0431\u0430\u043b\u0443\u044e\u0441\u044c).<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/4c9\/e91\/3af\/4c9e913afdd7dc1406b611d939b3dfbe.png\" alt=\"image\"\/><\/p>\n<p>  \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:  <\/p>\n<ul>\n<li> \u0421\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u043c\u0438\u0440 <\/li>\n<li> \u041f\u0440\u043e\u043a\u0430\u0447\u043a\u0430 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 <\/li>\n<li> 3 \u0432\u0438\u0434\u0430 \u0432\u0440\u0430\u0433\u043e\u0432 \u0438 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u043e\u0441\u0441 <\/li>\n<li> \u0418\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0441 \u0431\u0443\u0442\u044b\u043b\u043e\u0447\u043a\u0430\u043c\u0438 \u0437\u0435\u043b\u044c\u044f \u0438 \u043c\u0430\u0433\u0430\u0437\u0438\u043d \u0434\u043b\u044f \u0438\u0445 \u043f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f <\/li>\n<\/ul>\n<p>  <\/p>\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-202684","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/202684","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=202684"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/202684\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=202684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=202684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=202684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}