Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Initializes window with a grid of bricks.
- */
- void initBricks(GWindow window)
- {
- int x =0; int y =0;
- for (int a =0; a < 4;a++)
- {
- for (int i =0;i<8;i++)
- {
- GRect rect = newGRect(x,y,45,20);
- setColor(rect,"red");
- setFilled(rect,true);
- add(window,rect);
- x = x+50;
- }
- y = y+25;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement