MCPcopy Create free account
hub / github.com/melonjs/melonJS / getCurrentAnimationFrame

Method getCurrentAnimationFrame

packages/melonjs/src/renderable/sprite.js:684–686  ·  view source on GitHub ↗

* return the current animation frame index. * @returns {number} current animation frame index

()

Source from the content-addressed store, hash-verified

682 * @returns {number} current animation frame index
683 */
684 getCurrentAnimationFrame() {
685 return this._frameAnim.getCurrentAnimationFrame();
686 }
687
688 /**
689 * Returns the frame object by the index.

Callers 3

sprite3d.spec.jsFile · 0.45
sprite.spec.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected