TilemapLayer crops its rendered image if width/height are less than game's width/height
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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!
- Ngôn ngữ chính
- JavaScript
- Star
- 1.4k
- Fork
- 485
- Merge trung bình
- 1 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của phaserjs/phaser-ce
-
Web audio stops playing in iOS 17 and 18 after refocusingCó thể làm lại được @samme đã nhận 633 ngày trước và không có pull request nào đang mở. Đang mở
phaserjs/phaser-ce#748 · 2 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
phaserjs/phaser-ce#740 · 9 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
phaserjs/phaser-ce#724 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
phaserjs/phaser-ce#711 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của phaserjs/phaser-ce
Issue tương tự
-
enhancement ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DCGM/semant-demo#708 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
agents area: runtime automation chore cli consistency dependencies developer-experience difficulty: easy documentation enhancement good first issue help wanted hygiene json-output priority: P3 starters tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Client codegen: an import repeated in an impl file is emitted twice, and the browser rejects the moduleCó thể đã có người làm @MalithaPrabhashana đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
jaseci-labs/jac#10756 ·
Maintainer thường phản hồi trong vòng 1 ngày