parseTiledJSON error when using Tiled "Collection of images" tileset.

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

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

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

評価

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

調査の方向性

Start by locating parseTiledJSON and the access to map.tiles[tile.index][2] described in the issue. Compare how that path handles the empty map.tiles array with the populated map.imagecollections data shown in the example. Done means collection-of-images tilesets parse without crashing; verify with a test using the supplied tileset structure.

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

説明

enhancement help wanted

In this case map.tiles is empty because there is no tileset image and each tile has it's own. Code crashes at sid = map.tiles[tile.index][2];

in the same time map.imagecollections is ok.

"tilesets":[
        {
         "columns":0,
         "firstgid":1,
         "grid":
            {
             "height":1,
             "orientation":"orthogonal",
             "width":1
            },
         "margin":0,
         "name":"test",
         "spacing":0,
         "tilecount":7,
         "tileheight":302,
         "tiles":
            {
             "0":
                {
                 "image":"chest.png",
                 "imageheight":200,
                 "imagewidth":200
                },
             "2":
                {
                 "image":"coopers.png",
                 "imageheight":172,
                 "imagewidth":222
                }
            }
      }
]
主要言語
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 を短くまとめたダイジェスト。