<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>utthi_fumi</author_name>
  <author_url>https://blog.hatena.ne.jp/utthi_fumi/</author_url>
  <blog_title>utthi_fumiの日記</blog_title>
  <blog_url>https://utthi-fumi.hatenablog.com/</blog_url>
  <categories>
    <anon>awk</anon>
  </categories>
  <description>ゲームでプログラミングとなると、大抵はjavascriptで作ることが多いと思います。 キーボード操作やマウス操作が絡んできますからね。 awkでも、リアルタイムでキーボード操作ができれば、ゲームを作ることができます。 キーボード操作そのものはシェルスクリプトになります。 簡単なRPGゲーム(？）を作成してみました。 いきなり、ドラクエの最後のボスとの直接対決からスタートします。 wキーが上に移動、sキーが下に移動します。 ぜひ、最後の魔王を倒して、世界に平和をもたらしてください。 #! /usr/bin/gawk -f # rpg.awk function getch( cmd,k){ cm…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Futthi-fumi.hatenablog.com%2Fentry%2F2023%2F05%2F06%2F171835&quot; title=&quot;awkでRPGゲーム - utthi_fumiの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-05-06 17:18:35</published>
  <title>awkでRPGゲーム</title>
  <type>rich</type>
  <url>https://utthi-fumi.hatenablog.com/entry/2023/05/06/171835</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
