Browse Source

breakout: changed level-design

Signed-off-by: Thomas Buck <thomas@venom.fritz.box>
Jannis 9 months ago
parent
commit
43d0b92700
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      breakout.py

+ 5
- 4
breakout.py View File

@@ -56,10 +56,11 @@ class Breakout:
56 56
 
57 57
         self.data = [[self.bg_c for y in range(self.gui.height)] for x in range(self.gui.width)]
58 58
 
59
-        for x in range(self.gui.width - 2):
60
-            for y in range(5):
61
-                self.data[x + 1][y] = self.fg_c
62
-        self.maxScore = 5 * (self.gui.width - 2)
59
+        self.maxScore = 0
60
+        for x in range(5,self.gui.width - 5):
61
+            for y in range(5,10):
62
+                self.data[x][y] = self.fg_c
63
+                self.maxScore += 1
63 64
 
64 65
         # TODO easy mode
65 66
         self.nothing_to_lose = False

Loading…
Cancel
Save