forked from nyancrimew/maia.crimew.gay
oneko: dont start running until mouse moves
This commit is contained in:
parent
a6dc3add3f
commit
66720f42bc
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,8 @@ function oneko() {
|
||||||
const nekoEl = document.createElement("div");
|
const nekoEl = document.createElement("div");
|
||||||
let nekoPosX = getRandomInt(32, window.innerWidth - 63);
|
let nekoPosX = getRandomInt(32, window.innerWidth - 63);
|
||||||
let nekoPosY = getRandomInt(32, window.innerHeight - 63);
|
let nekoPosY = getRandomInt(32, window.innerHeight - 63);
|
||||||
let mousePosX = window.innerWidth / 2;
|
let mousePosX = nekoPosX - 32;
|
||||||
let mousePosY = window.innerHeight / 2;
|
let mousePosY = nekoPosY - 32;
|
||||||
let frameCount = 0;
|
let frameCount = 0;
|
||||||
let idleTime = 0;
|
let idleTime = 0;
|
||||||
let idleAnimation = null;
|
let idleAnimation = null;
|
||||||
|
|
Loading…
Reference in a new issue