Now we'll write the Brick class.
First, let's take care of the constructor, where we'll specify a brick's "radius".
Let's do it like this:
public Brick(double x, double y) {
super(x, y, 3);
}.
We also need to override two methods: move() and draw(Canvas canvas).
Arkanoid (part 12)
- 7
Locked
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet