Beispiel:
Code: Alles auswählen
self.walls.append([pos_wall + 5 * pos_brick, self.HEIGHT - 65,
pos_wall + 5 * pos_brick + 5, self.HEIGHT - 60, 0,
Ab damit in eine selbst erklärende Konstante!
btw:
Code: Alles auswählen
self.cannon = [(self.WIDTH/2 + x, self.HEIGHT - y) for x, y in [
- 10, 15,
10, 15,
10, 20,
8, 20,
4, 25,
1, 25,
1, 27,
- 1, 27,
- 1, 25,
- 4, 25,
- 9, 20,
- 10, 20]]