- Code: Select all
def MakeGrid(X, width=640, height=480):
x, y = X
count = 0, 0
Grid = []
amount = Width / x, Height / y
for i in range(amount[0]):
for o in range(amount[1]):
Grid.append(pygame.Surface((i*x, o*y)))
return Grid
def MakeGrid(X, width=640, height=480):
x, y = X
count = 0, 0
Grid = []
amount = Width / x, Height / y
for i in range(amount[0]):
for o in range(amount[1]):
Grid.append(pygame.Surface((i*x, o*y)))
return Grid
x,y = X
x,y = X,X
x = X
y = X
x = y = X
>>> X = (1,2)
>>> x,y=X
>>> x
1
>>> y
2
Users browsing this forum: Google [Bot], Yahoo [Bot] and 7 guests