small logics change
@@ -103,10 +103,10 @@ class Renderer
103
103
{
104
104
this.cycle.defaultIndex = defaultIndex;
105
105
this.cycle.cycleSpeed = cycleSpeed;
106
return;
106
107
}
107
}
108
else
109
{
108
}
109
110
110
this.cycle = {
111
111
label: label,
112
112
cycleArray: this.sprite.animationCycles[label],
@@ -114,7 +114,6 @@ class Renderer
114
114
current: defaultIndex,
115
115
cycleSpeed: cycleSpeed,
116
116
timer: 0};
117
}
118
117
}
119
118
120
119
setAnimationCycleSpeed(cycleSpeed)
@@ -103,10 +103,10 @@ class Renderer103
{103
{104
this.cycle.defaultIndex = defaultIndex;104
this.cycle.defaultIndex = defaultIndex;105
this.cycle.cycleSpeed = cycleSpeed;105
this.cycle.cycleSpeed = cycleSpeed;106
return;106
}107
}107
} 108
}108
else109
109
{110
this.cycle = {110
this.cycle = {111
label: label,111
label: label,112
cycleArray: this.sprite.animationCycles[label], 112
cycleArray: this.sprite.animationCycles[label], @@ -114,7 +114,6 @@ class Renderer114
current: defaultIndex, 114
current: defaultIndex, 115
cycleSpeed: cycleSpeed,115
cycleSpeed: cycleSpeed,116
timer: 0};116
timer: 0};117
}118
}117
}119
118
120
setAnimationCycleSpeed(cycleSpeed) 119
setAnimationCycleSpeed(cycleSpeed)