awdog
This commit is contained in:
parent
73d8b73284
commit
b69ddea942
1 changed files with 5 additions and 1 deletions
|
@ -33,6 +33,10 @@
|
|||
color: #fff;
|
||||
}
|
||||
|
||||
#awdog {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* unvisited link */
|
||||
a:link {
|
||||
color: pink;
|
||||
|
@ -94,7 +98,7 @@
|
|||
let a = Math.random() * Math.PI * 2;
|
||||
awdog.style.transform = "translate(" + (Math.cos(a) * intensity) + "px, " + (Math.sin(a) * intensity) + "px)";
|
||||
if (intensity > 0) {
|
||||
intensity -= 10 * dt;
|
||||
intensity -= 20 * dt;
|
||||
} else {
|
||||
intensity = 0;
|
||||
}
|
||||
|
|
Reference in a new issue