1

I keep get this 'warning':

DeprecationWarning: an integer is required (got type float).  
  Implicit conversion to integers using __int__ is deprecated, 
  and may be removed in a future version of Python.
screen.blit(enemyImg[u], (x, y))

This is where I suspect the error comes from:

def isCollision(eX, eY, bX, bY):
    distance = math.sqrt(math.pow(int(eX) - int(bX), 2) + math.pow(int(eY) - int(bY), 2))
    if distance < 27:
        return True
    else:
        return False
martineau
  • 119,623
  • 25
  • 170
  • 301

0 Answers0