<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sonota88</author_name>
  <author_url>https://blog.hatena.ne.jp/sonota88/</author_url>
  <blog_title>memo486</blog_title>
  <blog_url>https://memo88.hatenablog.com/</blog_url>
  <categories>
    <anon>vm2gol-v2</anon>
  </categories>
  <description>目次ページに戻る / 前 / 次 前回からの差分をまとめて見る はい、前回でとうとう 1回のターンが動くように……なってないんですねこれが。 1回のターンに必要な処理がもう1つ残ってます。 VRAM のバッファ領域に書き込んだ次世代の状態をメイン領域に戻す処理です。 やりましょう！ まずは、二重ループの部分が大きくなってきたので 別の関数に分けます。 分かりやすい diff にならなかったので 修正後のものを貼ります。 変数宣言と、 x, y の初期化と 二重ループの部分を make_next_gen() に抽出しました。 , [&quot;func&quot;, &quot;make_next_gen&quot;, [&quot;w&quot;, &quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo88.hatenablog.com%2Fentry%2F2019%2F08%2F18%2F151324&quot; title=&quot;vm2gol v2 製作メモ（37） 完成！ - memo486&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>2019-08-18 15:13:24</published>
  <title>vm2gol v2 製作メモ（37） 完成！</title>
  <type>rich</type>
  <url>https://memo88.hatenablog.com/entry/2019/08/18/151324</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
