<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yappy_t</author_name>
  <author_url>https://blog.hatena.ne.jp/yappy_t/</author_url>
  <blog_title>yappyの日記</blog_title>
  <blog_url>https://yappy-t.hatenadiary.org/</blog_url>
  <categories>
    <anon>Lua</anon>
  </categories>
  <description>よくある面倒ランキング１位の当たり判定について。まあ(任意の範囲)―(円)間の判定ができればいいでしょう。そのためには(任意の範囲)―(点)間の最短距離が求められれば、円の半径と比べるだけで円との判定に拡張できます。(変な形したボス)―自機・(変な形したボス)―自分の弾の判定が必要なことを考えると、自機と自分の弾をそれぞれある半径の円とし、ボスの判定を円なり四角なりそれらの複合なりでいろいろ変えられるようにすればいいわけです。 ということで判定範囲の中心点と対象の座標から判定範囲との最短距離を求める関数を敵オブジェクトに持たせます。まずは一番簡単な円判定から作りましょう。円の中心と対象点の距離…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyappy-t.hatenadiary.org%2Fentry%2F20100328%2F1269766575&quot; title=&quot;クロージャ入門 - yappyの日記&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>2010-03-28 17:56:15</published>
  <title>クロージャ入門</title>
  <type>rich</type>
  <url>https://yappy-t.hatenadiary.org/entry/20100328/1269766575</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
