|
|
@ -1,14 +1,6 @@
|
|
|
|
// heavily based on the Quintus platformer example.
|
|
|
|
// heavily based on the Quintus platformer example.
|
|
|
|
// vim:tw=120:
|
|
|
|
// vim:tw=120:
|
|
|
|
|
|
|
|
|
|
|
|
// jQuery center() function. it centers things.
|
|
|
|
|
|
|
|
jQuery.fn.center = function () {
|
|
|
|
|
|
|
|
this.css("position", "absolute");
|
|
|
|
|
|
|
|
this.css("top", Math.max(0, (($(window).height() - $(this).outerHeight()) / 2) + $(window).scrollTop()) + "px");
|
|
|
|
|
|
|
|
this.css("left", Math.max(0, (($(window).width() - $(this).outerWidth()) / 2) + $(window).scrollLeft()) + "px");
|
|
|
|
|
|
|
|
return this;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.addEventListener("load",function() {
|
|
|
|
window.addEventListener("load",function() {
|
|
|
|
|
|
|
|
|
|
|
|
// Set up an instance of the Quintus engine and include
|
|
|
|
// Set up an instance of the Quintus engine and include
|
|
|
@ -57,7 +49,6 @@ Q.Sprite.extend("Player",{
|
|
|
|
rocket.animate({ x: 100, y: -500, angle: 360 });
|
|
|
|
rocket.animate({ x: 100, y: -500, angle: 360 });
|
|
|
|
|
|
|
|
|
|
|
|
this.destroy();
|
|
|
|
this.destroy();
|
|
|
|
$("#einladung").center();
|
|
|
|
|
|
|
|
$("#einladung").show("slow");
|
|
|
|
$("#einladung").show("slow");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|