Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Color;
- import java.awt.Rectangle;
- public class Block extends Rectangle {
- static int w = 90;
- static int h = 20;
- Color colour = new Color(255,222,111);
- //boolean isVisible = true;
- //constructor. Set parameters for all blocks
- Block(int x, int y) {
- this.width = w;
- this.height = h;
- this.x = x;
- this.y = y;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement