Update: CC - Demo New - Key Up (ip0443a52d.js) 261 bytes modified
parent
54f114e64c
commit
a33eda71cf
|
@ -3,25 +3,12 @@ if (!this.entityLoaded) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.initialized) {
|
if (!this.initialized) {
|
||||||
|
|
||||||
this.currentImageIndex = 0;
|
|
||||||
|
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
|
|
||||||
console.log('key up initialized');
|
console.log('key up initialized');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.code === 'KeyL') {
|
if (data.code === 'KeyL') {
|
||||||
|
this.loadNext();
|
||||||
if (this.currentImageIndex === this.images.length) {
|
|
||||||
this.currentImageIndex = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
var attributeData = this.generateAttributeData(this.currentImageIndex, 128, 128);
|
|
||||||
|
|
||||||
this.currentImageIndex++;
|
|
||||||
|
|
||||||
this.startAnimation(attributeData);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//@ sourceURL=ccKeyUp.js
|
//@ sourceURL=ccKeyUp.js
|
Loading…
Reference in New Issue