thacuber2a03 / BlockDate

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

reduce an if in function rotate(rotation) #28

Closed gingerbeardman closed 1 year ago

gingerbeardman commented 1 year ago
thacuber2a03 commented 1 year ago

I think I've already tried that before and it did not work? I'd have to check if it does work before merging

thacuber2a03 commented 1 year ago

that didn't work Grabación de pantalla desde 28-04-23 20:15:42.webm I tried removing the -1 at the end and it rotates fine again, but it breaks SRS more than it already is

gingerbeardman commented 1 year ago

Weird, when implemented it I printed existing logic results next to new logic results and they were identical.

gingerbeardman commented 1 year ago

D'OH!

My code recreated piece.rotation, not chosenRotation LOL.

Sorry about that!

thacuber2a03 commented 1 year ago

a