Skip to content

Commit c840d42

Browse files
committed
Making them slower
1 parent 1a5112c commit c840d42

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<input
3434
type="range"
3535
min="400"
36-
max="10000"
36+
max="5000"
3737
value="400"
3838
step="1"
3939
id="opt-track-length"

script.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ const kFPS = 60;
3030
// Frames per second we want to render
3131
const framesPerSecond = 1000 / kFPS;
3232
// PX per frame we want to advance when game is running in auto mode, minimum and maximum
33-
const kAutoMinAdvance = 0.5;
34-
const kAutoMaxAdvance = 8;
33+
const kAutoMinAdvance = 0.2;
34+
const kAutoMaxAdvance = 5;
3535
// Overshoot for the player to move along the X axis when game is running in auto mode
36-
const kXNoiseMax = 100;
36+
const kXNoiseMax = 30;
3737
// PX per frame to apply to the player is falling
3838
const kGravity = (30 * 9.81) / kFPS;
3939

style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
html {
77
--screen-size: 300px;
88
--track-width: 300px;
9-
--infinite-track-length: 10000px;
9+
--infinite-track-length: 5000px;
1010
--infinite-track-offset: 400px;
1111
--img-size: 40px;
1212
--bush-size: 20px;

0 commit comments

Comments
 (0)