@ -24,6 +24,7 @@
< img id = "ned" src = "imgs/canteen/ned1.gif" height = "120px" >
< img id = "ned" src = "imgs/canteen/ned1.gif" height = "120px" >
< img id = "ned_flame" src = "imgs/canteen/fire_ned.gif" height = "120px" style = "display: none;" >
< img id = "table" src = "imgs/canteen/table1.gif" height = "110px" >
< img id = "table" src = "imgs/canteen/table1.gif" height = "110px" >
< img id = "column" src = "imgs/canteen/fire_5.gif" height = "130px" style = "display: none;" >
< img id = "column" src = "imgs/canteen/fire_5.gif" height = "130px" style = "display: none;" >
@ -54,15 +55,15 @@
<!-- baloons -->
<!-- baloons -->
< div class = "ned_bubble1" style = "display: none;" > < / div >
< div class = "ned_bubble1" style = "display: none;" > I think this is the end for me. Please, promise me that you are going to put an end to this! Children are endangered and you are now the only one who can save them! < / div >
< div class = "ned_bubble2" style = "display: none;" > < / div >
< div class = "ned_bubble2" style = "display: none;" > Follow the chemtrails whenever you'll find yourself in doubt. < / div >
< div class = " ned_bubble3 " style = "display: none;" > < / div >
< div class = " staff_bubble " style = "display: none;" > < / div >
<!-- bottom text -->
<!-- bottom text -->
< div class = "text_container" >
< div class = "text_container" >
< div class = "message1" >
< div class = "message1" >
You are now in the school canteen. The staff is there as well: the plan might get more complicated. < br >
You are now in the school canteen. The staff is there as well: your plan might be getting complicated. < br >
< span class = "instructions" > Click on the corn cobs on the table to take them with you.< / span >
< span class = "instructions" > Click on the corn cobs on the table to take them with you.< / span >
< / div >
< / div >
< div class = "message2 invert" style = "display: none;" >
< div class = "message2 invert" style = "display: none;" >
@ -120,90 +121,111 @@ var fluoride = 5;
--fluoride;
--fluoride;
console.log(fluoride);
console.log(fluoride);
weapon.hide();
weapon.hide();
$('.cobs_collected').html(fluoride);
duo.animate({top:'18%'}, 500, function() {
duo.animate({top:'18%'}, 500, function() {
weapon.delay(100).show().animate({ left: "30%" }, 150,function(){
weapon.show();
weapon.animate({ left: "30%" }, 150,function(){
$("#satan1").attr("src", "imgs/canteen/fire_once.gif");
$("#satan1").attr("src", "imgs/canteen/fire_once.gif");
//$("#satan1").detach().delay(500);
weapon.hide();
weapon.hide();
weapon.animate({ left: "11%" });
weapon.animate({ left: "11%" }, function(){
setTimeout(stop_game(), 6000);
});
});
});
});
});
$('.cobs_collected').html(fluoride);
hit_ned();
setTimeout(stop_game(), 3000);
});
});
$(".figure2").click (function(){
$(".figure2").click (function(){
--fluoride;
--fluoride;
console.log(fluoride);
console.log(fluoride);
weapon.hide();
weapon.hide();
$('.cobs_collected').html(fluoride);
duo.animate({top:'12%' }, 500, function() {
duo.animate({top:'12%' }, 500, function() {
weapon.delay(100).show().animate({ left: "60%" }, 150,function(){
weapon.show();
weapon.animate({ left: "60%" }, 150,function(){
$("#satan2").attr("src", "imgs/canteen/fire_once.gif");
$("#satan2").attr("src", "imgs/canteen/fire_once.gif");
weapon.hide();
weapon.hide();
weapon.animate({ left: "11%" });
weapon.animate({ left: "11%" }, function(){
setTimeout(stop_game(), 6000);
});
});
});
});
});
$('.cobs_collected').html(fluoride);
hit_ned();
setTimeout(stop_game(), 3000);
});
});
$(".figure3").click (function(){
$(".figure3").click (function(){
--fluoride;
--fluoride;
console.log(fluoride);
console.log(fluoride);
$('.cobs_collected').html(fluoride);
duo.animate({top:'22%'}, 500, function() {
duo.animate({top:'22%'}, 500, function() {
weapon.delay(100).show().animate({ left: "80%" }, 150,function(){
weapon.show();
weapon.animate({ left: "80%" }, 150,function(){
$("#satan3").attr("src", "imgs/canteen/fire_once.gif");
$("#satan3").attr("src", "imgs/canteen/fire_once.gif");
weapon.hide();
weapon.hide();
weapon.animate({ left: "11%" });
weapon.animate({ left: "11%" }, function(){
setTimeout(stop_game(), 6000);
});
});
});
});
});
$('.cobs_collected').html(fluoride);
hit_ned();
setTimeout(stop_game(), 3000);
});
});
$(".figure4").click (function(){
$(".figure4").click (function(){
--fluoride;
--fluoride;
console.log(fluoride);
console.log(fluoride);
$('.cobs_collected').html(fluoride);
duo.animate({top:'50%'}, 500, function() {
duo.animate({top:'50%'}, 500, function() {
weapon.delay(100).show().animate({ left: "46%" }, 150,function(){
weapon.show();
weapon.animate({ left: "46%" }, 150,function(){
$("#satan4").attr("src", "imgs/canteen/fire_once.gif");
$("#satan4").attr("src", "imgs/canteen/fire_once.gif");
weapon.hide();
weapon.hide();
weapon.animate({ left: "11%" });
weapon.animate({ left: "11%" }, function(){
setTimeout(stop_game(), 6000);
});
});
});
});
});
$('.cobs_collected').html(fluoride);
hit_ned();
setTimeout(stop_game(), 3000);
});
});
$(".figure5").click (function(){
$(".figure5").click (function(){
--fluoride;
--fluoride;
console.log(fluoride);
console.log(fluoride);
$('.cobs_collected').html(fluoride);
duo.animate({top:'40%'}, 500, function() {
duo.animate({top:'40%'}, 500, function() {
weapon.delay(100).show().animate({ left: "80%" }, 150,function(){
weapon.show();
weapon.animate({ left: "80%" }, 150,function(){
$("#satan5").attr("src", "imgs/canteen/fire_once.gif");
$("#satan5").attr("src", "imgs/canteen/fire_once.gif");
weapon.hide();
weapon.hide();
weapon.animate({ left: "11%" });
weapon.animate({ left: "11%" }, {step: function(){
setTimeout(stop_game(), 6000);
}
});
});
});
});
});
$('.cobs_collected').html(fluoride);
hit_ned();
setTimeout(stop_game(), 3000);
});
});
function hit_ned() {
if (fluoride == 3) {
$("#ned_flame").show();
//$("#ned_flame").delay(1000).hide();
$("#ned").attr("src", "imgs/canteen/ned_wounded.gif");
}
};
var figures_all = $(".figure1, .figure2, .figure3, .figure4, .figure5");
var figures_all = $(".figure1, .figure2, .figure3, .figure4, .figure5");
function stop_game() {
function stop_game() {
if (fluoride == 0) {
if (fluoride == 0) {
figures_all.detach();
figures_all.detach();
$("#column").hide();
console.log("hei");
console.log("hei");
setTimeout($(".invert").removeClass("invert_style"), 3000);
$(".message2").hide();
$(".message3").show();
//setTimeout(avatar.animate ({top:"50%"}), 2000);
};
};
};
};
< / script >
< / script >