A failed game start leaves LOADING on screen with no error state

Aperta Adatta ai principianti
#18 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend, game-dev

Direzione di ricerca

Inizia da shared/phaser-config.ts e shared/chrome.ts; segui il modo in cui startArcadeGame crea il gioco e in cui il loader viene rimosso dopo il primo rendering. Controlla come i chiamanti in games/*/main.ts gestiscono gli avvii rifiutati. Implementa il messaggio di errore e il link descritti nell’issue, poi esegui npm run typecheck e npm run build; il lavoro è completato quando un errore di avvio sostituisce LOADING con un messaggio e un link all’hub.

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

Descrizione

severity: low tech-debt

Summary

If a game throws during boot or in a scene's create, the player sees a permanent LOADING label and nothing else.

Where

  • shared/phaser-config.ts:51, shared/phaser-config.ts:61-71 (loader removed only on first render)
  • Every games/*/main.ts calls void startArcadeGame(...), discarding a rejection

Details

There is no error or unhandledrejection handler anywhere in shared/.

Steps to reproduce

  1. Throw inside any scene's create() and load the page.

Suggested fix

In startArcadeGame, wrap creation in try/catch and add a one-shot error listener that replaces the loader text with a short failure message and a link back to the arcade.

Acceptance criteria

  • A boot failure shows a message and a link to the hub instead of LOADING

Getting started

  • Relevant files: shared/phaser-config.ts, shared/chrome.ts
  • Run locally: npm install, then npm run dev
  • Checks: npm run typecheck and npm run build (there is no test suite yet)
  • Related docs: README.md

Filed by repo-audit/full-audit at b001f5d. Severity: low. Effort: S. audit-key: quality|shared/phaser-config.ts|startArcadeGame

Lingua principale
TypeScript
Stelle
3
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 TMHSDigital/GH-Arcade

Tutte le issue di TMHSDigital/GH-Arcade

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.