Advertisement
boxglue

BrickBreaker game - blocks

Aug 10th, 2020
1,171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1.  
  2. import java.awt.Color;
  3. import java.awt.Rectangle;
  4.  
  5. public class Block extends Rectangle {
  6.  
  7.     static int w = 90;
  8.     static int h = 20;
  9.        
  10.     Color colour = new Color(255,222,111);
  11.     //boolean isVisible = true;
  12.  
  13.     //constructor. Set parameters for all blocks
  14.     Block(int x, int y) {
  15.         this.width = w;
  16.         this.height = h;
  17.         this.x = x;
  18.         this.y = y;
  19.     }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement