From d30b491ba71d3518b1bc09880931f48d4acced8e Mon Sep 17 00:00:00 2001 From: James Campbell Date: Sun, 26 Jul 2026 19:04:54 -0400 Subject: [PATCH] Fix placement of left/right spikes --- game/traps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}