Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

96
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!