We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 729103a commit 9a8a6b2Copy full SHA for 9a8a6b2
1 file changed
dodgedemo/dodgedemo.js
@@ -120,7 +120,7 @@ function makeCross(pos) {
120
// * Creates frame-independent transformation *
121
countdown -= time.deltaTime;
122
if (countdown <= 0) {
123
- countdown = Math.random() * 60;
+ countdown = Math.random() * Math.random() * Math.random() * 120;
124
crosses.push(makeCross(new Point(crossAsset.width / 2 + 8 + Math.random() * (app.screen.width - crossAsset.width - 16), crossAsset.height / 2 + 8 + Math.random() * (app.screen.height - crossAsset.height - 16))));
125
}
126
player.x += time.deltaTime * 4.0 * (wasd[3].isDown - wasd[1].isDown);
0 commit comments