Jump to content

Phaser 2.0, Typescript and physics


MarkAndrade
 Share

Recommended Posts

Hi all,

 

I'm having a few issues with Phaser 2.0, typescript and physics and hope that someone can point me in the right direction.  Not sure if my error is because the phaser.d.ts might be incomplete or I'm just missing something.

 

I'm simply trying to init Arcade physics by calling...

 this.game.physics.startSystem(Phaser.Physics.ARCADE);

This compile error I receive is... 

 The property 'startSystem' does not exist on value of type 'Phaser.Physics.Arcade.World'.

If I try and use..

 new Phaser.Physics.Arcade(this.game);

... I don't get the compile error.  Pretty much any other calls to a sprite's body or other physics functions cause an error too. :(

 

Thanks for the help. 

 

 

--

Mark

 

 

  

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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