Sorry for the late response! Very cool indeed! Well done! I found one little bug while remapping the controls though (I'm used to rotating with space and dropping with down).
I believe it should be:
Code:
if keydown(KEY_UP,true) then
testRotation = pieceRotation - 1
if testRotation < 1 then
testRotation = sizeof(pieceStructures[pieceType])-1
endif
if canPieceMove(pieceX,pieceY,testRotation) then
pieceRotation = testRotation
endif
...
I believe it should be:
Code:
if testRotation < 0 then