Skip to content

Commit

Permalink
Made the cat sleep before running
Browse files Browse the repository at this point in the history
  • Loading branch information
OIRNOIR committed Feb 25, 2023
1 parent e2632fc commit 69c0b2b
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 184 deletions.
20 changes: 10 additions & 10 deletions generate-run-keyframes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,9 @@

let lines = [];

for (let i = 0; i < 120; i++) {
const startingPercentage = i == 0 ? 0 : ((i * 50) / 120 + 0.0001).toFixed(4);
const endingPercentage = (((i + 1) * 50) / 120).toFixed(4);
lines.push(` ${startingPercentage}%, ${endingPercentage}% {`);
lines.push(` background-position: -128px -${(i % 4) * 32}px;`);
lines.push(" }");
}

for (let i = 0; i < 15; i++) {
const startingPercentage = ((i * 50) / 15 + 50.0001).toFixed(4);
const endingPercentage = (((i + 1) * 50) / 15 + 50).toFixed(4);
const startingPercentage = i == 0 ? 0 : ((i * 50) / 15 + 0.0001).toFixed(4);
const endingPercentage = (((i + 1) * 50) / 15).toFixed(4);
lines.push(` ${startingPercentage}%, ${endingPercentage}% {`);
if (i < 2) {
lines.push(` background-position: -96px -${(i % 2) * 32 + 64}px;`);
Expand All @@ -24,4 +16,12 @@ for (let i = 0; i < 15; i++) {
lines.push(" }");
}

for (let i = 0; i < 120; i++) {
const startingPercentage = ((i * 50) / 120 + 50.0001).toFixed(4);
const endingPercentage = (((i + 1) * 50) / 120 + 50).toFixed(4);
lines.push(` ${startingPercentage}%, ${endingPercentage}% {`);
lines.push(` background-position: -128px -${(i % 4) * 32}px;`);
lines.push(" }");
}

console.log(lines.join("\n"));
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"discordID": "720842469024989195",
"github": "oirnoir"
},
"version": "1.0.2",
"version": "1.0.3",
"updater": {
"type": "github",
"id": "oirnoir/oneko-animation"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oneko-animation",
"version": "1.0.2",
"version": "1.0.3",
"description": "Oneko living on your message bar",
"engines": {
"node": ">=14.0.0"
Expand Down
Loading

0 comments on commit 69c0b2b

Please sign in to comment.