Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //brRickbrReaker
- //variables ladrillos
- int xB, yB; //posición ext sup izq pared ladrillos
- int wB, hB; //ancho / alto ladrillos
- int dx, dy; //espacio entre ladrillos
- int roB, coB; // rows / columns L
- int scR, scG; // score r/g
- PImage brR, brG; // ladrillos rojo / verde
- void setup(){
- size(900,600);
- wB = 80;
- hL = 30;
- dx = 1;
- dy = 1;
- brR = loadImage("brickR.png");
- brG = loadImage("brickG.png");
- roB = 5;
- coB = floor((width+2*dx)/wB); //'floor' redondea floats hacia el número menor
- //'ceil' redondea hacia arriba
- brRick[][] brickW; //array bidimensional que forma pared
- scR = 10;
- scG = 50;
- //inicializamos array que contiene pared de ladrillos
- brickW = new Brick[roB][coB];
- ini(){
- //creamos pared ladrillos
- }
- }
- void draw(){
- }
- void ini(){
- //PARED DE LADRILLOS
- xB = (width - /wB + dx);
- for ( int i=0; i<roB; i++);
- for ( int j=0; j<coB; j++);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement