Advertisement
Guest User

palas

a guest
Aug 19th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. //creo las palas//
  2.  
  3. class palas {
  4.   float x;
  5.   float y = height/2;
  6.   float ancho = 30;
  7.   float alto = 70;
  8.  
  9.   //ni puta idea de para que es este//
  10.   palas(float x_) {
  11.     x = x_;
  12.   }
  13.  
  14. //para mover las palas//
  15.  
  16. void mover(float clicks){
  17.   y += clicks;
  18.   y = constrain(y,0,465);
  19. }
  20.  
  21.  
  22. //forma de las palas//
  23. void forma() {
  24.   fill(0);
  25.   rectMode(CENTER);
  26.   rect(x,y,ancho,alto);
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement