Jump to content

Scaling Physics


Recommended Posts


I'm making a game with Phaser and using arcade physics. I can't find any information about how to scale the physics with the size of the browser. I would like to scale the physics (gravity, velocity, etc.) so that game play remains the same when the game size is changed via a browser resize.

Anyone know how this can be done?

Edit: I should've added, my current method is to use scaling factors that are used to recalculate certain dimensions and physical properties when the resize function is called. But I'm not exactly sure how to do the math to calculate these scaling factors, especially for gravity.

Link to comment
Share on other sites


  • Recently Browsing   0 members

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