Multi-texture sprites stretch to fill entire canvas

Aperta
#231 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@samme ci sta già lavorando.

Dal 24/10/2026.

  • #761 di @copilot-swe-agent — chiusa senza merge

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
frontend, game-dev

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
JavaScript
Stelle
1.4k
Fork
485
Merge medio
1g 2h
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di phaserjs/phaser-ce

Tutte le issue di phaserjs/phaser-ce

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.