Multi-texture sprites stretch to fill entire canvas

Đang mở
#231 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@samme đang làm issue này rồi.

Từ ngày 24/10/2026.

  • #761 của @copilot-swe-agent — đã đóng, không merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 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
Lĩnh vực
frontend, game-dev

Hướng nghiên cứu

Start with the live example linked in the issue and compare sprite rendering with and without texture priority in Phaser CE v2.7.10. Trace the multi-texture sprite sizing and rendering path to find why it fills the canvas; done means it renders at its default size when texture priority is set.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

This Issue is about

  • A bug in the API:
    • Phaser version(s): Phaser CE v2.7.10
    • Live example: https://codepen.io/okaybenji/pen/JNxRZL
    • What should happen: The sprite should render at its default size.
    • What happens instead: The sprite stretches to fill the entire canvas.

I don't believe this is the expected behavior, because if you don't set the texture priority, the sprite renders at its default size.

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của phaserjs/phaser-ce

Tất cả issue của phaserjs/phaser-ce

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.