Jump to content

Loading / Performance - collision


keytschell
 Share

Recommended Posts

Hi!

I am working on my first Phaser-game.

I have a performance issue with my collision rendering.

I am using tilemaps and an extra layer for my collision.

You can see my example on http://wpdev.at/moemax-store-game-collision/ (without rendering collision) and here is the example with rendering collision: http://wpdev.at/moemax-store-game/

Everything is fine on Desktop. Loading time is about 6 seconds. But on mobile devices it takes about 1minute to load.

I am using "map.setCollisionByExclusion([], true, this.collisionLayer);" for my collisions.

Already tried toreduce the number of layers to a minimum - about 2 layers - does not help.

Tried using map.setCollision([8,9..]) - did not render any collision for me.

 

Any suggestions?

 

Thanks for your replies.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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