Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

my game is very slowly


bousing
 Share

Recommended Posts

Hello my dev friends.

   In this occasion, I post about a problem what I have... I make a game with this beautifull framework but is very slowly. When the game starts all is black for considerable time until loaded it because the browser is loading the game (client-side code, I know)... but I want know Why does it take too long? 

   I want add a loadingbar for show it to the user while the browser load the code...but doesn't works

  I create my loading bar like this

 

 preload: function(){
        this.load.image("loading","/assets/logo_eluniversalVE.jpg");
    }

//IN MY PRELOADER SCRIPT:

create: function(){
     
     var loadingbar = this.add.sprite(this.game.world.centerX,this.game.world.centerY,"loading");
}

but doesn't work...

If I apply minification to my client-side code, will be more fast ?  I going to thanks every help from you, about the loading bar or about the performance

Greetings and thank you for reading 

Link to comment
Share on other sites

26 minutes ago, bousing said:

if I use canvas and not WebGL my performance is better ? Thank you for your answer

 

 
 

In some situations. For example, if you use a BitmapData(and change it every frame), or text that you change every frame. Or if you use pre-2.7 Phaser and use a tilemap.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...