From 1c577d3674dc9bc90e7372072a01eec14013f9fd Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Tue, 8 Oct 2013 22:55:27 +0100 Subject: [PATCH] Fixed RandomDataGenerator.sow --- README.md | 1 + examples/misc/rnd.php | 47 ++++++++++++++++++++++++++++ examples/template.php | 4 --- examples/world/move around world.php | 5 +-- src/math/RandomDataGenerator.js | 4 ++- 5 files changed, 54 insertions(+), 7 deletions(-) create mode 100644 examples/misc/rnd.php diff --git a/README.md b/README.md index 355363d7..628f60b2 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,7 @@ Version 1.0.7 (in progress in the dev branch) * ArcadePhysics.moveTowardsMouse changed to ArcadePhysics.moveTowardsPointer and now lets you specify which pointer to move towards (defaults to Input.activePointer). * ArcadePhysics.angleBetweenMouse changed to ArcadePhysics.angleBetweenPointer and now lets you specify which pointer to get the angle to (defaults to Input.activePointer). * ArcadePhysics.velocityFromAngle and ArcadePhysics.velocityFromRotation added with examples created. +* Fixed the RandomDataGenerator.sow method so if you give in the same seed you'll now get the same results (thanks Hsaka) * TODO: look at Sprite.crop (http://www.html5gamedevs.com/topic/1617-error-in-spritecrop/) diff --git a/examples/misc/rnd.php b/examples/misc/rnd.php new file mode 100644 index 00000000..55f2c30c --- /dev/null +++ b/examples/misc/rnd.php @@ -0,0 +1,47 @@ + + + + + \ No newline at end of file diff --git a/examples/template.php b/examples/template.php index aa481ac2..1cef04ec 100644 --- a/examples/template.php +++ b/examples/template.php @@ -5,8 +5,6 @@