We also need methods to control the game piece.
Add the following methods to the GamePiece class: left() - For moving game pieces to the left. right() - For moving game pieces to the right. down() - For moving game pieces down. up() - For moving game pieces up.
Tetris (part 10)
- 7
Locked
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet