Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bola bola;
- palas izquierda;
- palas derecha;
- //funcion que determina el tamanho de la pantalla y el fondo negro//
- void setup () {
- size (620,465);
- background (0);
- bola = new bola ();
- izquierda = new palas(0);
- derecha = new palas(620);
- }
- //coloco la imagen de fondo en el centro y del tamanho de la pantalla//
- void draw () {
- PImage imaxe;
- //imaxe = loadImage("fondo.jpg");
- //image(imaxe,0,0,620,465);
- izquierda.forma();
- derecha.forma();
- bola.movimiento();
- bola.bordes();
- bola.forma();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement