Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add nativeAngle to constructors where it makes sense #3197

Merged
merged 1 commit into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class SpriteAnimationComponent extends PositionComponent
Vector2? size,
Vector2? scale,
double? angle,
double nativeAngle = 0,
Anchor? anchor,
Iterable<Component>? children,
int? priority,
Expand All @@ -90,6 +91,7 @@ class SpriteAnimationComponent extends PositionComponent
size: size,
scale: scale,
angle: angle,
nativeAngle: nativeAngle,
anchor: anchor,
children: children,
priority: priority,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class SpriteAnimationGroupComponent<T> extends PositionComponent
Vector2? size,
Vector2? scale,
double? angle,
double nativeAngle = 0,
Anchor? anchor,
int? priority,
ComponentKey? key,
Expand All @@ -124,6 +125,7 @@ class SpriteAnimationGroupComponent<T> extends PositionComponent
scale: scale,
angle: angle,
anchor: anchor,
nativeAngle: nativeAngle,
priority: priority,
key: key,
);
Expand Down
2 changes: 2 additions & 0 deletions packages/flame/lib/src/components/sprite_component.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class SpriteComponent extends PositionComponent
Vector2? size,
Vector2? scale,
double? angle,
double nativeAngle = 0,
Anchor? anchor,
Iterable<Component>? children,
int? priority,
Expand All @@ -77,6 +78,7 @@ class SpriteComponent extends PositionComponent
size: size,
scale: scale,
angle: angle,
nativeAngle: nativeAngle,
anchor: anchor,
children: children,
priority: priority,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class SpriteFusionTilemapComponent extends PositionComponent {
Vector2? position,
Vector2? scale,
double? angle,
double? nativeAngle,
double nativeAngle = 0,
Anchor? anchor,
Iterable<Component>? children,
int? priority,
Expand All @@ -99,7 +99,7 @@ class SpriteFusionTilemapComponent extends PositionComponent {
position: position,
scale: scale,
angle: angle,
nativeAngle: nativeAngle ?? 0,
nativeAngle: nativeAngle,
anchor: anchor,
children: children,
priority: priority,
Expand Down
Loading