hexonaut / haxe-phaser

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

add plugins to Game #44

Closed mathieuanthoine closed 9 years ago

mathieuanthoine commented 9 years ago

plugins property missing in Game class

hexonaut commented 9 years ago

Plugin is fine. I don't really see the Easing changes as necessary though. I want to match as closely to the Phaser source as possible, so I'd rather keep those all in one file and use import phaser.tween.Easing to use them.

Could you remove the Easing changes? I'll accept this PR once that is done. Thanks.

mathieuanthoine commented 9 years ago

How do you use a specific easing inside your Easing.hx file without having a class for each type of Easing ?

hexonaut commented 9 years ago

You can for example use Quadratic easing as follows:

import phaser.tween.Easing;

// ...
var someTween = game.add.tween(...);
someTween.to( { ... }, 1000, Quadratic.Out);
// ...