CameraConfig class
Class use to configure camera behavior.
Constructors
- CameraConfig({bool moveOnlyMapArea = false, bool startFollowPlayer = true, double zoom = 1.0, double angle = 0.0, GameComponent? target, double speed = 5, InitialMapZoomFitEnum initialMapZoomFit = InitialMapZoomFitEnum.none, Vector2? initPosition, Vector2? movementWindow, Vector2? resolution})
Properties
- angle → double
-
Camera angle to rotate the camera. default: 0
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialMapZoomFit ↔ InitialMapZoomFitEnum
-
Automatic zoom with base some configurations.
getter/setter pair
- initPosition → Vector2?
-
final
- movementWindow ↔ Vector2
-
window in the center screen able to move without move camera
getter/setter pair
- moveOnlyMapArea ↔ bool
-
When this true the camera remains within the map area
getter/setter pair
- resolution → Vector2?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speed ↔ double
-
Camera's speed
getter/setter pair
- startFollowPlayer → bool
-
final
- target → GameComponent?
-
Component that the camera will focus on / follow
final
- zoom → double
-
camera zoom configurarion. default: 1
final
Methods
-
copyWith(
{Vector2? movementWindow, bool? moveOnlyMapArea, double? zoom, double? angle, GameComponent? target, double? speed, bool? startFollowPlayer, InitialMapZoomFitEnum? initialMapZoomFit, Vector2? initPosition, Vector2? resolution}) → CameraConfig -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- movementWindowDefault → Vector2
-
final