Skip to content

Commit

Permalink
improve bowling animations
Browse files Browse the repository at this point in the history
Signed-off-by: ClaytonTDM <[email protected]>
  • Loading branch information
ClaytonTDM committed Oct 9, 2024
1 parent 5e064c1 commit 6efeee8
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 3 deletions.
9 changes: 9 additions & 0 deletions game/Custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,12 @@ label {
#iSurfaceBackground .trophy:hover {
filter: brightness(1.1);
}

@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
Binary file modified game/images/Card/Plants/BoomWallNut.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified game/images/Plants/WallNut/1.webp
Binary file not shown.
Binary file added game/images/Plants/WallNut/BoomWallNut.webp
Binary file not shown.
Binary file removed game/images/Plants/WallNut/BoomWallNutRoll.webp
Binary file not shown.
Binary file removed game/images/Plants/WallNut/HugeWallNutRoll.webp
Binary file not shown.
18 changes: 15 additions & 3 deletions game/js/CPlants.js
Original file line number Diff line number Diff line change
Expand Up @@ -4294,7 +4294,7 @@ BirthStyle: function (c, e, b, a) {
PicArr: [
"images/Card/Plants/WallNut.png",
"images/Plants/WallNut/0.webp",
"images/Plants/WallNut/WallNutRoll.webp",
"images/Plants/WallNut/WallNut.webp",
],
AudioArr: ["bowling", "bowlingimpact", "bowlingimpact2"],
Produce: "",
Expand All @@ -4308,6 +4308,9 @@ BirthStyle: function (c, e, b, a) {
PrivateBirth: function (c) {
var d = $(c.id);
PlayAudio("bowling");
EditEle(d.childNodes[1], {
style: "animation: spin 0.75s linear infinite",
});
(function (z, y, q, r, p, x, e, g, b) {
var a = z.R,
l = z.C,
Expand Down Expand Up @@ -4445,10 +4448,13 @@ BirthStyle: function (c, e, b, a) {
PicArr: [
"images/Card/Plants/HugeWallNut.png",
"images/Plants/WallNut/2.webp",
"images/Plants/WallNut/HugeWallNutRoll.webp",
"images/Plants/WallNut/2.webp",
],
PrivateBirth: function (a) {
PlayAudio("bowling");
EditEle($(a.id).childNodes[1], {
style: "animation: spin 1.25s linear infinite",
});
(function (b, c, n, m, e, g) {
var d = oZ.getArZ(n, m, e),
f = d.length,
Expand Down Expand Up @@ -4483,12 +4489,15 @@ BirthStyle: function (c, e, b, a) {
PicArr: [
"images/Card/Plants/BoomWallNut.png",
"images/Plants/WallNut/1.webp",
"images/Plants/WallNut/BoomWallNutRoll.webp",
"images/Plants/WallNut/BoomWallNut.webp",
"images/Plants/CherryBomb/Boom.webp",
],
AudioArr: ["cherrybomb", "bowling"],
PrivateBirth: function (a) {
PlayAudio("bowling");
EditEle($(a.id).childNodes[1], {
style: "animation: spin 0.75s linear infinite",
});
(function (s, q, b, c, m) {
var v = s.R,
p = s.C,
Expand All @@ -4501,6 +4510,9 @@ BirthStyle: function (c, e, b, a) {
r = s.pixelLeft + 160,
e,
k;
EditEle($(a.id).childNodes[1], {
style: "",
});
PlayAudio("cherrybomb");
do {
k = (e = oZ.getArZ(u, r, j)).length;
Expand Down

0 comments on commit 6efeee8

Please sign in to comment.