本文整理匯總了TypeScript中graphics/Animation.update函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript update函數的具體用法?TypeScript update怎麽用?TypeScript update使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了update函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: advanceTime
public advanceTime() {
// First advance and drop the trail.
if (!this.bomb_.isMine() && Labs.BOMB_TRAILS) {
let animation = this.game_.getResourceManager().getSpriteSheet('bombTrails').getAnimation(this.bomb_.getLevel());
new Effect(this.game_, animation, this.bomb_.getPosition(), Vector.ZERO, Layer.TRAILS);
}
this.animation_.update();
this.bouncingAnimation_.update();
}
示例2: advanceTime
public advanceTime() {
this.animation_.update();
this.position_ = this.position_.add(this.velocity_);
if (!this.animation_.isRunning()) {
this.invalidate();
}
}
示例3: advanceTime
public advanceTime() {
this.animation_.update();
if (!this.animation_.isRunning()) {
this.invalidate();
}
}
示例4: advanceTime
public advanceTime() {
this.activeAnimation_.update();
this.inactiveAnimation_.update();
}
示例5: advanceTime
public advanceTime() {
this.animation_.update();
this.bouncingAnimation_.update();
}