File manager - Edit - /home/custbahd/public_html/cage/pacman/source/animations/Animation.js
Back
/** * The Animation Base Class */ class Animation { /** * The Animation Base constructor */ constructor() { this.time = 0; } /** * Increases the timer * @param {number} time */ incTimer(time) { this.time += time; } /** * Returns true if the animation hasn't ended * @return {boolean} */ isAnimating() { return this.endTime > this.time; } /** * Returns true if the game loop stops while the animation is running * @return {boolean} */ blocksGameLoop() { return this.blocksGame; } /** * Does the Animation * @param {number} time */ animate() { return undefined; } /** * Called when the animation ends */ onEnd() { if (this.canvas) { if (this.clearAll) { this.canvas.clear(); } else { this.canvas.clearSavedRects(); } } if (this.callback) { this.callback(); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 1.2 |
proxy
|
phpinfo
|
Settings