mirror of
https://github.com/Febbweiss/febbweiss.github.io.git
synced 2026-03-04 22:25:43 +00:00
Refactoring: manage generated static site
This commit is contained in:
12
extra/js/pacman.js
Normal file
12
extra/js/pacman.js
Normal file
@@ -0,0 +1,12 @@
|
||||
$(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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user