<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ru_shalm</author_name>
  <author_url>https://blog.hatena.ne.jp/ru_shalm/</author_url>
  <blog_title>鳥小屋.txt</blog_title>
  <blog_url>https://blog.toripota.com/</blog_url>
  <categories>
    <anon>制作</anon>
  </categories>
  <description>ゲームといえばメインループと言っても過言ではありません、嘘です過言です。今までの僕のメインループの書き方は簡単に書くと // C++側にメインループがある状態 int mainloop() { while(動作中なう？) { ゲーム内のオブジェクト処理(); 画像の描画処理(); 次フレームまでウェイト(); } return 0; } こうなっていたわけで、Luaを使うにあたってオブジェクト処理の部分でLuaのメインループ用の関数呼出にしていたのです。でも別にこういうやり方でもいいんですよね。 -- Lua側にメインループがある状態 function mainloop() while 動作中…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.toripota.com%2Fentry%2F20101105%2Fmainloop&quot; title=&quot;メインループの書き方？ - 鳥小屋.txt&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.user.blog.st-hatena.com/default_entry_og_image/22041559/1514246458853067</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-11-05 00:00:00</published>
  <title>メインループの書き方？</title>
  <type>rich</type>
  <url>https://blog.toripota.com/entry/20101105/mainloop</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
