thacuber2a03 / BlockDate

A random tetrimino game made for the Playdate console.
124 stars 11 forks source link

Added ability to rotate pieces via crank, fixed "shake" and "ghost" settings bug #34

Closed tedbrakob closed 1 year ago

tedbrakob commented 1 year ago

Added ability to rotate pieces via crank Added .vscode settings directory to gitignore

Note: Crank rotation is handled in updateGame() instead of an input handler like a/b rotation because there is no input handler equivalent to playdate.getCrankTicks()

tedbrakob commented 1 year ago

Found a bug on starting the game on a fresh install. Will fix and remove draft status.

tedbrakob commented 1 year ago

bug fixed, ready for review

thacuber2a03 commented 1 year ago

handleCrankRotation could very well be shortened and even inlined back in the main loop, but it's fine like that. also, I never thought of skipping a rotation if the piece was an O piece, that's some performance boosts I guess

thacuber2a03 commented 1 year ago

let me build it and release it as minor version real quick

tedbrakob commented 1 year ago

Copied the "O" rotation skip from what is already in place for a/b buttons. Not sure how big of an improvement that makes, but I figured I would include it