Added one extra degree of randomness to the puzzle generation.

This commit is contained in:
Sakse Dalum 2012-08-12 21:16:02 +02:00
parent d192510814
commit 532bdb0f3c
1 changed files with 5 additions and 0 deletions

View File

@ -509,6 +509,11 @@ class Level1(level.Level):
self.objects.append( self.objects.append(
CompletionBlock(self, 64 * (door_x - 5 + i), 48 * 4, CompletionBlock(self, 64 * (door_x - 5 + i), 48 * 4,
self.solution[i], i + 1)) self.solution[i], i + 1))
else:
for i in range(3):
self.objects.append(
CompletionBlock(self, 64 * (door_x - 3 - i), 48 * 4,
self.solution[i], i + 1))
# DRAW THE BACKGROUND # DRAW THE BACKGROUND