pacman.js 277 B

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