diff --git a/game/traps.py b/game/traps.py index 088746d..7e70900 100644 --- a/game/traps.py +++ b/game/traps.py @@ -374,8 +374,8 @@ class Spike(Trap): if dy == 1: # down (ceiling spike) return pygame.Rect(r.x, r.y, t, t // 2) if dx == -1: # left (from right wall pointing left) - return pygame.Rect(r.x, r.y, t // 2, t) - return pygame.Rect(r.x + t // 2, r.y, t // 2, t) # right + return pygame.Rect(r.x + t // 2, r.y, t // 2, t) + return pygame.Rect(r.x, r.y, t // 2, t) # right # CCW rotation to point the (up-facing) sprite the right way. _ANGLE = {"up": 0, "left": 90, "down": 180, "right": -90}