Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
マイゲーム
ゲームを作りましたが、それに含まれるすべての画像が縦に動いています。横向きにする方法を教えていただきたいです。
あなたがリンクした jsbin は私のコンピューターでは動作しないため、他の問題がある可能性があります。
とにかく、ゲーム内で背景を水平方向に移動させるには、 function を見つけて、function Background()this.y 割り当てを に変更しますthis.x(たとえば、this.y += this.speedになりthis.x += this.speedます)。
function Background()
this.x
this.y += this.speed
this.x += this.speed