Skip to content

Commit

Permalink
muted start page
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Nov 10, 2014
1 parent 253b874 commit 61dac7c
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 944 deletions.
Binary file modified public/js/.main.js.swp
Binary file not shown.
22 changes: 18 additions & 4 deletions public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,22 @@ var kitty_jump = (function(){
if(previousGameState != currentGameState){
previousGameState = currentGameState;
$('#start').removeClass('invisible');
//bgSound.play();
bgSound.play();
}

if(keydown.m){
keydown.m = false;
currentGameState = 150;
}
},
"150" : function(){
if(previousGameState != currentGameState){
previousGameState = currentGameState;
bgSound.pause();
}
if(keydown.m){
keydown.m = false;
currentGameState = 100;
}
},
"200" : function(){
Expand Down Expand Up @@ -424,11 +438,11 @@ function setup(){
$('#start').addClass('visibile');

bgSound.volume = .80;
bgSound.addEventListener('ended', function() {
/* bgSound.addEventListener('ended', function() {
this.currentTime = 0;
this.play();
}, false);
bgSound.play();
}, false); */
// bgSound.play();
soundFx.volume = .38;
gameDead.volume = .50;

Expand Down
Loading

0 comments on commit 61dac7c

Please sign in to comment.