mirror of
https://github.com/Febbweiss/febbweiss.github.io.git
synced 2026-03-05 06:35:50 +00:00
Initial commit
This commit is contained in:
23
docs/extra/js/sis.js
Normal file
23
docs/extra/js/sis.js
Normal 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();
|
||||
}
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user