diff --git a/classes/gameobjects.py b/classes/gameobjects.py index 42c0b1f..eac7f37 100644 --- a/classes/gameobjects.py +++ b/classes/gameobjects.py @@ -111,7 +111,10 @@ def render(self): if self.texture: pygame.gfxdraw.textured_polygon(self.game.screen, self.points, self.texture, int(self.x), int(self.y)) else: - pygame.gfxdraw.filled_polygon(self.game.screen, self.points, self.color) + if self.color: + pygame.gfxdraw.filled_polygon(self.game.screen, self.points, self.color) + else: + pygame.gfxdraw.polygon(self.game.screen, self.points, (255, 255, 255)) else: font = pygame.font.Font(Font, self.game.width//40) diff --git a/gui/button.py b/gui/button.py index 1bb25df..7c45b54 100644 --- a/gui/button.py +++ b/gui/button.py @@ -168,7 +168,7 @@ def checkifclicked(self, mousepos): obj = gameobjects.ColoredGlass(self.game, [(mousepos[0] - 10, mousepos[1] - 50), (mousepos[0] + 10, mousepos[1] - 50), (mousepos[0] + 10, mousepos[1] + 50), (mousepos[0] - 10, mousepos[1] + 50)], (0, 255, 0), 0, 0.4, 1) elif self.number == 3: - obj = gameobjects.Prism(self.game, [(mousepos[0] - 50, mousepos[1]), (mousepos[0], mousepos[1] - 100), (mousepos[0] + 50, mousepos[1])], (0, 0, 255), 0, 0.4, 0.5) + obj = gameobjects.Prism(self.game, [(mousepos[0] - 50, mousepos[1]), (mousepos[0], mousepos[1] - 100), (mousepos[0] + 50, mousepos[1])], None, 0, 0.4, 0.5) elif self.number == 4: if classes.game.isDrawingModeOn == True: