Reduce initial wait time for magic
This commit is contained in:
parent
c2a95a3bc0
commit
2d018eadf0
@ -160,7 +160,7 @@ window.onload = function () {
|
|||||||
AnimationFrame.shim();
|
AnimationFrame.shim();
|
||||||
var animationFrame = new AnimationFrame(30),
|
var animationFrame = new AnimationFrame(30),
|
||||||
timeCounter = 0,
|
timeCounter = 0,
|
||||||
waitTime = 80,
|
waitTime = 50,
|
||||||
lastCast = 0,
|
lastCast = 0,
|
||||||
color,
|
color,
|
||||||
gradient;
|
gradient;
|
||||||
@ -177,14 +177,14 @@ window.onload = function () {
|
|||||||
|
|
||||||
// if enough time has passed, cast another spell to draw
|
// if enough time has passed, cast another spell to draw
|
||||||
if (waitTime <= 500 && (timeCounter - lastCast) >= waitTime) {
|
if (waitTime <= 500 && (timeCounter - lastCast) >= waitTime) {
|
||||||
if (waitTime === 80) {
|
if (waitTime === 50) {
|
||||||
waitTime = 125;
|
waitTime = 100;
|
||||||
} else {
|
} else {
|
||||||
waitTime = waitTime * 1.1;
|
waitTime = waitTime * 1.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
lastCast = timeCounter;
|
lastCast = timeCounter;
|
||||||
if (waitTime === 125) {
|
if (waitTime === 100) {
|
||||||
cast(5, 5, 270); // start position
|
cast(5, 5, 270); // start position
|
||||||
} else {
|
} else {
|
||||||
cast(undefined, undefined, undefined); // random spell position
|
cast(undefined, undefined, undefined); // random spell position
|
||||||
|
Loading…
Reference in New Issue
Block a user