Advertisement
Guest User

pong corregido

a guest
Aug 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. bola bola;
  2.  
  3. palas izquierda;
  4. palas derecha;
  5.  
  6. //funcion que determina el tamanho de la pantalla y el fondo negro//
  7.  
  8. void setup () {
  9.   size (620,465);
  10.   background (0);
  11.   bola = new bola ();
  12.   izquierda = new palas(0);
  13.   derecha = new palas(620);
  14. }
  15.  
  16. //coloco la imagen de fondo en el centro y del tamanho de la pantalla//
  17.  
  18. void draw () {
  19.   PImage imaxe;
  20.   //imaxe = loadImage("fondo.jpg");
  21.   //image(imaxe,0,0,620,465);
  22.   izquierda.forma();
  23.   derecha.forma();
  24.   bola.movimiento();
  25.   bola.bordes();
  26.   bola.forma();
  27.  
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement