Files
febbweiss.github.io/docs/extra/js/pacman.js
ECAILLE Fabrice (externe) 2e64cb961e Initial commit
2017-05-03 16:46:01 +02:00

12 lines
277 B
JavaScript

$(document).ready(function() {
$('#startBtn').on('click', function(event) {
for( var i = 1; i < 4; i++) {
$("#life" + i).css('opacity', '100');
$("#life" + i).show();
}
SCOREBOARD.score = Game.score = 0;
Game.level = -1;
Game.lives = 3;
Game.init();
});
});