public class JBlock extends Block
Constructor and Description |
---|
JBlock(Point2 pos,
Color col)
Create a J-block tetrimino at the given position and the given
color.
|
Modifier and Type | Method and Description |
---|---|
void |
spinLeft()
Spins the block to the left (counter clockwise) by 90 degrees about its
center of rotation.
|
void |
spinRight()
Spins the block to the right (clockwise) by 90 degrees about its center
of rotation.
|