Jump to content

Tutorial slow performance using Codepen.io


tarr11
 Share

Recommended Posts

Hi,

 

I'm trying to run this example on Codepen.io:

 

http://gametest.mobi/phaser/tutorials/02%20Making%20your%20first%20game/part9.html

 

I pasted into Codepen (copied the assets to imgur to avoid CORS issues)

 

http://codepen.io/tarr11/pen/Kjdzw

 

Same thing happens on jsfiddle

 

http://jsfiddle.net/axs3G/

 

I am running on Chrome and Firefox (windows) and these run very slowly.  

 

It would be super helpful to have this run in a JS playground tool like this, it's so much easier to learn.

 

Any ideas on what might be causing this?

 

- Doug

Link to comment
Share on other sites

Ah yes the tutorial code was written for 1.1.3. Under 1.1.4 the gravity values are so tiny it makes it seem like he's swimming through tar. Swap gravity for something like 200 and it runs faster, although for some reason the stars don't collide with the platforms. You could use the 1.1.3 release instead for now? There are quite a few issues re: physics in 1.1.4 that we've not ironed out yet I'm afraid.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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