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) {
|
||||
|
||||
this.currentImageIndex = 0;
|
||||
|
||||
this.initialized = true;
|
||||
|
||||
console.log('key up initialized');
|
||||
}
|
||||
|
||||
if (data.code === 'KeyL') {
|
||||
|
||||
if (this.currentImageIndex === this.images.length) {
|
||||
this.currentImageIndex = 0;
|
||||
};
|
||||
|
||||
var attributeData = this.generateAttributeData(this.currentImageIndex, 128, 128);
|
||||
|
||||
this.currentImageIndex++;
|
||||
|
||||
this.startAnimation(attributeData);
|
||||
this.loadNext();
|
||||
}
|
||||
|
||||
//@ sourceURL=ccKeyUp.js
|
Loading…
Reference in New Issue