{"id":460803,"date":"2025-05-23T15:01:13","date_gmt":"2025-05-23T15:01:13","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=460803"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=460803","title":{"rendered":"<span>\u041a\u0430\u043a \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438\u0433\u0440\u0443 \u043d\u0430 Rust \u0430\u043d\u0430\u043b\u043e\u0433 Super Mario<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/832\/c20\/bdf\/832c20bdfe3fd857b74b49d12b21cb5d.png\" alt=\"\u0423\u043f\u044f\u0447\u043a\u0430 \u0434\u0430\u0432\u0438\u0442\" title=\"\u0423\u043f\u044f\u0447\u043a\u0430 \u0434\u0430\u0432\u0438\u0442\" width=\"1024\" height=\"1024\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/832\/c20\/bdf\/832c20bdfe3fd857b74b49d12b21cb5d.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/832\/c20\/bdf\/832c20bdfe3fd857b74b49d12b21cb5d.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0423\u043f\u044f\u0447\u043a\u0430 \u0434\u0430\u0432\u0438\u0442<\/figcaption><\/div>\n<\/figure>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0414\u0430\u0432\u043d\u043e \u0433\u043e\u0440\u0435\u043b \u0438\u0434\u0435\u0435\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0438\u0433\u0440\u044b Super Mario. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 2D-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440\u0430 \u0441 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0435\u0439, \u0432\u0437\u0440\u044b\u0432\u0430\u043c\u0438, \u043f\u043e\u043b\u043e\u0441\u043e\u0439 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0438 <strong>\u0434\u0432\u0438\u0436\u0443\u0449\u0438\u043c\u0438\u0441\u044f<\/strong> \u0432\u0440\u0430\u0433\u0430\u043c\u0438 \u2014 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 Rust \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 macroquad.<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043c\u044b \u043f\u043e\u043a\u0430\u0436\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438\u0433\u0440\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0433\u0435\u0440\u043e\u0439 \u2014 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0423\u043f\u044f\u0447\u043a\u0430 (\u043e\u043d \u0436\u0435 Upyachka) \u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0435\u0432\u0430\u0435\u0442 \u043f\u0440\u0435\u043f\u044f\u0442\u0441\u0442\u0432\u0438\u044f, \u0443\u043a\u043b\u043e\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0442 \u0432\u0440\u0430\u0433\u043e\u0432-\u0430\u0439\u0442\u0438\u0448\u043d\u0438\u043a\u043e\u0432-hbr \u0438 \u0441\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0441 \u0431\u043e\u043c\u0431\u0430\u043c\u0438 \u043d\u0430 \u043f\u0443\u0442\u0438.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/389\/f25\/1ee\/389f251eeef17846fa5df2fc5b961de7.png\" alt=\"GamePlay\" title=\"GamePlay\" width=\"1266\" height=\"850\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/389\/f25\/1ee\/389f251eeef17846fa5df2fc5b961de7.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/389\/f25\/1ee\/389f251eeef17846fa5df2fc5b961de7.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>GamePlay<\/figcaption><\/div>\n<\/figure>\n<h3>1. \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0438\u0433\u0440\u044b<\/h3>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/56a\/f2c\/1ed\/56af2c1edf035e5e7ccae20d81fd85a1.png\" alt=\"\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430\" title=\"\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430\" width=\"1536\" height=\"1024\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/56a\/f2c\/1ed\/56af2c1edf035e5e7ccae20d81fd85a1.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/56a\/f2c\/1ed\/56af2c1edf035e5e7ccae20d81fd85a1.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/figcaption><\/div>\n<\/figure>\n<ul>\n<li>\n<p><strong>TileMap<\/strong> \u2014 \u043a\u0430\u0440\u0442\u0430 \u0438\u0437 \u0442\u0430\u0439\u043b\u043e\u0432 (\u0437\u0435\u043c\u043b\u044f, \u043b\u043e\u0432\u0443\u0448\u043a\u0438, \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b)<\/p>\n<\/li>\n<li>\n<p><strong>Player<\/strong> \u2014 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436 \u0438\u0433\u0440\u043e\u043a\u0430 \u0441 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043c\u0438 (\u043f\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435, \u043f\u0440\u044b\u0436\u043a\u0438, \u0443\u0440\u043e\u043d, \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u0435)<\/p>\n<\/li>\n<li>\n<p><strong>Enemy<\/strong> \u2014 \u0432\u0440\u0430\u0433\u0438 \u0441 \u043b\u043e\u0433\u0438\u043a\u043e\u0439 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p><strong>Explosion<\/strong> \u2014 \u044d\u0444\u0444\u0435\u043a\u0442 \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u0437\u0440\u044b\u0432\u0430<\/p>\n<\/li>\n<li>\n<p><strong>UI<\/strong> \u2014 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430: \u043f\u043e\u043b\u043e\u0441\u044b \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f, \u0442\u0435\u043a\u0441\u0442, \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><strong>Audio<\/strong> \u2014 \u0437\u0432\u0443\u043a\u0438 \u043f\u0440\u044b\u0436\u043a\u043e\u0432, \u0432\u0437\u0440\u044b\u0432\u043e\u0432 \u0438 \u043c\u0443\u0437\u044b\u043a\u0438<\/p>\n<\/li>\n<\/ul>\n<h3>2. \u0413\u0440\u0430\u0444\u0438\u043a\u0430 \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<\/h3>\n<p>\u0418\u0433\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442:<\/p>\n<ul>\n<li>\n<p>\u0421\u043f\u0440\u0430\u0439\u0442\u044b PNG 64&#215;64 (\u0433\u0435\u0440\u043e\u0439, \u0432\u0440\u0430\u0433, \u0437\u0435\u043c\u043b\u044f, \u0431\u043e\u043c\u0431\u0430, \u0432\u0437\u0440\u044b\u0432)<\/p>\n<\/li>\n<li>\n<p>\u0410\u0443\u0434\u0438\u043e \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 WAV<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u0440\u0442\u0430 \u0443\u0440\u043e\u0432\u043d\u044f \u2014 \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 <code>Vec&lt;Vec&lt;u8&gt;&gt;<\/code>, \u0433\u0434\u0435 0 \u2014 \u0432\u043e\u0437\u0434\u0443\u0445, 1 \u2014 \u0437\u0435\u043c\u043b\u044f, 2 \u2014 \u0431\u043e\u043c\u0431\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b:<\/p>\n<pre><code class=\"rust\">let tiles = vec![     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0],     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0],     vec![0, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0],     vec![1; 20], ]; <\/code><\/pre>\n<h3>3. \u0418\u0433\u0440\u043e\u043a: \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435, \u043f\u0440\u044b\u0436\u043e\u043a, \u0443\u0440\u043e\u043d, \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f<\/h3>\n<p>\u0412 <code>Player<\/code> \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0438 \u043f\u0440\u044b\u0436\u043e\u043a \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043a\u043b\u0430\u0432\u0438\u0448<\/p>\n<\/li>\n<li>\n<p>\u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u0433\u0440\u0430\u0432\u0438\u0442\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0439 \u0441 \u0437\u0435\u043c\u043b\u0451\u0439<\/p>\n<\/li>\n<li>\n<p>\u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u043f\u0440\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0438 (\u0441\u043c\u0435\u043d\u0430 \u043a\u0430\u0434\u0440\u043e\u0432)<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0443\u0440\u043e\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 <code>hurt_timer<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u0433\u0440\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u043c\u0438\u0433\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0443\u0440\u043e\u043d\u0430:<\/p>\n<pre><code class=\"rust\">let alpha = if self.hurt_timer &gt; 0.0 {     ((get_time() * 15.0).sin() * 0.5 + 0.5) as f32 } else { 1.0 };<\/code><\/pre>\n<p>\u041c\u0435\u0442\u043e\u0434 <code>draw()<\/code> \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0441\u043f\u0440\u0430\u0439\u0442 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043a\u0430\u0434\u0440\u0430 \u0441 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u043c \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u0438.<\/p>\n<h3>4. \u0418\u0433\u0440\u043e\u0432\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430: \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0438 \u0443\u0440\u043e\u043d<\/h3>\n<pre><code class=\"rust\">if enemy.collides_with(player.pos) &amp;&amp; player.hurt_timer &lt;= 0.0 {     player.damage(); }  if tilemap.is_bomb_tile(tile_x, tile_y) &amp;&amp; player.hurt_timer &lt;= 0.0 {     explosions.push(Explosion::new(player.pos));     play_sound_once(&amp;explosion_sound);     player.damage();     screen_shake = 10.0; } <\/code><\/pre>\n<p>\u0418\u0433\u0440\u043e\u043a \u043c\u0438\u0433\u0430\u0435\u0442 \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0443\u0440\u043e\u043d\u0430, \u0438\u043c\u0435\u0435\u0442 <code>hurt_timer<\/code>, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0441\u043f\u0430\u043c \u0443\u0440\u043e\u043d\u0430.<\/p>\n<h3>5. \u0412\u0440\u0430\u0433\u0438: \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435<\/h3>\n<p>\u0412\u0440\u0430\u0433\u0438 \u0434\u0432\u0438\u0433\u0430\u044e\u0442\u0441\u044f \u0432\u043b\u0435\u0432\u043e-\u0432\u043f\u0440\u0430\u0432\u043e \u043f\u043e \u044d\u043a\u0440\u0430\u043d\u0443. \u0415\u0441\u043b\u0438 \u043e\u043d\u0438 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u0438\u0433\u0440\u043e\u043a\u043e\u043c, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 <code>collides_with<\/code>, \u0438 \u0438\u0433\u0440\u043e\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0443\u0440\u043e\u043d. \u0415\u0441\u043b\u0438 \u0438\u0433\u0440\u043e\u043a \u043f\u0440\u0438\u0437\u0435\u043c\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0432\u0435\u0440\u0445\u0443 \u2014 \u0432\u0440\u0430\u0433 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0437\u0440\u044b\u0432 \u0438 \u0437\u0432\u0443\u043a:<\/p>\n<pre><code class=\"rust\">if player.get_velocity().y &gt; 0.0 &amp;&amp; player_bottom &lt;= enemy_top + 20.0 {     explosions.push(Explosion::new(enemy.pos));     play_sound_once(&amp;explosion_sound); }<\/code><\/pre>\n<h3>6. \u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u044b<\/h3>\n<p>\u0412\u0437\u0440\u044b\u0432 \u2014 \u044d\u0442\u043e 8 \u043a\u0430\u0434\u0440\u043e\u0432 \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438. \u041a\u0430\u0436\u0434\u044b\u0439 Explosion \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 <code>frame<\/code> \u0438 <code>timer<\/code>, \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f:<\/p>\n<pre><code class=\"rust\">if self.timer &gt; 0.05 {     self.frame += 1;     self.timer = 0.0;     if self.frame &gt;= 8 {         self.finished = true;     } }<\/code><\/pre>\n<p>\u0418\u0433\u0440\u043e\u043a \u0442\u0430\u043a\u0436\u0435 \u043c\u0438\u0433\u0430\u0435\u0442:<\/p>\n<pre><code class=\"rust\">if self.hurt_timer &gt; 0.0 &amp;&amp; (get_time() * 10.0).floor() as i32 % 2 == 0 {     return; \/\/ \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u0430\u0434\u0440  <\/code><\/pre>\n<h3>7. \u0417\u0432\u0443\u043a \u0438 \u0434\u0440\u043e\u0436\u0430\u043d\u0438\u0435 \u043a\u0430\u043c\u0435\u0440\u044b<\/h3>\n<pre><code class=\"rust\">if screen_shake &gt; 0.0 {     offset = vec2(rand::gen_range(-2.0, 2.0), rand::gen_range(-2.0, 2.0));     screen_shake -= get_frame_time() * 50.0; }<\/code><\/pre>\n<h3>8. UI: \u043f\u043e\u043b\u043e\u0441\u0430 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f<\/h3>\n<pre><code class=\"rust\">draw_rectangle(10.0, 10.0, 200.0, 20.0, DARKGRAY); draw_rectangle(10.0, 10.0, 200.0 * (player.health as f32 \/ 3.0), 20.0, RED);<\/code><\/pre>\n<p>\u041f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434: <a href=\"https:\/\/github.com\/digkill\/RustyMario\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/digkill\/RustyMario<\/a><\/p>\n<p>\u0412\u0438\u0434\u0435\u043e \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u044f: <a href=\"https:\/\/t.me\/notecto\/3\" rel=\"noopener noreferrer nofollow\">https:\/\/t.me\/notecto\/3<\/a><\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0448\u0430\u0433\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0443\u0440\u043e\u0432\u043d\u0435\u0439, \u043c\u0435\u043d\u044e, \u0438\u043b\u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 Android, IOS \u0447\u0435\u0440\u0435\u0437 cargo mobile.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/912296\/\"> https:\/\/habr.com\/ru\/articles\/912296\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\">\n<div><figcaption>\u0423\u043f\u044f\u0447\u043a\u0430 \u0434\u0430\u0432\u0438\u0442<\/figcaption><\/div>\n<\/figure>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0414\u0430\u0432\u043d\u043e \u0433\u043e\u0440\u0435\u043b \u0438\u0434\u0435\u0435\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0438\u0433\u0440\u044b Super Mario. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 2D-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440\u0430 \u0441 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0435\u0439, \u0432\u0437\u0440\u044b\u0432\u0430\u043c\u0438, \u043f\u043e\u043b\u043e\u0441\u043e\u0439 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0438 <strong>\u0434\u0432\u0438\u0436\u0443\u0449\u0438\u043c\u0438\u0441\u044f<\/strong> \u0432\u0440\u0430\u0433\u0430\u043c\u0438 \u2014 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 Rust \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 macroquad.<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043c\u044b \u043f\u043e\u043a\u0430\u0436\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438\u0433\u0440\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0433\u0435\u0440\u043e\u0439 \u2014 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0423\u043f\u044f\u0447\u043a\u0430 (\u043e\u043d \u0436\u0435 Upyachka) \u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0435\u0432\u0430\u0435\u0442 \u043f\u0440\u0435\u043f\u044f\u0442\u0441\u0442\u0432\u0438\u044f, \u0443\u043a\u043b\u043e\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0442 \u0432\u0440\u0430\u0433\u043e\u0432-\u0430\u0439\u0442\u0438\u0448\u043d\u0438\u043a\u043e\u0432-hbr \u0438 \u0441\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0441 \u0431\u043e\u043c\u0431\u0430\u043c\u0438 \u043d\u0430 \u043f\u0443\u0442\u0438.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>GamePlay<\/figcaption><\/div>\n<\/figure>\n<h3>1. \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0438\u0433\u0440\u044b<\/h3>\n<figure class=\"full-width\">\n<div><figcaption>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/figcaption><\/div>\n<\/figure>\n<ul>\n<li>\n<p><strong>TileMap<\/strong> \u2014 \u043a\u0430\u0440\u0442\u0430 \u0438\u0437 \u0442\u0430\u0439\u043b\u043e\u0432 (\u0437\u0435\u043c\u043b\u044f, \u043b\u043e\u0432\u0443\u0448\u043a\u0438, \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b)<\/p>\n<\/li>\n<li>\n<p><strong>Player<\/strong> \u2014 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436 \u0438\u0433\u0440\u043e\u043a\u0430 \u0441 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043c\u0438 (\u043f\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435, \u043f\u0440\u044b\u0436\u043a\u0438, \u0443\u0440\u043e\u043d, \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u0435)<\/p>\n<\/li>\n<li>\n<p><strong>Enemy<\/strong> \u2014 \u0432\u0440\u0430\u0433\u0438 \u0441 \u043b\u043e\u0433\u0438\u043a\u043e\u0439 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p><strong>Explosion<\/strong> \u2014 \u044d\u0444\u0444\u0435\u043a\u0442 \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u0437\u0440\u044b\u0432\u0430<\/p>\n<\/li>\n<li>\n<p><strong>UI<\/strong> \u2014 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430: \u043f\u043e\u043b\u043e\u0441\u044b \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f, \u0442\u0435\u043a\u0441\u0442, \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><strong>Audio<\/strong> \u2014 \u0437\u0432\u0443\u043a\u0438 \u043f\u0440\u044b\u0436\u043a\u043e\u0432, \u0432\u0437\u0440\u044b\u0432\u043e\u0432 \u0438 \u043c\u0443\u0437\u044b\u043a\u0438<\/p>\n<\/li>\n<\/ul>\n<h3>2. \u0413\u0440\u0430\u0444\u0438\u043a\u0430 \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<\/h3>\n<p>\u0418\u0433\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442:<\/p>\n<ul>\n<li>\n<p>\u0421\u043f\u0440\u0430\u0439\u0442\u044b PNG 64&#215;64 (\u0433\u0435\u0440\u043e\u0439, \u0432\u0440\u0430\u0433, \u0437\u0435\u043c\u043b\u044f, \u0431\u043e\u043c\u0431\u0430, \u0432\u0437\u0440\u044b\u0432)<\/p>\n<\/li>\n<li>\n<p>\u0410\u0443\u0434\u0438\u043e \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 WAV<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u0440\u0442\u0430 \u0443\u0440\u043e\u0432\u043d\u044f \u2014 \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 <code>Vec&lt;Vec&lt;u8&gt;&gt;<\/code>, \u0433\u0434\u0435 0 \u2014 \u0432\u043e\u0437\u0434\u0443\u0445, 1 \u2014 \u0437\u0435\u043c\u043b\u044f, 2 \u2014 \u0431\u043e\u043c\u0431\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b:<\/p>\n<pre><code class=\"rust\">let tiles = vec![     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0],     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0],     vec![0, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],     vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0],     vec![1; 20], ]; <\/code><\/pre>\n<h3>3. \u0418\u0433\u0440\u043e\u043a: \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435, \u043f\u0440\u044b\u0436\u043e\u043a, \u0443\u0440\u043e\u043d, \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f<\/h3>\n<p>\u0412 <code>Player<\/code> \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0438 \u043f\u0440\u044b\u0436\u043e\u043a \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043a\u043b\u0430\u0432\u0438\u0448<\/p>\n<\/li>\n<li>\n<p>\u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u0433\u0440\u0430\u0432\u0438\u0442\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0439 \u0441 \u0437\u0435\u043c\u043b\u0451\u0439<\/p>\n<\/li>\n<li>\n<p>\u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u043f\u0440\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0438 (\u0441\u043c\u0435\u043d\u0430 \u043a\u0430\u0434\u0440\u043e\u0432)<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0443\u0440\u043e\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 <code>hurt_timer<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u0433\u0440\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u043c\u0438\u0433\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0443\u0440\u043e\u043d\u0430:<\/p>\n<pre><code class=\"rust\">let alpha = if self.hurt_timer &gt; 0.0 {     ((get_time() * 15.0).sin() * 0.5 + 0.5) as f32 } else { 1.0 };<\/code><\/pre>\n<p>\u041c\u0435\u0442\u043e\u0434 <code>draw()<\/code> \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0441\u043f\u0440\u0430\u0439\u0442 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043a\u0430\u0434\u0440\u0430 \u0441 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u043c \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u0438.<\/p>\n<h3>4. \u0418\u0433\u0440\u043e\u0432\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430: \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0438 \u0443\u0440\u043e\u043d<\/h3>\n<pre><code class=\"rust\">if enemy.collides_with(player.pos) &amp;&amp; player.hurt_timer &lt;= 0.0 {     player.damage(); }  if tilemap.is_bomb_tile(tile_x, tile_y) &amp;&amp; player.hurt_timer &lt;= 0.0 {     explosions.push(Explosion::new(player.pos));     play_sound_once(&amp;explosion_sound);     player.damage();     screen_shake = 10.0; } <\/code><\/pre>\n<p>\u0418\u0433\u0440\u043e\u043a \u043c\u0438\u0433\u0430\u0435\u0442 \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0443\u0440\u043e\u043d\u0430, \u0438\u043c\u0435\u0435\u0442 <code>hurt_timer<\/code>, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0441\u043f\u0430\u043c \u0443\u0440\u043e\u043d\u0430.<\/p>\n<h3>5. \u0412\u0440\u0430\u0433\u0438: \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435<\/h3>\n<p>\u0412\u0440\u0430\u0433\u0438 \u0434\u0432\u0438\u0433\u0430\u044e\u0442\u0441\u044f \u0432\u043b\u0435\u0432\u043e-\u0432\u043f\u0440\u0430\u0432\u043e \u043f\u043e \u044d\u043a\u0440\u0430\u043d\u0443. \u0415\u0441\u043b\u0438 \u043e\u043d\u0438 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u0438\u0433\u0440\u043e\u043a\u043e\u043c, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 <code>collides_with<\/code>, \u0438 \u0438\u0433\u0440\u043e\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0443\u0440\u043e\u043d. \u0415\u0441\u043b\u0438 \u0438\u0433\u0440\u043e\u043a \u043f\u0440\u0438\u0437\u0435\u043c\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0432\u0435\u0440\u0445\u0443 \u2014 \u0432\u0440\u0430\u0433 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0437\u0440\u044b\u0432 \u0438 \u0437\u0432\u0443\u043a:<\/p>\n<pre><code class=\"rust\">if player.get_velocity().y &gt; 0.0 &amp;&amp; player_bottom &lt;= enemy_top + 20.0 {     explosions.push(Explosion::new(enemy.pos));     play_sound_once(&amp;explosion_sound); }<\/code><\/pre>\n<h3>6. \u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u044b<\/h3>\n<p>\u0412\u0437\u0440\u044b\u0432 \u2014 \u044d\u0442\u043e 8 \u043a\u0430\u0434\u0440\u043e\u0432 \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438. \u041a\u0430\u0436\u0434\u044b\u0439 Explosion \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 <code>frame<\/code> \u0438 <code>timer<\/code>, \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f:<\/p>\n<pre><code class=\"rust\">if self.timer &gt; 0.05 {     self.frame += 1;     self.timer = 0.0;     if self.frame &gt;= 8 {         self.finished = true;     } }<\/code><\/pre>\n<p>\u0418\u0433\u0440\u043e\u043a \u0442\u0430\u043a\u0436\u0435 \u043c\u0438\u0433\u0430\u0435\u0442:<\/p>\n<pre><code class=\"rust\">if self.hurt_timer &gt; 0.0 &amp;&amp; (get_time() * 10.0).floor() as i32 % 2 == 0 {     return; \/\/ \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u0430\u0434\u0440  <\/code><\/pre>\n<h3>7. \u0417\u0432\u0443\u043a \u0438 \u0434\u0440\u043e\u0436\u0430\u043d\u0438\u0435 \u043a\u0430\u043c\u0435\u0440\u044b<\/h3>\n<pre><code class=\"rust\">if screen_shake &gt; 0.0 {     offset = vec2(rand::gen_range(-2.0, 2.0), rand::gen_range(-2.0, 2.0));     screen_shake -= get_frame_time() * 50.0; }<\/code><\/pre>\n<h3>8. UI: \u043f\u043e\u043b\u043e\u0441\u0430 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f<\/h3>\n<pre><code class=\"rust\">draw_rectangle(10.0, 10.0, 200.0, 20.0, DARKGRAY); draw_rectangle(10.0, 10.0, 200.0 * (player.health as f32 \/ 3.0), 20.0, RED);<\/code><\/pre>\n<p>\u041f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434: <a href=\"https:\/\/github.com\/digkill\/RustyMario\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/digkill\/RustyMario<\/a><\/p>\n<p>\u0412\u0438\u0434\u0435\u043e \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u044f: <a href=\"https:\/\/t.me\/notecto\/3\" rel=\"noopener noreferrer nofollow\">https:\/\/t.me\/notecto\/3<\/a><\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0448\u0430\u0433\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0443\u0440\u043e\u0432\u043d\u0435\u0439, \u043c\u0435\u043d\u044e, \u0438\u043b\u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 Android, IOS \u0447\u0435\u0440\u0435\u0437 cargo mobile.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/912296\/\"> https:\/\/habr.com\/ru\/articles\/912296\/<\/a><br \/><\/br><\/br><\/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-460803","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/460803","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=460803"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/460803\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=460803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=460803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=460803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}