<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hiro128</author_name>
  <author_url>https://blog.hatena.ne.jp/hiro128/</author_url>
  <blog_title>個人的なメモ</blog_title>
  <blog_url>https://hiro128.hatenablog.jp/</blog_url>
  <categories>
    <anon>Xamarin</anon>
    <anon>Cocos Sharp</anon>
  </categories>
  <description>今回は自機が敵キャラに当たった時の当たり判定を実装します。当たり判定を行なうには CCRect クラスの IntersectsRect メソッドを利用します。 public bool IntersectsRect(CCRect rect); CCRect が引数に与えられた CCRect と重なっている場合、true を返します。ですが、この処理を画面上の全ての敵キャラに対し、1/10秒といったようなインターバルで行なってしまうと、大きな負荷がかかってしまいます。 そこで、一般的には自分の近くに居る敵キャラにだけ当たり判定を行ないます。具体的には、画面をいくつかのエリアに分割し、自機と敵キャラ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiro128.hatenablog.jp%2Fentry%2F2016%2F09%2F14%2F210913&quot; title=&quot;Xamarin + Cocos Sharp で iOS, Android 対応のゲームを開発する手順 (13) 当たり判定①　当たり判定を検出できるようにする。 - 個人的なメモ&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-ak.f.st-hatena.com/images/fotolife/h/hiro128/20160914/20160914210709.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-09-14 21:09:13</published>
  <title>Xamarin + Cocos Sharp で iOS, Android 対応のゲームを開発する手順 (13) 当たり判定①　当たり判定を検出できるようにする。</title>
  <type>rich</type>
  <url>https://hiro128.hatenablog.jp/entry/2016/09/14/210913</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
