Sign in to follow this  
Followers 0
spinnerbox

What should physicsConfig object contain?

2 posts in this topic

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.