Merge pull request #5 from motorlatitude/animation-center-fix
Animation Center Fixed
This commit is contained in:
commit
a7aae7d6d6
21 changed files with 62 additions and 63 deletions
|
@ -12,8 +12,8 @@ for (i = 0; i < 41; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 41]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 76; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 76]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 24; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 3) % 24]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 30; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 30]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 61; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 61]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,9 +12,8 @@ for (i = 0; i < 164; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
progress = 0;
|
||||
|
||||
fun refresh_callback ()
|
||||
|
@ -22,5 +21,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 164]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 68; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 68]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 101; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 101]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 48; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 48]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 72; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 72]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 156; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 156]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 96; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 96]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 375; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 375]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 89; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 89]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 120; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 120]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 120; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 120]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 210; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 210]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 81; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 81]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 62; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < 41; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 41]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
|
@ -12,8 +12,8 @@ for (i = 0; i < NUM; i++)
|
|||
flyingman_sprite = Sprite();
|
||||
|
||||
# set image position
|
||||
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
|
||||
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
|
||||
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
|
||||
|
||||
progress = 0;
|
||||
|
||||
|
@ -22,5 +22,5 @@ fun refresh_callback ()
|
|||
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / SPEED) % NUM]);
|
||||
progress++;
|
||||
}
|
||||
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh_callback);
|
||||
|
|
Loading…
Reference in a new issue