Camera.shake() doesn't move sprites when a filter is applied

Đang mở
#263 0 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

Chưa có ai nhận issue này.

  • #332 của @Herjanz — đã đó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
30/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 linked JSFiddle and reproduce the issue by applying a filter to a sprite before calling Camera.shake; compare behavior with line 37 commented out. Then trace how filtered sprites are rendered and how camera shake moves sprites. The issue reports no code file or test; done means filtered sprites visibly shake, with the existing unfiltered behavior preserved.

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

Mô tả

enhancement

This issue was originally posted here: https://github.com/photonstorm/phaser/issues/2889

After applying a filter via sprite.filters = [filter], the filtered sprite no longer shakes when Camera.shake is called.

Here is a demonstration of the problem, comment out line 37 and you'll see the shaking work: https://jsfiddle.net/a4ujcsaz/

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.