/** * Overridable method to provide custom time delta. */ protected float getTimeDelta() { return world.getDelta(); }
/** * Overridable method to provide custom time delta. */ protected float getTimeDelta() { return world.getDelta(); }
@Override protected boolean checkProcessing() { acc += world.getDelta(); if(acc >= interval) { acc -= interval; return true; } return false; }
/** * Overridable method to provide custom time delta. */ protected float getTimeDelta() { return world.getDelta(); }
/** * Overridable method to provide custom time delta. */ protected float getTimeDelta() { return world.getDelta(); }
@Override protected final boolean checkProcessing() { if(running) { acc += world.getDelta(); if(acc >= delay) { return true; } } return false; }
protected float getTimeDelta() { return world.getDelta(); }
protected float getTimeDelta() { return world.getDelta(); }
protected float getTimeDelta() { return world.getDelta(); }
protected float getTimeDelta() { return world.getDelta(); }
@Override protected final void process(Entity e) { Timer entityTimer = timerMap.get(e); entityTimer.update(world.getDelta()); }
@Override protected void process(int entityId) { State state = mState.get(entityId); state.addStateTime(world.getDelta()); }
@Override protected void process(int entityId) { Particle particle = mParticle.get(entityId); if (!particle.particleEffect.isComplete()) { particle.particleEffect.draw(batch, world.getDelta()); } else { world.delete(entityId); } }
@Override protected void process(int e) { final Physics physics = ym.get(e); final Pos pos = pm.get(e); // don't process frozen entities. if ( frozenm.has(e)) return; if ( physics.maxVelocity < Float.MAX_VALUE) clampVelocity(e, 0, physics.maxVelocity); pos.xy.x += physics.vx * world.getDelta(); pos.xy.y += physics.vy * world.getDelta(); if ( physics.vr != 0 && am.has(e)) { am.get(e).rotation += physics.vr * world.delta; } if (physics.friction != 0) { updateFudgeFriction(physics); } }
@Override protected void process(Entity e) { final Physics physics = ym.get(e); final Pos pos = pm.get(e); // don't process frozen entities. if ( frozenm.has(e)) return; if ( physics.maxVelocity < Float.MAX_VALUE) clampVelocity(e, 0, physics.maxVelocity); pos.x += physics.vx * world.getDelta(); pos.y += physics.vy * world.getDelta(); if ( physics.vr != 0 && am.has(e)) { am.get(e).rotation += physics.vr * world.delta; } if (physics.friction != 0) { updateFudgeFriction(physics); } }
@Override protected void process(int e) { final Physics physics = ym.get(e); final Pos pos = pm.get(e); // don't process frozen entities. if ( frozenm.has(e)) return; if ( physics.maxVelocity < Float.MAX_VALUE) clampVelocity(e, 0, physics.maxVelocity); pos.xy.x += physics.vx * world.getDelta(); pos.xy.y += physics.vy * world.getDelta(); if ( physics.vr != 0 && am.has(e)) { am.get(e).rotation += physics.vr * world.delta; } if (physics.friction != 0) { updateFudgeFriction(physics); } }
enemy.lifetime += world.getDelta();
bomb.countDown -= world.getDelta();
enemy.lifetime = 0; } else { enemy.lifetime += world.getDelta();
enemy.lifetime = 0; } else { enemy.lifetime += world.getDelta();