Skip to content

Commit

Permalink
hide matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
renancaraujo committed Dec 14, 2024
1 parent 298a781 commit efccd8a
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:flame/camera.dart';
import 'package:flame/components.dart';
import 'package:flame/events.dart';
import 'package:flame/extensions.dart' show OffsetExtension;
import 'package:flame/extensions_matrix4.dart';
import 'package:flame/game.dart';
import 'package:flame/geometry.dart';
import 'package:flame/input.dart';
Expand Down
1 change: 1 addition & 0 deletions packages/flame/lib/src/components/mixins/snapshot.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:typed_data';
import 'dart:ui';

import 'package:flame/components.dart';
import 'package:vector_math/vector_math.dart';

/// A mixin that enables caching a component and all its children. If
/// [renderSnapshot] is set to `true`, the component and its children will be
Expand Down
1 change: 1 addition & 0 deletions packages/flame/lib/src/components/position_component.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import 'package:flame/src/game/notifying_vector2.dart';
import 'package:flame/src/game/transform2d.dart';
import 'package:flame/src/rendering/decorator.dart';
import 'package:flame/src/rendering/transform2d_decorator.dart';
import 'package:vector_math/vector_math.dart';

/// A [Component] implementation that represents an object that can be
/// freely moved around the screen, rotated, and scaled.
Expand Down
5 changes: 2 additions & 3 deletions packages/flame/lib/src/extensions/vector2.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import 'dart:math';
import 'dart:ui';

import 'package:vector_math/vector_math.dart';

export 'package:vector_math/vector_math.dart' hide Colors;
import 'package:vector_math/vector_math.dart' hide Colors, Matrix4;
export 'package:vector_math/vector_math.dart' hide Colors, Matrix4;

extension Vector2Extension on Vector2 {
/// This is a reusable vector that can be used within the [Vector2Extension]
Expand Down
1 change: 1 addition & 0 deletions packages/flame/lib/src/sprite_batch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:flame/extensions.dart';
import 'package:flame/flame.dart';
import 'package:flame/game.dart';
import 'package:meta/meta.dart';
import 'package:vector_math/vector_math.dart';

extension SpriteBatchExtension on Game {
/// Utility method to load and cache the image for a [SpriteBatch] based on
Expand Down
1 change: 1 addition & 0 deletions packages/flame/test/components/mixins/snapshot_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:flame/extensions.dart';
import 'package:flame/game.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:vector_math/vector_math.dart';

void main() {
group(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:flame/game.dart';
import 'package:flame/geometry.dart';
import 'package:flame_test/flame_test.dart';
import 'package:test/test.dart';
import 'package:vector_math/vector_math.dart';

void main() {
group('PositionComponent', () {
Expand Down
1 change: 1 addition & 0 deletions packages/flame/test/extensions/rect_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:flame/geometry.dart';
import 'package:flame_test/flame_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:test/test.dart';
import 'package:vector_math/vector_math.dart';

void main() {
group('RectExtension', () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:flame/components.dart' show Component;
import 'package:flame/components.dart';
import 'package:flame_studio/src/core/component_tree.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
Expand Down

0 comments on commit efccd8a

Please sign in to comment.