fix
This commit is contained in:
parent
73cde97533
commit
b58552e905
@ -518,6 +518,8 @@ function newGame() {
|
|||||||
|
|
||||||
$('#loading').removeClass('active');
|
$('#loading').removeClass('active');
|
||||||
|
|
||||||
|
$("#player").css({ rotate: 0 });
|
||||||
|
|
||||||
var i = 0;
|
var i = 0;
|
||||||
setTimeout(function p() {
|
setTimeout(function p() {
|
||||||
if (!playing) return;
|
if (!playing) return;
|
||||||
@ -531,7 +533,7 @@ function newGame() {
|
|||||||
var playerbottom = $("#player").position().top + $("#player").width(); //we use width because he'll be rotated 90 deg
|
var playerbottom = $("#player").position().top + $("#player").width(); //we use width because he'll be rotated 90 deg
|
||||||
var floor = flyArea;
|
var floor = flyArea;
|
||||||
var movey = Math.max(0, floor - playerbottom);
|
var movey = Math.max(0, floor - playerbottom);
|
||||||
$("#player").transition({ y: movey + 'px', rotate: 90}, 1000, 'easeInOutCubic');
|
$("#player").transition({ top: movey + 'px', rotate: 90}, 1000, 'easeInOutCubic');
|
||||||
|
|
||||||
if(isIncompatible.any())
|
if(isIncompatible.any())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user