BlueGit

timfa frameworkv3

small logics change

timfa wsadhelios · pushed by timfa

Authored 2022-10-17 · 4 years ago

Hash
b60063cabdecc630542c157b9ceee25af2bbbfb4
Parent
26b77bad
1 file changed +3 −4
framework/engine/objectComponents/renderer.js +3 −4
@@ -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 Renderer
103 {
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 else
109
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 Renderer
114 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)