Skip to content

Commit

Permalink
Added fix to other animations
Browse files Browse the repository at this point in the history
  • Loading branch information
motorlatitude committed Mar 27, 2020
1 parent a10f053 commit ef4a5f2
Show file tree
Hide file tree
Showing 20 changed files with 59 additions and 60 deletions.
6 changes: 3 additions & 3 deletions pack_1/abstract_ring/abstract_ring.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 41]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/abstract_ring_alt/abstract_ring_alt.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 76]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/alienware/alienware.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 3) % 24]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/angular/angular.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 30]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/angular_alt/angular_alt.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 61]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
7 changes: 3 additions & 4 deletions pack_1/black_hud/black_hud.script
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ 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 ()
{
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 164]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/blockchain/blockchain.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 68]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/circle/circle.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 101]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/circle_alt/circle_alt.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 48]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/circle_flow/circle_flow.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 72]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/circle_hud/circle_hud.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 156]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/circuit/circuit.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 96]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/colorful/colorful.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 375]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/colorful_loop/colorful_loop.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 89]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/colorful_sliced/colorful_sliced.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 120]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/connect/connect.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 120]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/cross_hud/cross_hud.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 210]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
6 changes: 3 additions & 3 deletions pack_1/cubes/cubes.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 81]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);
4 changes: 2 additions & 2 deletions pack_1/cuts/cuts.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 3 additions & 3 deletions template/template.script
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / SPEED) % NUM]);
progress++;
}

Plymouth.SetRefreshFunction (refresh_callback);

0 comments on commit ef4a5f2

Please sign in to comment.