<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toburau</author_name>
  <author_url>https://blog.hatena.ne.jp/toburau/</author_url>
  <blog_title>ゲームが作れるようになるまでがんばる日記</blog_title>
  <blog_url>https://toburau.hatenablog.jp/</blog_url>
  <categories>
    <anon>プロジェクト13</anon>
  </categories>
  <description>敵キャラも複数出てくるようになって、テストプレイしていると、当たり判定がちょっと微妙な感じがしてきた。 スプライト同士の矩形で判定するIntersectだと透明な部分もあるキャラ画像だと当たっていないように見えているときでも当たったと判定されてしまう。 プレイヤーは定番のクマの画像を使っているのだが、それが少し縦長に見えるため、中心からの距離で判定するwithinでもちょっとずれていても当たっているように判定されてしまう。 まあ、withinで距離をうまく調整して、おかしくないようにするしかないか。重なっていないのに当たったと判定されてしまうよりも、重なっているのに当たってないと判定されるほう…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20130317%2F1363539483&quot; title=&quot;当たり判定 - ゲームが作れるようになるまでがんばる日記&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>2013-03-17 01:58:03</published>
  <title>当たり判定</title>
  <type>rich</type>
  <url>https://toburau.hatenablog.jp/entry/20130317/1363539483</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
