Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
feat: flying enemies (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo authored Nov 2, 2023
1 parent 8d8a283 commit 1e715ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/game/entities/enemy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ class Enemy extends PhysicalEntity<DashRunGame> {
required this.sprite,
required this.tiledObject,
this.enemyDamage = 1,
}) : super(collisionType: CollisionType.standard);
}) : super(
collisionType: CollisionType.standard,
static: tiledObject.properties.byName['Fly']?.value as bool? ?? false,
);

final int enemyDamage;
late final Sprite sprite;
Expand Down

0 comments on commit 1e715ff

Please sign in to comment.