Code cleanup

This commit is contained in:
James Campbell
2026-08-01 12:34:46 -04:00
parent f29d8c953c
commit a17a68a07e
4 changed files with 0 additions and 8 deletions

View File

@@ -42,7 +42,6 @@ class Player:
self.drop_through_timer = 0.0
self.was_jump_held = False
self.crushed = False
self.carry = (0.0, 0.0)
self._sync_rect()
def _sync_rect(self):
@@ -141,7 +140,6 @@ class Player:
def _ride_platforms(self):
# If standing on a moving platform, inherit its motion this frame.
self.carry = (0.0, 0.0)
for rect, dx, dy in self.level.carriers():
if (
abs(self.rect.bottom - rect.top) <= 3
@@ -151,7 +149,6 @@ class Player:
self.fx += dx
self.fy += dy
self._sync_rect()
self.carry = (dx, dy)
break
def _horizontal(self, dt, inp):