projects
/
Hacks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make HexaSpinners start at a random rotation value
[Hacks.git]
/
hacks
/
HexaSpinner
/
HexaSpinner.js
diff --git
a/hacks/HexaSpinner/HexaSpinner.js
b/hacks/HexaSpinner/HexaSpinner.js
index
b585c6a
..
4246e23
100644
(file)
--- a/
hacks/HexaSpinner/HexaSpinner.js
+++ b/
hacks/HexaSpinner/HexaSpinner.js
@@
-31,7
+31,7
@@
enyo.kind({
} else {
this.rate = Math.PI / 40;
}
- this.rotation =
0
;
+ this.rotation =
Math.random() * 2 * Math.PI
;
},
update: function(bb) {
this.position.add(this.velocity);