The Camera.checkBounds doesn't work well when game's resolution > 1
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- game-dev
調査の方向性
Read src/core/Camera.js around the two linked locations (lines 724 and 747) and check how camera bounds use game.resolution. Reproduce the extra space at the bottom and right with a resolution greater than 1, then verify the camera view reaches the expected bounds after the proposed adjustment.
索引モデルが issue の本文から書いたものです。
説明
When setting game's resolution greater than 1, the checkBounds function of game camera doesn't work well. It will add more spaces at bottom and right of the game world.
I found the code that makes this problem:
https://github.com/photonstorm/phaser-ce/blob/c900c6765875b9d78796a0d6771fcaa22e394e2b/src/core/Camera.js#L724
That would be fixed if we change to:
this.view.x = (this.bounds.right * this.scale.x) - (this.width * this.game.resolution);
this.view.y = (this.bounds.bottom * this.scale.y) - (this.height * this.game.resolution);
- 主要言語
- JavaScript
- スター
- 1.4k
- フォーク
- 485
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 9
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
phaserjs/phaser-ce のほかの issue
-
Web audio stops playing in iOS 17 and 18 after refocusing再び着手できるかも @samme が 633 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
phaserjs/phaser-ce#748 · リアクション 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
phaserjs/phaser-ce#740 · コメント 9 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
phaserjs/phaser-ce#724 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
phaserjs/phaser-ce#711 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
phaserjs/phaser-ce の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
needs:triage
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
fix(readme): skills.sh badge says 'resource not found' and the skills.sh link is a 404; skills.sh still lists the old name tdk-skills対応中かも @bfs2021 が今日担当しました。 オープンarea: ci area: docs badge bug chore cleanup consistency developer-experience difficulty: easy docs documentation good first issue hygiene journey: first-visit links priority: P3 skills user-journey
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
flisk-sh/flisk-skills#39 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Ionaru/easy-markdown-editor#656 ·