<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>K38</author_name>
  <author_url>https://blog.hatena.ne.jp/K38/</author_url>
  <blog_title>ゲームを作りたい！</blog_title>
  <blog_url>https://k38.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C言語</anon>
    <anon>MAP</anon>
    <anon>RPG</anon>
    <anon>SDL2</anon>
  </categories>
  <description>前回は、保存するときのファイル名を入力するための文字入力Windowを作成したので、後は入力されたファイル名でMAPデータを保存する、そしてそれを読み込む部分を実装する。 バイナリ形式保存 -&gt; 第1回で書いた通りバイナリ形式で保存する。C言語だとバイナリ書込・読込は関数一つでできるので割と簡単に実装できた。 まず、保存部分は以下のように実装した。 int save_file(char *file_name) { FILE *fp; char file[256] = {0}; int i = 0; sprintf(FILE_NAME, &quot;%s&quot;, file_name); while (FILE…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk38.hatenadiary.jp%2Fentry%2F2019%2F03%2F25%2F220009&quot; title=&quot;SDL2でMAPEditerを作る　〜第5回 保存・読込〜 - ゲームを作りたい！&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>https://cdn-ak.f.st-hatena.com/images/fotolife/K/K38/20190325/20190325215445.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-03-25 22:00:09</published>
  <title>SDL2でMAPEditerを作る　〜第5回 保存・読込〜</title>
  <type>rich</type>
  <url>https://k38.hatenadiary.jp/entry/2019/03/25/220009</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
