Initial commit

This commit is contained in:
ECAILLE Fabrice (externe)
2017-05-03 16:46:01 +02:00
commit 2e64cb961e
117 changed files with 10765 additions and 0 deletions

12
docs/extra/js/pacman.js Normal file
View 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();
});
});

11
docs/extra/js/pyramid.js Normal file
View File

@@ -0,0 +1,11 @@
$(document).ready(function() {
$('#startBtn').on('click', function(event) {
for( var i = 0; i < 52; i++ ) {
Deck.cards[i] = i +1;
}
$('img[id^="card"]').remove();
$("#drawn").removeClass();
$("#stock").addClass("card").addClass("background");
Pyramid.init();
});
});

23
docs/extra/js/sis.js Normal file
View File

@@ -0,0 +1,23 @@
$(document).ready(function() {
$('#startBtn').on('click', function(event) {
Game.running = false;
Game.wave_index = -1;
Game.wave = undefined;
Game.aliens = [];
Game.ship = null;
Game.score = 0;
Game.shots = {
total : 0,
lost : 0
};
Game.init();
$.loadCallback(function(percent){
$("#loadingBar").width(400*percent);
});
$.playground().startGame(
function() {
$("#welcomeScreen").remove();
}
);
});
});

10
docs/extra/js/yahtzee.js Normal file
View File

@@ -0,0 +1,10 @@
$(document).ready(function() {
$('#startBtn').on('click', function(event) {
Yahtzee.clear(true);
Yahtzee.scoreUp = Yahtzee.scoreDown = 0;
$('span[id$="Score"]').html('&nbsp;');
$("#scorePanel").hide();
$("#launch").html(0);
$("#launchBtn").removeClass("disabled");
});
});