Jump to content

Performance of a flappy bird remake


juicejerry
 Share

Recommended Posts

Hi, I am looking for an html game engine to make something running on mobiles, I just played around this remake of Flappy bird(authored by uralozden), created with Phaser, it is quite simple with 400 lines in main.js, and it runs smoothly on PC, but on my android phone, it's just too laggy. The birdy is jumping rather than flying.

 

Code and demo here:

https://github.com/uralozden/flappy-bird

 

I can't see any problems in the code, and the assets used are in small size, so I  wonder is it the best phaser(or html5) can perform for this kind game?? Can it be optimized any way??

 

Thanks

 

 

Link to comment
Share on other sites

This is using a very old version of Phaser (1.1.3) and as such a lot has been optimised since then. If you don't want to update (as doing so will require a lot of fiddly changes) then I'd recommend systematically disabling various parts of the game to see which is causing the biggest performance hit. Try turning the text off, removing the background clouds, and even comment out the overlap check. You should be able to quickly narrow it down.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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