Files
febbweiss.github.io/extra/js/pacman.js
2017-05-04 10:21:47 +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();
});
});