Requesting PVRTC texture loading for Phaser.Loader#atlas

Aperta
#42 9 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start with src/loader/Loader.js at the atlasJSONHash entry point cited in the issue, then compare how image and texture handle PVRTC and other compressed formats. The issue asks whether atlas loading should accept compressed textures with a truecolor fallback, but leaves the API and behavior undecided; done would require defining that behavior and supporting it for atlas loading.

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

Descrizione

enhancement help wanted

Feature Request

Firstly, thanks so much for this great and well-documented library!

Currently there is the beautiful option of loading PVRTC (or other compressed texture formats) with Phaser.Loader#image [1] and Phaser.Loader#texture [2].

However my preferred way of loading spritesheets with frames for animation is via Phaser.Loader#atlasJSONHash [3], but this method only accepts a normal image file along with the atlas data file (in JSON format).

I suppose my question is: how can we support an object with compressed texture formats (and a fallback truecolor image file as an argument passed to the Phaser.Loader#atlasJSONHash method? Is this desirable behavior for anyone else?

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.