Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
please help me to sound after the hammer hit the mouse , and After a score of more than 100, the mouse is faster and after a score of more than 300, the game will say game over thanks first.html
please help me to sound after the hammer hit the mouse , and
After a score of more than 100, the mouse is faster and after a score of more than 300, the game will say game over
thanks
first.html
point= 0
first.js
for(var i=1;i
$('section').append('
');
}
$('section div').append("
");
$('section div').append('
');
$('.mouse').hide();
var num
var index
var object;
setInterval(function(){
num=Math.ceil(Math.random()*2);
for(var i=1; i
index=Math.floor(Math.random()*16);
object=$('section div:nth-of-type('+(index+1)+') .mouse')
object.slideDown();
object.delay(2000).slideUp();
}
},1000);
$('body').mousedown(function(){
$('body').css({
cursor:'url("./image/cursor-down.png"), auto'
});
}).mouseup(function(){
$('body').css({
cursor:'url("./image/cursor.png") ,auto'
});
});
// score
var score=0;
$('.mouse').click(function(){
$(this).hide();
score+=10;
$(" point="+score+"").replaceAll('span');
$('#dazhong').append('');
setTimeout(function(){
$('#dazhong').empty();
},1000);
});