我有一个问题:
screen.blit(tile, [(x*tilewidth) - CAMERA.x +(WIDTH/2) , (y*tileheight) - CAMERA.y + (HEIGHT/2)])
screen.blit(object.image, [object.x - CAMERA.x +(WIDTH/2), object.y - CAMERA.y + (HEIGHT/2)])
上面的代码会产生错误:
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(tile, [(x*tilewidth) - CAMERA.x +(WIDTH/2) , (y*tileheight) - CAMERA.y + (HEIGHT/2)])
程序启动但随后由于错误而崩溃。我该如何解决?