File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,15 @@ function addInstructions() {
31
31
}
32
32
33
33
function openInstructions ( ) {
34
- addInstructions ( ) ;
35
34
gameInstructions . style . display = "block" ;
36
35
}
37
36
38
37
function closeInstructions ( ) {
39
38
gameInstructions . style . display = "none" ;
40
39
}
41
40
41
+ addInstructions ( ) ;
42
+
42
43
// AMBIENCE
43
44
let backgroundMusic = new Audio ( "./sounds/music.mp3" ) ;
44
45
backgroundMusic . loop = true ;
@@ -69,7 +70,6 @@ function createCloud() {
69
70
const cloudDetail = getRandomCloud ( ) ;
70
71
const cloudStyle = cloudDetail . name ;
71
72
const cloudWidth = cloudDetail . width ;
72
- console . log ( cloudWidth ) ;
73
73
74
74
newCloud . classList . add ( "cloud" , cloudStyle ) ;
75
75
ambience . appendChild ( newCloud ) ;
@@ -97,7 +97,7 @@ let cloudTimeOut;
97
97
function handleEnvironment ( ) {
98
98
if ( ! gameOver ) {
99
99
createCloud ( ) ;
100
- cloudTimeOut = setTimeout ( handleEnvironment , Math . random ( ) * 3000 ) ;
100
+ cloudTimeOut = setTimeout ( handleEnvironment , Math . random ( ) * 4000 ) ;
101
101
}
102
102
}
103
103
You can’t perform that action at this time.
0 commit comments