blob: d0847d6c2c101834f6ab73d9330f8f58c21476df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
--- a/monsterz.py
+++ b/monsterz.py
@@ -829,10 +829,10 @@
pass
else:
for x in range(4):
- for y, p in enumerate(alpha[x]):
- alpha[x][y] = p * x / 4
- for y, p in enumerate(alpha[406 - x - 1]):
- alpha[406 - x - 1][y] = p * x / 4
+ for y in range(len(alpha[x])):
+ alpha[x][y] = alpha[x][y] * x / 4
+ for y in range(len(alpha[406 - x - 1])):
+ alpha[406 - x - 1][y] = alpha[406 - x - 1][y] * x / 4
for col in alpha:
l = len(col)
for y in range(4):
@@ -1287,10 +1287,10 @@
pass
else:
for x in range(10):
- for y, p in enumerate(alpha[x]):
- alpha[x][y] = p * x / 12
- for y, p in enumerate(alpha[406 - x - 1]):
- alpha[406 - x - 1][y] = p * x / 12
+ for y in range(len(alpha[x])):
+ alpha[x][y] = alpha[x][y] * x / 12
+ for y in range(len(alpha[406 - x - 1])):
+ alpha[406 - x - 1][y] = alpha[406 - x - 1][y] * x / 12
del alpha
scroll.unlock()
system.blit(scroll, (13, 437))
|