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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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