Skip to content

Rotating in the ground or another piece crashes everything #4

@KeeWolf

Description

@KeeWolf

I implemented rotating the active piece by pressing the up arrow.
It works as intended. I also implemented the piece moving away from the sides if there's not enough space for the rotation.

The problem comes in, when you rotate it into another piece, or the ground.
Momentarily, this case results in an endless loop due to the handling in InputManager.js line 49ff.

A way to differ between out of bounds to the sides and these two unhandled cases is needed.

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