【发布时间】:2015-01-06 00:04:36
【问题描述】:
我在 Python 中使用 pygame 库进行编程。我想知道如何制作一个矩形变量,例如:
import ...
rect1 = #RECT VARIABLE
rect2 = #RECT VARIABLE
【问题讨论】:
-
一个 PyGame 矩形?
rect1 == pygame.Rect(x, y, w, h)。看到这个:pygame.org/docs/ref/rect.html -
import pygame、rect1 = pygame.Rect(left, top, width, height)等 -- RTFM。 -
但是当你blit rect时你会怎么做?
标签: python python-2.7 variables pygame rect