TilemapLayer crops its rendered image if width/height are less than game's width/height

オープン
#267 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
frontend, game-dev

調査の方向性

Start by reproducing the crop in the linked CodePen with Phaser 2.6.2 or 2.8.1, moving the camera and comparing the two TilemapLayers. Then trace how TilemapLayer rendering handles camera offsets and layer bounds; done means both layers render without cropping as the camera moves, including when a layer is smaller than the game view.

索引モデルが issue の本文から書いたものです。

説明

help wanted

Hi!

Sorry for my English.

This Issue is about rendering TilemapLayer if its cameraOffset.x/y not zero, or if TilemapLayer has width and height less than game's width/height. TilemapLayer crops its rendered image.

  • A bug in the API:
    • Phaser version(s): 2.6.2, 2.8.1
    • Live example: https://codepen.io/DrDerico/pen/yXoaKy You'll see two white rectangles (they are TilemapLayers). First layer (rectangle) has cameraOffset (0,0), the second one has cameraOffset (200, 200). Press cursor LEFT/RIGHT/UP/DOWN. The second rectangle disappears behind its left top corner.
      Also the second layer manually resized to 160x160 pixels. And when moving the camera the second layer disappears behind its bounds (160x160)

I can't make my game with infinite scrolling, because TilemapLayers, that I use, disappear when the camera moves.

Thank you!

主要言語
JavaScript
スター
1.4k
フォーク
485
平均マージ
1日 2時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

phaserjs/phaser-ce のほかの issue

phaserjs/phaser-ce の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。