Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Final Destination
#11
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).

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
Reply
#12
(06-12-2025, 06:15 PM)Marcus Wrote: ...

I believe it should be:

Code:
if testRotation < 0 then

Thank you for catching that bug !
really appreciate you taking the time to point it out.

Big Grin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)