playif / play_phaser

A Dart port for Phaser 2D game engine.
MIT License
71 stars 13 forks source link

Point operator overloading with num #6

Closed oxysoft closed 10 years ago

oxysoft commented 10 years ago

Certain operations could be simplified further by adding operators to the Point class that use numbers rather than points

i.e

myPoint * new Point(2.0, 2.0); // without
myPoint * 2.0; // with
playif commented 10 years ago

Thanks for your suggestion. The feature is added in v0.10.3