Skip to content

Commit 9a8a6b2

Browse files
committed
countdown change
1 parent 729103a commit 9a8a6b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dodgedemo/dodgedemo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function makeCross(pos) {
120120
// * Creates frame-independent transformation *
121121
countdown -= time.deltaTime;
122122
if (countdown <= 0) {
123-
countdown = Math.random() * 60;
123+
countdown = Math.random() * Math.random() * Math.random() * 120;
124124
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))));
125125
}
126126
player.x += time.deltaTime * 4.0 * (wasd[3].isDown - wasd[1].isDown);

0 commit comments

Comments
 (0)