]> Skullheadx's Git Forge - Pygame-Jam.git/commitdiff
boss fight not debug anymore
authorSkullheadx <704277@pdsb.net>
Wed, 13 Jul 2022 19:25:31 +0000 (15:25 -0400)
committerSkullheadx <704277@pdsb.net>
Wed, 13 Jul 2022 19:25:31 +0000 (15:25 -0400)
Enemy.py
Game.py

index 393933eb36ed1c4d162869816927fafd660f730a..fc6ca0b3782d8d0ae7c44cfb3adfa5743b422f4a 100644 (file)
--- a/Enemy.py
+++ b/Enemy.py
@@ -148,8 +148,8 @@ class Skeleton(Actor):
         self.direction = -1
         self.prev_direction = self.direction
 
-        self.health = 75
-        self.health = 0 # for debugging without getting killed
+        self.health = 75
+        self.health = 0 # for debugging without getting killed
 
         self.weapon = Sword(self.position, (0, 0), self.width, -1)
 
@@ -256,7 +256,7 @@ class King(Actor):
         self.direction = -1
         self.prev_direction = self.direction
 
-        self.health = 1 # for debugging without getting killed
+        self.health = 1000 # for debugging without getting killed
 
         self.weapon = Lightning(self.position, (-125 - self.width/2,0), self.width, -1)
         self.buffer = []
diff --git a/Game.py b/Game.py
index c94f936f12e45700f5b288129bf4c84787c5b726..2a1f81f59c28d71e352647f04fb6feb5aa3ffc09 100644 (file)
--- a/Game.py
+++ b/Game.py
@@ -258,12 +258,10 @@ class Game:
         if self.king is not None and isinstance(self.king, PhysicsBody):
             self.Transition.update()
             self.Transition.draw(surf, self.player.position, self.portal_position)
-            print('a')
             if(self.portal_position[1] < 3150):
                 lst = list(self.portal_position)
-                lst[1] += 2
+                lst[1] += 10
                 self.portal_position = tuple(lst)
-                print('b')
                 # print(get_camera_offset(), getWorldCoords(0, 0))
         
         if (self.player.position[1] > 10000):