1. Radomir Dopieralski
  2. deevo

Commits

Radomir Dopieralski  committed 65e88f7 Draft

Longer level

  • Participants
  • Parent commits c302519
  • Branches default

Comments (0)

Files changed (1)

File deevo/__main__.py

View file
         SHEET[18].set_alpha(64)
         SHEET[19].set_alpha(64)
 
-    def new_level(self):
+    def new_level(self, stuff):
         global shadows
         global sprites
         global gunner
         shadows = pygame.sprite.RenderUpdates()
         gunner = Gunner()
         sprites.add(gunner)
-        self.level = iter(sorted([
-            (200, 100, Thing, 3),
-            (220, 150, Thing, 13),
-            (250, 250, Thing, 15),
-            (600, 280, Fridge),
-            (1200, 210, Thing, 15),
-            (1500, 200, Monster),
-            (1500, 400, Monster),
-            (2100, 300, Monster, 10, 14),
-        ]))
+        self.level = iter(sorted(stuff
+        ))
 
 
     def image(self, filename):
 game = Game()
 while True:
     game.image('intro.png')
-    game.new_level()
+    game.new_level([
+        (200, 100, Thing, 3),
+        (220, 150, Thing, 13),
+        (250, 250, Thing, 15),
+        (600, 280, Fridge),
+        (1200, 100, Thing, 15),
+        (1200, 210, Thing, 13),
+        (1220, 150, Thing, 13),
+        (1250, 250, Thing, 3),
+        (1500, 200, Monster),
+        (1500, 400, Monster),
+        (2100, 300, Monster, 10, 14, 30),
+        (2600, 280, Fridge, 10, 14, 30),
+        (2700, 120, Monster, 9, 7),
+        (2900, 210, Fridge, 10, 14, 30),
+        (3100, 350, Fridge, 9, 7),
+        (3100, 420, Monster, 9, 7),
+        (3200, 100, Thing, 13),
+        (3200, 210, Thing, 3),
+        (3220, 150, Thing, 15),
+        (3250, 250, Thing, 13),
+        (3400, 210, Thing, 13),
+        (3400, 150, Thing, 3),
+        (3400, 200, Monster, 10, 13, 20),
+        (3400, 300, Monster, 10, 13, 20),
+        (3400, 400, Monster),
+        (3500, 100, Fridge),
+        (3500, 200, Fridge),
+        (3500, 300, Fridge),
+        (3500, 400, Fridge),
+        (3500, 500, Fridge),
+        (3700, 280, Monster, 8, 7, 50),
+    ])
     game.main()