<?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>プロジェクト32</anon>
  </categories>
  <description>ステージがスクロールしているときに、プレイヤーが壁に向かって移動していると、カクついたり、ジャンプすると場合によっては壁にめり込んでしまう場合があった。 プレイヤーの入力がある場合、ジャンプしているときなど、いろいろな条件で判定を試したが、なかなかうまくいかなかった。 そんなことはせずにシンプルにステージにスクロールと同じ分だけプレイヤーも移動させるようにしたら、うまくいった。 ステージがスクロールしているといっても、ユーザーから見える部分が移動しているだけで、ゲーム内のワールドは動いていないというイメージかな。 いまのところ、動く床のようなギミックは予定していないので、このままでも問題なさそ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F2026%2F02%2F13%2F211411&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>2026-02-13 21:14:11</published>
  <title>プレイヤーもスクロール</title>
  <type>rich</type>
  <url>https://toburau.hatenablog.jp/entry/2026/02/13/211411</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
