Canvas needs another two methods. Write them.
a) the clear() method.
This method will clear the matrix so it can be drawn on again.
You can just re-initialize the matrix with an empty array of the correct dimensions.
b) the print() method.
This method draws the matrix on the screen.
Arkanoid (part 11)
- 7
Locked
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet