Skip to content

Commit 32392bc

Browse files
committed
Decrease initial qubit rate.
1 parent 8b59113 commit 32392bc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/nodes/Player.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ type State = "pause" | "game";
2626

2727
const MAX_MULTIPLIER = 1 / 5;
2828

29-
const STEP_RATE = 500;
30-
const INPUT_POLL_RATE = 100;
29+
// Initial rate at which pieces fall
30+
const INITIAL_STEP_RATE = 750;
31+
// The rate at which to check if inputs are still pressed
32+
const INPUT_POLL_RATE = 120;
3133

3234
const rateMultiplier = 0.9;
3335
const levelCount = 16;
@@ -180,7 +182,7 @@ export default class Player extends GameNode {
180182
}
181183
if (this.time >= this.nextTime) {
182184
this.step();
183-
this.nextTime = this.time + STEP_RATE * this.rateMultiplier;
185+
this.nextTime = this.time + INITIAL_STEP_RATE * this.rateMultiplier;
184186
}
185187
this.time += time.deltaMS;
186188
};

0 commit comments

Comments
 (0)