playif / play_phaser

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

Seed PRNG and fix hashing #22

Closed larsch closed 9 years ago

larsch commented 9 years ago

The random number generator in play_phaser is not properly initialised and seeded like in phaser (and original RNG code). This is not as elegant as the javascript code, but it should do more or less the same. Perhaps Dart's Object.hashCode() could and should be used instead, but this seem to work.