<?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>プロジェクト8</anon>
  </categories>
  <description>プレイヤーと障害物の当たり判定を処理したところ、障害物が連続でヒットしてあっという間にゲームオーバーになってしまう場合があるのが判明。 ということで、一回障害物に当たったら一定時間、障害物に当たらないようにプレイヤーに無敵時間を作るようにした。 まあ、処理としては簡単で、一回ヒットしたら無敵時間のカウンタを設定して、カウンタが0になるまでヒット処理を行わないようにしただけ。 int count = 0; // 無敵時間のカウンタ bool isHit = false; // ヒットしたかのフラグ 障害物と当たったらtrueになる if (isHit &amp;&amp; count == 0) { // 当た…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20091122%2F1258909200&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>2009-11-22 02:00:00</published>
  <title>プレイヤーの無敵時間</title>
  <type>rich</type>
  <url>https://toburau.hatenablog.jp/entry/20091122/1258909200</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
