Skip to content

Commit

Permalink
make wallnut spinning a bit more accurate
Browse files Browse the repository at this point in the history
Signed-off-by: ClaytonTDM <[email protected]>
  • Loading branch information
ClaytonTDM committed Oct 11, 2024
1 parent 1f96cc7 commit 61e082a
Show file tree
Hide file tree
Showing 16 changed files with 113 additions and 27 deletions.
111 changes: 110 additions & 1 deletion game/Custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,113 @@ td {

#dMini0 > table > tbody > tr:nth-child(2) td {
padding-top: 17px !important;
}
}
@keyframes wallnutSpin {
0% {
rotate: 0deg;
transform: translate(0px, 0px);
}
8.33% {
rotate: 25deg;
transform: translate(0px, -1px);
}
16.67% {
rotate: 55deg;
transform: translate(2px, 0px);
}
25% {
rotate: 90deg;
transform: translate(4px, 0px);
}
33.33% {
rotate: 120deg;
transform: translate(4px, 0px);
}
41.67% {
rotate: 150deg;
transform: translate(0px, 0px);
}
50% {
rotate: 180deg;
transform: translate(0px, 2px);
}
58.33% {
rotate: 210deg;
transform: translate(1px, 0px);
}
66.67% {
rotate: 235deg;
transform: translate(-2px, -2px);
}
75% {
rotate: 270deg;
transform: translate(-6px, 0px);
}
83.33% {
rotate: 305deg;
transform: translate(-3px, -1px);
}
91.67% {
rotate: 330deg;
transform: translate(-2px, -1px);
}
100% {
rotate: 360deg;
transform: translate(0px, 0px);
}
}

@keyframes hugeWallnutSpin {
0% {
rotate: 0deg;
transform: translate(0px, 0px);
}
8.33% {
rotate: 25deg;
transform: translate(-1px, -2px);
}
16.67% {
rotate: 55deg;
transform: translate(2px, 2px);
}
25% {
rotate: 90deg;
transform: translate(11px, 0px);
}
33.33% {
rotate: 120deg;
transform: translate(9px, -6px);
}
41.67% {
rotate: 150deg;
transform: translate(3px, -4px);
}
50% {
rotate: 180deg;
transform: translate(0px, 0px);
}
58.33% {
rotate: 210deg;
transform: translate(-1px, -2px);
}
66.67% {
rotate: 235deg;
transform: translate(-5px, -4px);
}
75% {
rotate: 270deg;
transform: translate(-11px, 0px);
}
83.33% {
rotate: 305deg;
transform: translate(-3px, 4px);
}
91.67% {
rotate: 330deg;
transform: translate(0px, 1px);
}
100% {
rotate: 360deg;
transform: translate(0px, 0px);
}
}
6 changes: 3 additions & 3 deletions game/js/CPlants.js
Original file line number Diff line number Diff line change
Expand Up @@ -4331,7 +4331,7 @@ BirthStyle: function (c, e, b, a) {
var d = $(c.id);
PlayAudio("bowling");
EditEle(d.childNodes[1], {
style: `animation: spin ${
style: `animation: wallnutSpin ${
0.75 * ($User.Visitor.TimeStep / 10)
}s linear infinite`,
});
Expand Down Expand Up @@ -4477,7 +4477,7 @@ BirthStyle: function (c, e, b, a) {
PrivateBirth: function (a) {
PlayAudio("bowling");
EditEle($(a.id).childNodes[1], {
style: `animation: spin ${
style: `animation: hugeWallnutSpin ${
1.25 * ($User.Visitor.TimeStep / 10)
}s linear infinite`,
});
Expand Down Expand Up @@ -4522,7 +4522,7 @@ BirthStyle: function (c, e, b, a) {
PrivateBirth: function (a) {
PlayAudio("bowling");
EditEle($(a.id).childNodes[1], {
style: `animation: spin ${
style: `animation: wallnutSpin ${
0.75 * ($User.Visitor.TimeStep / 10)
}s linear infinite`,
});
Expand Down
23 changes: 0 additions & 23 deletions wallnutTest.html

This file was deleted.

Binary file removed wallnuts/blehh rol0001.jpg
Binary file not shown.
Binary file removed wallnuts/blehh rol0002.jpg
Binary file not shown.
Binary file removed wallnuts/blehh rol0003.jpg
Binary file not shown.
Binary file removed wallnuts/blehh rol0004.jpg
Binary file not shown.
Binary file removed wallnuts/blehh rol0005.jpg
Binary file not shown.
Binary file removed wallnuts/blehh rol0006.jpg
Binary file not shown.
Binary file removed wallnuts/blehh rol0007.jpg
Binary file not shown.
Binary file removed wallnuts/blehh rol0008.jpg
Binary file not shown.
Binary file removed wallnuts/blehh rol0009.jpg
Binary file not shown.
Binary file removed wallnuts/blehh rol0010.jpg
Binary file not shown.
Binary file removed wallnuts/blehh rol0011.jpg
Binary file not shown.
Binary file removed wallnuts/blehh rol0012.jpg
Binary file not shown.
Binary file removed wallnuts/blehh rol0013.jpg
Binary file not shown.

0 comments on commit 61e082a

Please sign in to comment.