Jump to content

What should physicsConfig object contain?


spinnerbox
 Share

Recommended Posts

My guess is, I have to send a physicsConfig parameter to my game constructor in order to have arcade physics object inside my game object.

 

This is my game constructor and the last parameter is not set up.

var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update }, false, true, physicsConfig);

What should I include inside physicsConfig = { } in order to have Arcade base system and avoid creation of new Arcade object?

arcade = new Phaser.Physics.Arcade(game);

I am using Phaser 2.2.2

Link to comment
Share on other sites

  • 2 years later...
 Share

  • Recently Browsing   0 members

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