We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b59113 commit 32392bcCopy full SHA for 32392bc
src/nodes/Player.ts
@@ -26,8 +26,10 @@ type State = "pause" | "game";
26
27
const MAX_MULTIPLIER = 1 / 5;
28
29
-const STEP_RATE = 500;
30
-const INPUT_POLL_RATE = 100;
+// Initial rate at which pieces fall
+const INITIAL_STEP_RATE = 750;
31
+// The rate at which to check if inputs are still pressed
32
+const INPUT_POLL_RATE = 120;
33
34
const rateMultiplier = 0.9;
35
const levelCount = 16;
@@ -180,7 +182,7 @@ export default class Player extends GameNode {
180
182
}
181
183
if (this.time >= this.nextTime) {
184
this.step();
- this.nextTime = this.time + STEP_RATE * this.rateMultiplier;
185
+ this.nextTime = this.time + INITIAL_STEP_RATE * this.rateMultiplier;
186
187
this.time += time.deltaMS;
188
};
0 commit comments