Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

100
Vistas
Image in Phaser3 is not showing

I need to show an image on my first screen in phaser3 here is the code

//logo.js
class Logo extends Phaser.Scene{
    constructor(){
        super('Logo')
    }
    preload(){
        this.load.image('gameLOGOFinal', './assets/gameLOGOFinal.png');
    }
    create(){
         
        this.add.image(400,300, 'gameLOGOFinal');

        setTimeout(() => {
            this.scene.start('Start')
        }, 20000)
    }
}

the image is on the right path but it only show a green box enter image description here

BTW I am using XAMPP apache to run it.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Are you sure that the image has been loaded? Open Dev tools in the browser > Network tab and see if the request with suffix 'assets/gameLOGOFinal.png' has returned status OK. If not, see what request is being sent and what request you want to be sent.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda