Jump to content

Input box


Fenopiù
 Share

Recommended Posts

It doesn't event start in Phaser 2.6.2 with Typescript :-(

I've put phaser-input.js and phaser-input.d.ts in mypath/paser-input, then I call Phaser and phaser-input in my index.html

<head>
    <script src="mypath/phaser/phaser.js"></script>
    <script src="mypath/phaser-input/phaser-input.js"></script>
</head>

When I activate the plugin:

game.add.plugin(PhaserInput.Plugin);

Visual Studio returns:

 (TS) Argument type 'typeof Plugin' cannot be assigned to a parameter type 'Plugin'.
  In type 'typeof Plugin' there is no 'active' property.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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