You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
notcurses/src/tetris/rotate.h

24 lines
346 B
C

void RotateCcw() {
int y, x;
if(!PrepForMove(&y, &x)){
return;
}
curpiece_->rotate_ccw();
if(InvalidMove()){
curpiece_->rotate_cw();
}
nc_.render();
}
void RotateCw() {
int y, x;
if(!PrepForMove(&y, &x)){
return;
}
curpiece_->rotate_cw();
if(InvalidMove()){
curpiece_->rotate_ccw();
}
nc_.render();
}