Skip to content

Commit

Permalink
gun hit more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
OyeMad committed Apr 9, 2023
1 parent 7e802b2 commit 635b0e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions game/duck.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ def isShot(self, pos):
x2, y2 = pos
frameX, frameY = FRAME_SIZE

frameX = frameX - (frameX/3)
frameY = frameY - (frameY/3)

# If the duck is already dead or flying off, they can't be shot
if self.flyOff or self.isDead:
return False
Expand Down

0 comments on commit 635b0e0

Please sign in to comment.