update method
This smoothly updates the camera for an amount of time dt
.
This should be called by the Game class during the update cycle.
Implementation
@override
void update(double dt) {
super.update(dt);
_updateLimits(canvasSize);
if (dt != 0 && gameRef.isLoaded == true) {
_followTarget(
dt,
sizeWindows: sizeMovementWindow,
);
}
}