hexonaut / haxe-phaser

Haxe externs for Phaser.
MIT License
51 stars 9 forks source link

Correction function init In State #56

Closed fwax closed 8 years ago

fwax commented 8 years ago

Allow parameter in function init

hexonaut commented 8 years ago

I don't see any optional arguments in the Phaser source. Is this correct behaviour?

fwax commented 8 years ago

Hi In JS, you can pass arguments to the start function when launching a state. You can then get then have them in the init of a state. Currently you can't do this with Haxe/phaser.

This behaviour is clearer in the source code.

@param {...*} parameter - Additional parameters that will be passed to the State.init function (if it has one).

hexonaut commented 8 years ago

Ok I'll take your word for it. Thanks! :)