Skip to content

[Bug] Monster collision hitbox too wide on narrow lanes #26

Description

@alimaandev

Describe the bug\nWhen the monster is in an adjacent lane, the player collision sometimes triggers even though the player is visually in a different lane.\n\nTo Reproduce\n1. Start endless runner mode\n2. Stay in lane 0 while monster is in lane 1\n3. Observe occasional collision when monster is near\n\nExpected behavior\nCollision should only trigger when monster and player are in the same displayLane.\n\nPossible fix\nCheck displayLane in the collision logic in src/game/PixelRunner.tsx — ensure lane comparison uses the display lane, not the internal lane index.\n\nLabels: bug, gameplay

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions