Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelBarbosatec committed Apr 22, 2024
1 parent 94478cc commit fc5f037
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/map/spritefusion/model/spritefucion_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class SpritefusionMap {
final double mapWidth;
final double mapHeight;
final List<SpritefusionMapLayer> layers;
String imgPath;
String imgPath;

SpritefusionMap({
required this.tileSize,
Expand All @@ -21,7 +21,7 @@ class SpritefusionMap {
'tileSize': tileSize,
'mapWidth': mapWidth,
'mapHeight': mapHeight,
'imgPath':imgPath,
'imgPath': imgPath,
'layers': layers.map((x) => x.toMap()).toList(),
};
}
Expand Down
1 change: 0 additions & 1 deletion lib/map/tiled/reader/tiled_asset_reader.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import 'package:bonfire/map/util/world_map_reader.dart';
import 'package:tiledjsonreader/map/tiled_map.dart';
import 'package:tiledjsonreader/tiledjsonreader.dart';
Expand Down
7 changes: 6 additions & 1 deletion lib/mixins/sensor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ mixin Sensor<T extends GameComponent> on GameComponent {
void update(double dt) {
super.update(dt);
if (componentIncontact != null && sensorEnabled) {
if (checkInterval(_sensorIntervalKey, _intervalCallback, dt)) {
if (checkInterval(
_sensorIntervalKey,
_intervalCallback,
dt,
firstCheckIsTrue: true,
)) {
onContact(componentIncontact! as T);
}
}
Expand Down

0 comments on commit fc5f037

Please sign in to comment.