<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ABA</author_name>
  <author_url>https://blog.hatena.ne.jp/ABA/</author_url>
  <blog_title>ABAの日誌</blog_title>
  <blog_url>https://aba.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>CRTっぽいテキスト画面をWebGLで作るLocatePrintを使って物理エンジンをレンダリングするというデモも作った。 物理エンジンはMatter.jsを使っている。Matter.jsはもちろん自前のレンダラを持っているんだけどそれを他のレンダラで差し替えられる。 差し替える独自レンダラはMatter.jsのRender.jsを参考に作れば良い。特にRender.bodyWireframes関数にボディの頂点を線でつなぐ一番単純な描画方法が実装されているので、これを真似るのが簡単だ。 デモのコードでは、頂点を線でつなぐ部分でテキストを書くようにした。画面をテキストの幅と高さ（40キャラ x…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faba.hatenablog.com%2Fentry%2F2015%2F09%2F16%2F212335&quot; title=&quot;物理エンジンMatter.jsをテキストでレンダリング - ABAの日誌&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>http://abagames.sakura.ne.jp/15/LocatePrint/consolephysics.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-09-16 21:23:35</published>
  <title>物理エンジンMatter.jsをテキストでレンダリング</title>
  <type>rich</type>
  <url>https://aba.hatenablog.com/entry/2015/09/16/212335</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
