<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mirichi</author_name>
  <author_url>https://blog.hatena.ne.jp/mirichi/</author_url>
  <blog_title>mirichiの日記</blog_title>
  <blog_url>https://mirichi.hatenadiary.org/</blog_url>
  <categories>
    <anon>DXRuby</anon>
  </categories>
  <description>このような定義を考えてみた。(追記：これではダメだ) class Sprite Point = Array Box = Array Circle = Array Triangle = Array end これは衝突判定範囲を指定する際に、配列だとちょっとわかりにくいかなーと思ってその対策案のひとつ。 結局全部Arrayなので違う要素数のものを作る、すなわちPoint.new(1,2,3,4,5,6)とかすれば三角形の衝突判定になってしまうわけだが、使い方を守れば見た目的にわかりやすくなる。 また、以下のように定義すれば class Sprite class Line &lt; Array def i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmirichi.hatenadiary.org%2Fentry%2F20120612%2Fp1&quot; title=&quot;Sprite内の定数 - mirichiの日記&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>2012-06-12 00:00:00</published>
  <title>Sprite内の定数</title>
  <type>rich</type>
  <url>https://mirichi.hatenadiary.org/entry/20120612/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
