Commit 06567371 authored by Viktor Lidholt's avatar Viktor Lidholt

Switches to named arguments in sprite constraints

parent b244a082
......@@ -20,7 +20,7 @@ double _dampenRotation(double src, double dst, double dampening) {
}
class ConstraintRotationToMovement extends Constraint {
ConstraintRotationToMovement([this.baseRotation = 0.0, this.dampening]);
ConstraintRotationToMovement({this.baseRotation: 0.0, this.dampening});
final double dampening;
final double baseRotation;
......@@ -44,7 +44,7 @@ class ConstraintRotationToMovement extends Constraint {
}
class ConstraintRotationToNode extends Constraint {
ConstraintRotationToNode(this.targetNode, [this.baseRotation, this.dampening]);
ConstraintRotationToNode(this.targetNode, {this.baseRotation: 0.0, this.dampening});
final Node targetNode;
final double baseRotation;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment