File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 33
33
< input
34
34
type ="range "
35
35
min ="400 "
36
- max ="10000 "
36
+ max ="5000 "
37
37
value ="400 "
38
38
step ="1 "
39
39
id ="opt-track-length "
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ const kFPS = 60;
30
30
// Frames per second we want to render
31
31
const framesPerSecond = 1000 / kFPS ;
32
32
// 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 ;
35
35
// 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 ;
37
37
// PX per frame to apply to the player is falling
38
38
const kGravity = ( 30 * 9.81 ) / kFPS ;
39
39
Original file line number Diff line number Diff line change 6
6
html {
7
7
--screen-size : 300px ;
8
8
--track-width : 300px ;
9
- --infinite-track-length : 10000 px ;
9
+ --infinite-track-length : 5000 px ;
10
10
--infinite-track-offset : 400px ;
11
11
--img-size : 40px ;
12
12
--bush-size : 20px ;
You can’t perform that action at this time.
0 commit comments