Skip to content

Commit

Permalink
ref: change bullet max y
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed May 31, 2024
1 parent 5590877 commit ff6703c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/flame/components/bullet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Bullet extends BodyComponent with ContactCallbacks {
@override
void update(double dt) {
super.update(dt);
if (body.position.y > (game as RicochlimeGame).player.bottomY) {
if (body.position.y > (game as RicochlimeGame).background.bottomOfIsland) {
removeFromParent();
}
}
Expand Down

0 comments on commit ff6703c

Please sign in to comment.