PyGame Invalid Position For Blit

前端 未结 1 1838
忘掉有多难
忘掉有多难 2021-01-28 09:47

I am creating a small level designer in Python (using PyGame). The program is supposed to just let you place down an image, change between images, export to a PNG file, and exp

1条回答
  •  星月不相逢
    2021-01-28 10:32

    blits((source, dest, area), ...)) -> (Rect, ...) you are missing out the destination. Read here

    And if you are making use of coordinates then use square brackets [x-co,y-co] like this:

    block.blit(image,[0,0])
    

    0 讨论(0)
提交回复
热议问题