<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shin</author_name>
  <author_url>https://blog.hatena.ne.jp/shin/</author_url>
  <blog_title>しんさんの出張所 はてなブログ編</blog_title>
  <blog_url>https://shinsan.hatenablog.jp/</blog_url>
  <categories>
    <anon>自作ソフト</anon>
    <anon>Java</anon>
  </categories>
  <description>無敵のフラグを用意した、ベースとなるクラスを作成。直接SGGameObjectを継承している当たり判定のあるキャラは継承元を変更。これで無敵時間の設定が可能だ。 動きとしては自機は画面したから出現するようにして、その間動けるようになってからも少しの間は無敵。また、無敵の間は点滅するようにした。 実装としてはこの無敵フラグは整数で表すのが一般的だろう。普通に考えるとbooleanになりそうだが、無敵時間をフレーム単位で数を設定しておいて、それが0になったら無敵が解けたとしておくのがタイマーの設置もしなくていいので都合がよい。いつ無敵が解けるかわからないような場合は、毎フレーム1以上の値を設定して…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinsan.hatenablog.jp%2Fentry%2F20091115%2Fp1&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-15 00:00:02</published>
  <title>当たり判定まわりを少し追加</title>
  <type>rich</type>
  <url>https://shinsan.hatenablog.jp/entry/20091115/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
